-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRestAPIURL
More file actions
24 lines (20 loc) · 1.1 KB
/
RestAPIURL
File metadata and controls
24 lines (20 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
createTicket::::::
http://localhost:8080/api/tickets/create
{"passengerName":"Barry","bookingDate":1502649000000,"sourceStation":"Kokata","destStation":"Mumbai","email":"barry.s2017@infotech.com"}
-------------------------------------------------------------------------------
getTicketById:::
http://localhost:8080/api/tickets/ticketId/{ticketId}
-------------------------------------------------------------------------------
getAllBookedTickets:::
http://localhost:8080/api/tickets/alltickets
-------------------------------------------------------------------------------
deleteTicket::::
http://localhost:8080/api/tickets/ticketId/{ticketId}
-------------------------------------------------------------------------------
updateTicket:::
http://localhost:8080/api/tickets/ticketId/{ticketId}/email/{newEmail:.+}
http://localhost:8080/api/tickets/ticketId/2/email/barry.s2000@infotech.com
-------------------------------------------------------------------------------
getTicketByEmail:::
http://localhost:8080/api/tickets/email/barry.s2000@infotech.com
http://localhost:8080/api/tickets/email/sean.s2017@yahoo.com