While creating API and providing it to the user please take care of following.
- Create or Update the documentation for the API.
- While adding new API documentation make sure it covers the following.
- Request URL. Ex. https://api.abc.com/admin
- Method: (get/post/put/delete/patch)
- Input parameters Ex. {'firstname': firstname, 'lastname': lastname, 'email': email, 'password' : password}
- Encoding details if application. For ex. for few APIs the input parameters are URL encoded.
- API response. This could be pasted in the same page if not too big. Else can be posted in the form of jsonblob url (https://jsonblob.com/).
- Please consider the API development as completed only once the API is documented with above details in respective technical documentation
- For live products you should use api.domain.com .
No comments:
Post a Comment