This is a creation in Article, where the information may have evolved or changed.
Development specifications
Version control git
Development process Git flow
Interface
| Request Method |
URL |
Action |
Chinese Description |
| GET |
/resources/ |
List |
List |
| POST |
/resources/ |
Create |
Create |
| GET |
/resources/:id |
Retrieve |
With |
| PUT |
/resources/:id |
Update |
Update |
| PATCH |
/resources/:id |
Partial_update |
Partial update |
| DELETE |
/resources/:id |
Destroy |
Delete |
Data
Request Support Form-date,json,x-www-form-urlencode
Return format uniform to JSON
One request corresponds to a serializer
Error
The error message is contained in the returned content.
Different errors correspond to different error message codes
HTTP error codes are used in standard usage
Certification
Jwt
Token
Oauth2
Permissions
In the form of middleware as a privilege identification plug-in, according to the HTTP request format directly Judge permissions
User information and permission information cache are guaranteed to be efficient when the user logs on successfully
Log
Logs are provided in the form of middleware
According to the business requirements of the atmosphere inventory log and normal log
Documentation (to be perfected)
Write the document according to the interface format above
{ "resources": { "list": { "params": {}, "response": {} }, "create": { "request": {}, "response": {} }, "retrieve": { "response": {} }, "update": { "request": {}, "response": {} }, "partial_update": { "request": {}, "response": {} }, "destroy": {} }}
Test
Business Required interface test coverage 100%
Deployment
Docker
Docker-compose
Docker-machine
Docker-swarm
Server Resource Monitoring
Ready to be perfected