How should I build a good (web) API

前端 未结 5 1783
忘了有多久
忘了有多久 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:05

    Read the RESTful Web Services book, which give you a good overview of how to use REST in practice, and get to up to speed quickly enough to get started now, with some confidence. This is more useful than just looking at an existing API, because it also discusses design choices and trade-offs.

提交回复
热议问题