- git clone https://github.com/uinika/saga.git
- cd saga
- npm install
- gulp clean / build
- open browser with http://localhost:5000/
- React 15.2.x
- Redux 3.5.x
- Webpack 1.13.x
- Babel with preset 6.x.x
- React Router 2.x.x
- NodeJS 6.2.x
- Ant Design 1.6.x
- Lodash 1.5.x
- Q 1.4.x
head
- status: (Integer),Server-side status
- 200:Http response success.
- 201:Warning infomation.
- 202:Login timeout.
- 400: Bad request.
- 404: No page found.
- 405: Request method is not support.
- 415: Unsupported media type.
- 500:Server-side exceptions.
- token: (String),Encryption key。
- message: (String),Server-side infomation for current http request.
- total: (Integer),Sum of business logic result (if the results as the object then total equals 1, as an array equals length of the array).
body
- (Object/Array),Realistic & available datas.
{
head: {
status: 200,
token: "ghco9xdnaco31gmafukxchph",
message: "Login Success!",
total: 1
},
body: {
username: "admin",
password: "admin"
}
}
# Module name
-----
## Page name -- Interface name(Comments)
### Restful URL
Type: GET/POST/DELETE/PUT
#### Parameter:
name data-type 'description(comment)'
#### Result: String/Object/Array/Bollean/Null
name data-type 'description(comment)'
-----