Advertisement
Guest User

Untitled

a guest
Apr 30th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.41 KB | None | 0 0
  1. FORMAT: 1A
  2. HOST: http://polls.apiblueprint.org/
  3.  
  4. # spring-boot-rest-api
  5.  
  6. In this api you will find users data.
  7.  
  8. ## Users Data [/users/]
  9.  
  10. ### List of users data[GET]
  11.  
  12. + Response 200 (application/json)
  13.  
  14. [
  15. {
  16. "name" : "Ahad",
  17. "study" : "University of Rajshahi",
  18. "dept" : "CSE"
  19. }
  20. ]
  21.  
  22. ### Create new users data [POST]
  23.  
  24. + Request (application/json)
  25.  
  26. {
  27. {
  28. "name" : "Ahad",
  29. "study" : "University of Rajshahi",
  30. "dept" : "CSE"
  31. }
  32. }
  33.  
  34. + Response 201 (application/json)
  35.  
  36. + Headers
  37.  
  38.  
  39. + Body
  40.  
  41. {
  42. "name" : "Ahad",
  43. "study" : "University of Rajshahi",
  44. "dept" : "CSE"
  45. }
  46.  
  47. ## User Modification [/questions/{id}]
  48.  
  49. + Parameters
  50. + id (number) - ID of the User in the form of an integer
  51.  
  52. ### Delete single user data [DELETE]
  53.  
  54. + Response 204
  55.  
  56. ### Update user data [POST/{id}]
  57.  
  58. + Parameters
  59. + id (number) - ID of the User in the form of an integer
  60.  
  61. + Request (application/json)
  62.  
  63. {
  64. {
  65. "name" : "Ahad",
  66. "study" : "University of Rajshahi",
  67. "dept" : "CSE"
  68. }
  69. }
  70.  
  71. + Response 201 (application/json)
  72.  
  73. + Headers
  74.  
  75.  
  76. + Body
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement