Last active
September 28, 2015 13:00
-
-
Save robknight/2017d692f961abce061e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
swagger: "2.0" | |
info: | |
version: 1.0.0 | |
title: Content Availability | |
host: web-test.store.bbc.com | |
basePath: '/store-api/v1' | |
schemes: | |
- https | |
consumes: | |
- application/json | |
produces: | |
- application/json | |
paths: | |
'/tva/titles/buyability': | |
post: | |
summary: Retrieve buyability statuses | |
operationId: findBuyabilityStatuses | |
parameters: | |
- name: titles | |
in: body | |
required: true | |
description: Title IDs to search for | |
schema: | |
$ref: '#/definitions/TitleIDs' | |
responses: | |
200: | |
description: Returns buyability statuses | |
schema: | |
$ref: '#/definitions/BuyabilityResponse' | |
400: | |
description: Invalid request | |
404: | |
description: Not found | |
405: | |
description: Invalid method | |
definitions: | |
TitleIDs: | |
type: array | |
items: | |
type: string | |
BuyabilityResponse: | |
properties: | |
success: | |
type: boolean | |
buyability_windows: | |
type: array | |
items: | |
$ref: '#/definitions/BuyabilityWindow' | |
BuyabilityWindow: | |
properties: | |
title: | |
type: string | |
state: | |
type: string | |
product: | |
type: string | |
start: | |
type: string | |
format: dateTime | |
end: | |
type: string | |
format: dateTime | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment