lowcoderev's comments

lowcoderev | 3 years ago

How does it work without using cookies?

lowcoderev | 4 years ago | on: Ask HN: Which APIs have the best developer experience?

1. Make the API well documented. Make it clear how to authenticate, request/response format, along with examples.

2. Repeat (1)

3. Make endpoints self explanatory. For example -

GET /users - To list all users

POST /users - To create a user

PUT /users/:userId - To update a user profile

PATCH /users/:userId - To patch a user profile (Great if you can support JSONPatch syntax)

Never add unnecessary verbs in the route like /users/create which can easily be represented by the HTTP Request Method.

Just my few cents

page 1