Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- https://eggerapps.at/postico/
- ---
- db = "trim_it_main"
- host = "main-eu-west-1.cvuc5t0pm6n6.eu-west-1.rds.amazonaws.com"
- username = "iudGN0xO5"
- password = "eYXf6paEp?"
- port = "5432"
- ---
- /barber
- - GET
- - POST:
- {
- "bio": "Hello my name is Joe!",
- "account_number": "2",
- "sortcode": "2",
- "address_line_1": "25 Joe Street",
- "address_line_2": "Moulscoombe",
- "town": "Brighton",
- "county": "East Sussex",
- "postcode": "BN2 H12",
- "overall_stars": "0",
- "contact_number": "01273 410410",
- "account": {
- "first_name": "Joe",
- "last_name": "Bloggs",
- "email": "joe_bloggs@live.co.uk",
- "password": "abcxyz123",
- "timestamp": "2016-07-01 16:17"
- },
- "barbershop": {
- "barbershop_name": "JoeyBarb",
- "location_lat": "2",
- "location_long": "2",
- "barbershop_address_line_1": "5 Lewes Road",
- "barbershop_town": "Brighton",
- "barbershop_county": "East Sussex",
- "barbershop_postcode": "BN1 JB2"
- }
- }
- - DELETE
- /booking
- - GET, if you want specific results, you can send this data to the server:
- "AND": {
- "location_lat": [">2", "<3"],
- "location_long": [">2", "<3"]
- }
- which translates to:
- WHERE (location_lat >= 2 AND location_lat <= 3) AND (location_long >= 2 AND location_long <= 3)
- - POST:
- {
- "timestamp": "2016-07-01 20:06",
- "status": "2",
- "payment_type": "0",
- "price": "8.99",
- "time": "10:45",
- "user_id": "2",
- "barber_id": "4",
- "date": "2016-07-08"
- }
- /user
- - GET
- - POST:
- {
- "gender": "female",
- "dob": "1996-01-01",
- "loyalty_points": "2",
- "barber_type": "1",
- "account": {
- "first_name": "Jim",
- "last_name": "Bloggs",
- "email": "jim_bloggs@live.co.uk",
- "password": "abcxyz123",
- "timestamp": "2016-07-01 16:17"
- }
- }
- - DELETE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement