-
Notifications
You must be signed in to change notification settings - Fork 69
API Code Review Checklist
Sumesh Punakkal Kariyil edited this page Apr 17, 2019
·
8 revisions
-
- Proper naming conventions followed on variables, classes, definitions etc.
- Proper logging levels are used in the code
-
- Endpoints follows agreed pattern and organized around resources
- Conform to http semantics
- Proper filtering and pagination is provided for large amounts of data
-
- Routes is used for request payload processing, validations, response codes, messages etc.
- Service is used for business logic, 3rd party communication management. Maintains proper folder structure.
- Model is used for database models.
- Schemas is used for json schema
- Util contains commonly used utility functions, constants
-
- Unit test cases with happy and sad path for service, model (?) layers
- Endpoints test cases with happy and sad path for routes
- Mocking of services (mainly 3rd party dependencies) provided if applicable
- Postman collection tests provided for endpoints with happy path
-
- Proper code coverage for all the layers (percentage 80, 90 ?)
- Linting
-
- Alembic is used to manage database migration. Reference