Skip to content

Instantly share code, notes, and snippets.

@robknight
Last active September 28, 2015 13:00
Show Gist options
  • Save robknight/2017d692f961abce061e to your computer and use it in GitHub Desktop.
Save robknight/2017d692f961abce061e to your computer and use it in GitHub Desktop.
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