How should I build a good (web) API

前端 未结 5 1784
忘了有多久
忘了有多久 2021-01-30 09:50

I\'m going to build an API for a web app and I\'m interested in what people can suggest as good practices.

I\'m already planning to make it versioned (version 1 can only

5条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-30 10:18

    Use REST.

    RESTful web services architecture is easy to implement and uses the strengths and semantics of HTTP for what they were intended. It's resource-oriented, just like the web itself.

    Amazon Web Services, Google and many others offer REST APIs to interact with their products.

提交回复
热议问题