跳转至

软件架构与设计

Conversation With API Builders

原文链接:http://conversation.bigbinary.com/

Conversation With API Builders

Bad APIs have one thing in common—they do not handle response status codes effectively. They all use custom solutions while the status code value can be attached to the HTTP resonse. This ebook covers when to use what status code and much more.

1. Return 200 when it is all good

API user : Hey, I have a problem.

API builder : What’s wrong.

API user : I sent a request to the API to create a user. But I do not see the newly created user.