-
Notifications
You must be signed in to change notification settings - Fork 1
RESTful Service Endpoints
URL Template: https://artsee-backend.herokuapp.com/customers
URL Sample: curl -X POST -H "Content-Type: application/json" --data '{"userID": "john1","email": "john1@gmail.com","password": "123","firstName": "john", "lastName": "smith", "phoneNumber": "1234", "address": {"addressLine1": "750 garden st", "addressLine2": "apt 23", "city": "montreal", "province": "quebec", "postalCode": "hhhhhh", "country" : "Canada"}}' 'https://artsee-backend.herokuapp.com/customers'
URL Template: https://artsee-backend.herokuapp.com/customers/{userID}
URL Sample: curl -X GET -H "Content-Type: application/json" 'https://artsee-backend.herokuapp.com/customers/john1'
URL Template: https://artsee-backend.herokuapp.com/customers
URL Sample: curl -X GET -H "Content-Type: application/json" 'https://artsee-backend.herokuapp.com/customers'
URL Template: https://artsee-backend.herokuapp.com/customers
URL Sample: curl -X PUT -H "Content-Type: application/json" --data '{"userID": "john1","email": "john1@gmail.com","password": "123","firstName": "john", "lastName": "smith", "phoneNumber": "5143333344", "address": {"addressLine1": "750 garden st", "addressLine2": "apt 23", "city": "montreal", "province": "quebec", "postalCode": "hhhhhh", "country" : "Canada"}}' 'https://artsee-backend.herokuapp.com/customers'
URL Template: https://artsee-backend.herokuapp.com/customers/{userID}
URL Sample: curl -X DELETE -H "Content-Type: application/json" 'https://artsee-backend.herokuapp.com/customers/john1'
URL Template: https://artsee-backend.herokuapp.com/artists
URL Sample: curl -X POST -H "Content-Type: application/json" --data '{"userID": "bob1", "email": "bob1@gmail.com","password": "12345","firstName": "bob", "lastName": "charles", "phoneNumber": "5141111111", "artistDescription": "coolartist"}' 'https://artsee-backend.herokuapp.com/artists'
URL Template: https://artsee-backend.herokuapp.com/artists/{userID}
URL Sample: curl -X GET -H "Content-Type: application/json" 'https://artsee-backend.herokuapp.com/artists/bob1'
URL Template: https://artsee-backend.herokuapp.com/artists
URL Sample: curl -X GET -H "Content-Type: application/json" 'https://artsee-backend.herokuapp.com/artists'
URL Template: https://artsee-backend.herokuapp.com/artists
URL Sample: curl -X PUT -H "Content-Type: application/json" --data '{"userID": "bob1","email": "bob123@gmail.com","password": "321","firstName": "bob", "lastName": "ch", "phoneNumber": "5143334344", "artistDescription": "coolartist"}' 'https://artsee-backend.herokuapp.com/artists'
URL Template: https://artsee-backend.herokuapp.com/artists/{userID}
URL Sample: curl -X DELETE -H "Content-Type: application/json" 'https://artsee-backend.herokuapp.com/artists/bob1'
URL Template: https://artsee-backend.herokuapp.com/administrators
URL Sample: curl -X POST -H "Content-Type: application/json" --data '{"userID": "admin1", "email": "admin1@gmail.com","password": "999","firstName": "new", "lastName": "admin", "phoneNumber": "5143456789"}' 'https://artsee-backend.herokuapp.com/administrators'
URL Template: https://artsee-backend.herokuapp.com/administrators/{userID}
URL Sample: curl -X GET -H "Content-Type: application/json" 'https://artsee-backend.herokuapp.com/administrators/admin1'
URL Template: https://artsee-backend.herokuapp.com/administrators
URL Sample: curl -X GET -H "Content-Type: application/json" 'https://artsee-backend.herokuapp.com/administrators'
URL Template: https://artsee-backend.herokuapp.com/administrators
URL Sample: curl -X PUT -H "Content-Type: application/json" --data '{"userID": "admin1","email": "admin1@hotmail.com","password": "321","firstName": "new", "lastName": "admin", "phoneNumber": "5143456789"}' 'https://artsee-backend.herokuapp.com/administrators'
URL Template: https://artsee-backend.herokuapp.com/administrators/{userID}
URL Sample: curl -X DELETE -H "Content-Type: application/json" 'https://artsee-backend.herokuapp.com/administrators/admin1'
URL Template: https://artsee-backend.herokuapp.com/users/{userID}
URL Sample: curl -X GET -H "Content-Type: application/json" 'https://artsee-backend.herokuapp.com/users/bob1'
URL Template: https://artsee-backend.herokuapp.com/users
URL Sample: curl -X GET -H "Content-Type: application/json" 'https://artsee-backend.herokuapp.com/users'
URL Template: https://artsee-backend.herokuapp.com/users
URL Sample: curl -X PUT -H "Content-Type: application/json" --data '{"userID": "admin1","email": "admin1@hotmail.com","password": "321","firstName": "new", "lastName": "admin", "phoneNumber": "46702421552"}' 'https://artsee-backend.herokuapp.com/users'
URL Template: https://artsee-backend.herokuapp.com/users/{userID}
URL Sample: curl -X DELETE -H "Content-Type: application/json" 'https://artsee-backend.herokuapp.com/users/admin1'
URL Template: https://artsee-backend.herokuapp.com/signIn
URL Sample: curl -X POST -H "Content-Type: application/json" --data '{"userID": "bob1", "password": "321"}' 'https://artsee-backend.herokuapp.com/signIn'
URL Template: https://artsee-backend.herokuapp.com/artworks
URL Sample: curl -X POST -H "Content-Type: application/json" --data '{"name": "newart1", "price": 9, "description": "latest", "dateOfCreation": "2020-03-10", "numInStock": 5, "artist": {"userID": "bob1"}}' 'https://artsee-backend.herokuapp.com/artworks'
URL Template: https://artsee-backend.herokuapp.com/artworks
URL Sample: curl -X GET -H "Content-Type: application/json" 'https://artsee-backend.herokuapp.com/artworks'
URL Template: https://artsee-backend.herokuapp.com/artwork/{id}
URL Sample: curl -X GET -H "Content-Type: application/json" 'https://artsee-backend.herokuapp.com/artwork/1'
URL Template: https://artsee-backend.herokuapp.com/artworksByArtist/{id}
URL Sample: curl -X GET -H "Content-Type: application/json" 'https://artsee-backend.herokuapp.com/artworksByArtist/artist1'
URL Template: https://artsee-backend.herokuapp.com/artworks
URL Sample: curl -X PUT -H "Content-Type: application/json" --data '{"id": "1", "name": "newart1", "price": 10, "description": "latest", dateOfCreation": "2020-03-10", "numInStock": 6, "artist": {"userID": "bob1"}}' 'https://artsee-backend.herokuapp.com/artworks'
URL Template: https://artsee-backend.herokuapp.com/artworks/{id}
URL Sample: curl -X DELETE -H "Content-Type: application/json" 'https://artsee-backend.herokuapp.com/artworks/1'
URL Template: https://artsee-backend.herokuapp.com/reviews
URL Sample: curl -X POST -H "Content-Type: application/json" --data '{"rating": 5, "comment": "best", "wouldRecommend": true, "customer": {"userID": "john1"}, "artist": {"userID": "bob1"}}' 'https://artsee-backend.herokuapp.com/reviews'
URL Template: https://artsee-backend.herokuapp.com/reviews
URL Sample: curl -X GET -H "Content-Type: application/json" 'https://artsee-backend.herokuapp.com/reviews'
URL Template: https://artsee-backend.herokuapp.com/review/{id}
URL Sample: curl -X GET -H "Content-Type: application/json" 'https://artsee-backend.herokuapp.com/review/1'
URL Template: https://artsee-backend.herokuapp.com/reviewsOnArtist/{id}
URL Sample: curl -X GET -H "Content-Type: application/json" 'https://artsee-backend.herokuapp.com/reviewsOnArtist/artist1'
URL Template: https://artsee-backend.herokuapp.com/reviewsByCustomer/{id}
URL Sample: curl -X GET -H "Content-Type: application/json" 'https://artsee-backend.herokuapp.com/reviewsByCustomer/customer1'
URL Template: https://artsee-backend.herokuapp.com/reviews
URL Sample: curl -X PUT -H "Content-Type: application/json" --data '{"id": 1, "rating": 4, "comment": "yet to improve", "wouldRecommend": true, "customer": {"userID": "john1"}, "artist": {"userID": "bob1"}}' 'https://artsee-backend.herokuapp.com/reviews'
URL Template: https://artsee-backend.herokuapp.com/reviews/{id}
URL Sample: curl -X DELETE -H "Content-Type: application/json" 'https://artsee-backend.herokuapp.com/reviews/1'
URL Template: https://artsee-backend.herokuapp.com/artworkOrders
URL Sample: curl -X POST -H "Content-Type: application/json" --data '{"customer": {"userID": "john1"}, "artworks": [], "deliveryMethodDto": "SHIP"}' 'https://artsee-backend.herokuapp.com/artworkOrders'
URL Template: https://artsee-backend.herokuapp.com/artworkOrders
URL Sample: curl -X GET -H "Content-Type: application/json" 'https://artsee-backend.herokuapp.com/artworkOrders'
URL Template: https://artsee-backend.herokuapp.com/artworkOrder/{id}
URL Sample: curl -X GET -H "Content-Type: application/json" 'https://artsee-backend.herokuapp.com/artworkOrder/1'
URL Template: https://artsee-backend.herokuapp.com/artworkOrdersByCustomer/{id}
URL Sample: curl -X GET -H "Content-Type: application/json" 'https://artsee-backend.herokuapp.com/artworkOrdersByCustomer/customer1'
URL Template: https://artsee-backend.herokuapp.com/artworkOrders
URL Sample: curl -X PUT -H "Content-Type: application/json" --data '{"orderID": 1, "customer": {"userID": "john1"}, "artworks": [{"id": 1, "name": "newart1", "price": 9, "description": "latest", dateOfCreation": "2020-03-10", "numInStock": 5, "artist": {"userID": "bob1"}}], "deliveryMethodDto": "SHIP", "orderStatusDto": "PROCESSING"}' 'https://artsee-backend.herokuapp.com/reviews'
URL Template: https://artsee-backend.herokuapp.com/artworkOrders/{id}
URL Sample: curl -X DELETE -H "Content-Type: application/json" 'https://artsee-backend.herokuapp.com/artworkOrders/1'
Group 15 Ragheed Qasmieh, Daniel Schwartz, Matt Langshur, Enan Ashaduzzaman, Matteo Barbieri