Question: OpenAPI document should have a simple working node.js implementation. Important requirement Your API should contain at least 5 endpoints, and use at least once all
- OpenAPI document should have a simple working node.js implementation.
Important requirement
Your API should contain at least 5 endpoints, and use at least once all the types of operations (create, read, update, delete).
All the requests, responses and errors should be defined.
Project description To pass Web Services subject you should create an API solving real life problem. Pass conditions 1. All API methods use proper HTTP methods (GET, POST, PUT, PATCH, DELETE) matching actions done in API; 2. Proper status codes should be used in error handling; 3. Error messages should be helpful, informative and tell what is the problem about; 4. Naming of endpoints should be written with nouns and not with verbs; 5. Focus on designing API that is easy to work with and hard to misuse - remember that APIs are consumed by machines, but methods to handle that are written by humans; 6. URIs of your API should be consistent, collections and resources should be clearly separated (for ex. /users is collections of users and /users/test-user is a resource); 7. Follow all the REST API constraints and rules mentioned through the course
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
