Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## Login [POST api/login]
- + Header
- + Content-Type : application/json
- + Request
- username : String
- password : String
- + Response 200
- {
- "success" : true,
- "token" : token,
- }
- + Response 401
- Unauthorize
- + Response 404
- {
- "success" : false,
- "massages": "Invalid Username"
- }
- ___
- ## getList [GET api/wine]
- + Header
- + Authorization : JWT
- + Content-Type : application/json
- + Request
- take : Int
- skip : Int
- + Response 200
- {
- "success" : true,
- "wine" : [
- {
- "id": Int,
- "grape_variety": String,
- "wine_yard": String,
- "name": String,
- "year": String,
- "quality": String,
- "color": String,
- "size": String,
- "classification": String,
- "purchased_at": Date,
- "bottle_no": String,
- "packaging": String,
- "label": String,
- "room": String,
- "corridor": String,
- "shelf": String,
- "market_value": Int,
- "buy_price": Int,
- "validation": Int,
- "available": Int,
- "image": String,
- "land": String,
- "created_at": Datetime,
- "updated_at": Datetime
- }
- ]
- }
- + Response 401
- Unauthorize
- + Response 404
- {
- "success" : false,
- "massages": "Invalid Username"
- }
- ___
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement