Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.53 KB | None | 0 0
  1. ## Login [POST api/login]
  2.  
  3. + Header
  4.  
  5. + Content-Type : application/json
  6.  
  7. + Request
  8.  
  9. username : String
  10. password : String
  11.  
  12. + Response 200
  13.  
  14. {
  15. "success" : true,
  16. "token" : token,
  17. }
  18.  
  19. + Response 401
  20.  
  21. Unauthorize
  22.  
  23. + Response 404
  24.  
  25. {
  26. "success" : false,
  27. "massages": "Invalid Username"
  28. }
  29. ___
  30. ## getList [GET api/wine]
  31.  
  32. + Header
  33. + Authorization : JWT
  34. + Content-Type : application/json
  35.  
  36. + Request
  37.  
  38. take : Int
  39. skip : Int
  40.  
  41. + Response 200
  42.  
  43. {
  44. "success" : true,
  45. "wine" : [
  46. {
  47. "id": Int,
  48. "grape_variety": String,
  49. "wine_yard": String,
  50. "name": String,
  51. "year": String,
  52. "quality": String,
  53. "color": String,
  54. "size": String,
  55. "classification": String,
  56. "purchased_at": Date,
  57. "bottle_no": String,
  58. "packaging": String,
  59. "label": String,
  60. "room": String,
  61. "corridor": String,
  62. "shelf": String,
  63. "market_value": Int,
  64. "buy_price": Int,
  65. "validation": Int,
  66. "available": Int,
  67. "image": String,
  68. "land": String,
  69. "created_at": Datetime,
  70. "updated_at": Datetime
  71. }
  72. ]
  73. }
  74.  
  75. + Response 401
  76.  
  77. Unauthorize
  78.  
  79. + Response 404
  80.  
  81. {
  82. "success" : false,
  83. "massages": "Invalid Username"
  84. }
  85. ___
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement