Advertisement
Guest User

Untitled

a guest
Jul 8th, 2016
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.70 KB | None | 0 0
  1. https://eggerapps.at/postico/
  2.  
  3. ---
  4.  
  5. db = "trim_it_main"
  6. host = "main-eu-west-1.cvuc5t0pm6n6.eu-west-1.rds.amazonaws.com"
  7. username = "iudGN0xO5"
  8. password = "eYXf6paEp?"
  9. port = "5432"
  10.  
  11. ---
  12.  
  13. /barber
  14. - GET
  15. - POST:
  16. {
  17. "bio": "Hello my name is Joe!",
  18. "account_number": "2",
  19. "sortcode": "2",
  20. "address_line_1": "25 Joe Street",
  21. "address_line_2": "Moulscoombe",
  22. "town": "Brighton",
  23. "county": "East Sussex",
  24. "postcode": "BN2 H12",
  25. "overall_stars": "0",
  26. "contact_number": "01273 410410",
  27. "account": {
  28. "first_name": "Joe",
  29. "last_name": "Bloggs",
  30. "email": "joe_bloggs@live.co.uk",
  31. "password": "abcxyz123",
  32. "timestamp": "2016-07-01 16:17"
  33. },
  34. "barbershop": {
  35. "barbershop_name": "JoeyBarb",
  36. "location_lat": "2",
  37. "location_long": "2",
  38. "barbershop_address_line_1": "5 Lewes Road",
  39. "barbershop_town": "Brighton",
  40. "barbershop_county": "East Sussex",
  41. "barbershop_postcode": "BN1 JB2"
  42. }
  43. }
  44.  
  45. - DELETE
  46.  
  47. /booking
  48. - GET, if you want specific results, you can send this data to the server:
  49.  
  50. "AND": {
  51. "location_lat": [">2", "<3"],
  52. "location_long": [">2", "<3"]
  53. }
  54.  
  55. which translates to:
  56. WHERE (location_lat >= 2 AND location_lat <= 3) AND (location_long >= 2 AND location_long <= 3)
  57.  
  58. - POST:
  59. {
  60. "timestamp": "2016-07-01 20:06",
  61. "status": "2",
  62. "payment_type": "0",
  63. "price": "8.99",
  64. "time": "10:45",
  65. "user_id": "2",
  66. "barber_id": "4",
  67. "date": "2016-07-08"
  68. }
  69.  
  70. /user
  71. - GET
  72. - POST:
  73. {
  74. "gender": "female",
  75. "dob": "1996-01-01",
  76. "loyalty_points": "2",
  77. "barber_type": "1",
  78. "account": {
  79. "first_name": "Jim",
  80. "last_name": "Bloggs",
  81. "email": "jim_bloggs@live.co.uk",
  82. "password": "abcxyz123",
  83. "timestamp": "2016-07-01 16:17"
  84. }
  85. }
  86.  
  87. - DELETE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement