Skip to content

Commit

Permalink
Merge pull request #19 from viagogo/sync-openapi-definitions/patch
Browse files Browse the repository at this point in the history
Sync latest changes to OpenAPI definitions
  • Loading branch information
dylan-mcnamara-sh authored Aug 22, 2023
2 parents 6715c60 + dda368e commit a027513
Show file tree
Hide file tree
Showing 2 changed files with 221 additions and 81 deletions.
283 changes: 202 additions & 81 deletions static/openapi/catalog.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"openapi": "3.0.0",
"info": {
"title": "StubHub Catalog API",
"version": "1.0.0.66",
"version": "1.0.0.69",
"x-logo": {
"url": "https://img.vggcdn.net/images/Assets/Icons/bfx/stubhub-logo-merch-purple-mweb.440b3765.svg",
"backgroundColor": "#222222"
Expand Down Expand Up @@ -1000,6 +1000,63 @@
]
}
},
"/catalog/mapevent": {
"post": {
"tags": [
"Events"
],
"summary": "Map request to StubHub Event, Venue and Category",
"description": "Finds mapped Event, Venue and Category information, if available.",
"operationId": "Events_MapEvent",
"requestBody": {
"x-name": "body",
"description": "Request metadata for which we want all mapped information",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/MapEventRequestModel"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "",
"content": {
"application/hal+json": {
"schema": {
"$ref": "#/components/schemas/MapEventResponseModel"
}
}
}
},
"403": {
"$ref": "#/components/responses/forbidden",
"description": null
},
"400": {
"$ref": "#/components/responses/validation_failed",
"description": null
},
"401": {
"$ref": "#/components/responses/requires_authentication",
"description": null
},
"500": {
"$ref": "#/components/responses/internal_server_error",
"description": null
}
},
"security": [
{
"OAuth2": [
"read:events"
]
}
]
}
},
"/catalog/venues": {
"get": {
"tags": [
Expand Down Expand Up @@ -1934,106 +1991,33 @@
}
}
},
"Venues": {
"MapEventResponseModel": {
"type": "object",
"additionalProperties": false,
"properties": {
"total_items": {
"type": "integer",
"format": "int32",
"nullable": true
},
"page": {
"type": "integer",
"format": "int32",
"nullable": true
},
"page_size": {
"type": "integer",
"format": "int32",
"nullable": true
},
"_links": {
"nullable": true,
"oneOf": [
{
"$ref": "#/components/schemas/VenuesLinks"
}
]
},
"_embedded": {
"nullable": true,
"oneOf": [
{
"$ref": "#/components/schemas/VenuesEmbeddedResources"
}
]
}
}
},
"VenuesLinks": {
"title": "VenuesLinks",
"type": "object",
"properties": {
"self": {
"EventResource": {
"nullable": true,
"oneOf": [
{
"$ref": "#/components/schemas/Link"
"$ref": "#/components/schemas/Event"
}
]
},
"first": {
"VenueResource": {
"nullable": true,
"oneOf": [
{
"$ref": "#/components/schemas/Link"
"$ref": "#/components/schemas/Venue"
}
]
},
"last": {
"CategoryResource": {
"nullable": true,
"oneOf": [
{
"$ref": "#/components/schemas/Link"
"$ref": "#/components/schemas/Category"
}
]
},
"next": {
"nullable": true,
"oneOf": [
{
"$ref": "#/components/schemas/Link"
}
]
},
"prev": {
"nullable": true,
"oneOf": [
{
"$ref": "#/components/schemas/Link"
}
]
}
}
},
"VenuesEmbeddedResources": {
"title": "VenuesEmbeddedResources",
"type": "object",
"properties": {
"deleted_items": {
"type": "array",
"nullable": true,
"items": {
"$ref": "#/components/schemas/Venue"
}
},
"items": {
"type": "array",
"nullable": true,
"items": {
"$ref": "#/components/schemas/Venue"
}
}
}
},
Expand Down Expand Up @@ -2129,6 +2113,137 @@
}
}
}
},
"MapEventRequestModel": {
"type": "object",
"additionalProperties": false,
"properties": {
"event_name": {
"type": "string"
},
"local_date": {
"type": "string",
"format": "date-time"
},
"venue_name": {
"type": "string"
},
"venue_state": {
"type": "string"
},
"venue_city": {
"type": "string"
},
"venue_country": {
"type": "string"
},
"category_name": {
"type": "string"
}
}
},
"Venues": {
"type": "object",
"additionalProperties": false,
"properties": {
"total_items": {
"type": "integer",
"format": "int32",
"nullable": true
},
"page": {
"type": "integer",
"format": "int32",
"nullable": true
},
"page_size": {
"type": "integer",
"format": "int32",
"nullable": true
},
"_links": {
"nullable": true,
"oneOf": [
{
"$ref": "#/components/schemas/VenuesLinks"
}
]
},
"_embedded": {
"nullable": true,
"oneOf": [
{
"$ref": "#/components/schemas/VenuesEmbeddedResources"
}
]
}
}
},
"VenuesLinks": {
"title": "VenuesLinks",
"type": "object",
"properties": {
"self": {
"nullable": true,
"oneOf": [
{
"$ref": "#/components/schemas/Link"
}
]
},
"first": {
"nullable": true,
"oneOf": [
{
"$ref": "#/components/schemas/Link"
}
]
},
"last": {
"nullable": true,
"oneOf": [
{
"$ref": "#/components/schemas/Link"
}
]
},
"next": {
"nullable": true,
"oneOf": [
{
"$ref": "#/components/schemas/Link"
}
]
},
"prev": {
"nullable": true,
"oneOf": [
{
"$ref": "#/components/schemas/Link"
}
]
}
}
},
"VenuesEmbeddedResources": {
"title": "VenuesEmbeddedResources",
"type": "object",
"properties": {
"deleted_items": {
"type": "array",
"nullable": true,
"items": {
"$ref": "#/components/schemas/Venue"
}
},
"items": {
"type": "array",
"nullable": true,
"items": {
"$ref": "#/components/schemas/Venue"
}
}
}
}
},
"responses": {
Expand Down Expand Up @@ -2306,6 +2421,11 @@
"description": "\n<SchemaDefinition schemaRef=\"#/components/schemas/Events\" showReadOnly={true} showWriteOnly={true} />",
"x-displayName": "Events"
},
{
"name": "Resource_MapEventResponseModel",
"description": "\n<SchemaDefinition schemaRef=\"#/components/schemas/MapEventResponseModel\" showReadOnly={true} showWriteOnly={true} />",
"x-displayName": "MapEventResponseModel"
},
{
"name": "Resource_Venue",
"description": "An venue on the StubHub platform.\n<SchemaDefinition schemaRef=\"#/components/schemas/Venue\" showReadOnly={true} showWriteOnly={true} />",
Expand Down Expand Up @@ -2342,6 +2462,7 @@
"Resource_Categories",
"Resource_Event",
"Resource_Events",
"Resource_MapEventResponseModel",
"Resource_Venue",
"Resource_Venues"
]
Expand Down
19 changes: 19 additions & 0 deletions static/openapi/inventory.json
Original file line number Diff line number Diff line change
Expand Up @@ -2245,6 +2245,10 @@
"format": "date-time",
"nullable": true
},
"is_ticket_concierge": {
"type": "boolean",
"description": "Whether the listing represents a shorted ticket"
},
"barcodes": {
"type": "array",
"description": "Barcode(s) for the ticket(s) in this listing.",
Expand Down Expand Up @@ -4174,6 +4178,11 @@
"description": "True if the seller already paid sales tax for the ticket(s); otherwise, false.",
"nullable": true
},
"is_ticket_concierge": {
"type": "boolean",
"description": "Whether the listing represents a shorted ticket",
"nullable": true
},
"barcodes": {
"type": "array",
"description": "Barcode(s) for the ticket(s) in this listing.",
Expand Down Expand Up @@ -4414,6 +4423,11 @@
"description": "True if the seller already paid sales tax for the ticket(s); otherwise, false.",
"nullable": true
},
"is_ticket_concierge": {
"type": "boolean",
"description": "Whether the listing represents a shorted ticket",
"nullable": true
},
"barcodes": {
"type": "array",
"description": "Barcode(s) for the ticket(s) in this listing.",
Expand Down Expand Up @@ -4611,6 +4625,11 @@
"description": "True if the seller already paid sales tax for the ticket(s); otherwise, false.",
"nullable": true
},
"is_ticket_concierge": {
"type": "boolean",
"description": "Whether the listing represents a shorted ticket",
"nullable": true
},
"barcodes": {
"type": "array",
"description": "Barcode(s) for the ticket(s) in this listing.",
Expand Down

0 comments on commit a027513

Please sign in to comment.