ticket-system/source/ticketAPI/api/RestFiles/ticket.http
Tara Wilson 2358ef1c96 Adding patron info
Adding several components
Restructuring UI
2024-12-06 19:52:20 -05:00

57 lines
1.2 KiB
HTTP

@api_HostAddress = http://localhost:5168
@ticketId =
@eventId = cdae537c-e5ad-4945-9557-b14ba473c80f
@seasonId = c69552ba-8fcf-43b4-9d4f-23b5203ea40e
### Mint Single Non Season Ticket
POST {{api_HostAddress}}/ticket
Accept: application/json
Content-Type: application/json
{
"type": 0,
"eventId": "{{eventId}}",
"patron": {
"firstName": "Tara",
"middleName": "",
"lastName": "Wilson",
"email": "terralilly85@icloud.com",
"phoneNumber": "",
"addressOne": "1330 Douglas Ave",
"addressTwo": "",
"city": "Youngstown",
"state": "Ohio",
"zip": "44502"
}
}
### Mint Single Season Ticket
POST {{api_HostAddress}}/ticket
Accept: application/json
Content-Type: application/json
{
"type": 1,
"eventId": "{{eventId}}",
"seasonId": "{{seasonId}}",
"patron": {
"firstName": "Tara",
"middleName": "",
"lastName": "Wilson",
"email": "terralilly85@icloud.com",
"phoneNumber": "",
"addressOne": "1330 Douglas Ave",
"addressTwo": "",
"city": "Youngstown",
"state": "Ohio",
"zip": "44502"
}
}
###
GET {{api_HostAddress}}/ticket?ticketId={{ticketId}}
Accept: application/json
Content-Type: application/json