kinlane
8/20/2018 - 3:19 AM

listen-notes-openapi

listen-notes-openapi

{
  "swagger": "2.0",
  "info": {
    "version": "1.0",
    "title": "LIstenNotes",
    "description": "TODO: Add Description"
  },
  "host": "listennotes.p.mashape.com",
  "basePath": "/api/v1",
  "schemes": [
    "https"
  ],
  "consumes": [
    "application/json"
  ],
  "produces": [
    "application/json"
  ],
  "paths": {
    "/typeahead": {
      "get": {
        "description": "Search (almost) all podcasts & episodes on the Internet.",
        "summary": "ListenNotes Full Text Search Copy",
        "operationId": "TypeaheadGet",
        "produces": [
          "application/json"
        ],
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": true,
            "type": "string",
            "description": ""
          },
          {
            "name": "X-Mashape-Key",
            "in": "header",
            "required": true,
            "type": "string",
            "description": ""
          },
          {
            "name": "Accept",
            "in": "header",
            "required": true,
            "type": "string",
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": ""
          }
        },
        "security": [],
        "x-unitTests": [
          {
            "request": {
              "method": "GET",
              "uri": "/typeahead?q=star",
              "headers": {
                "X-Mashape-Key": "KXoosuvzFzmshfeWHJ40rAPTzEFwp1xSikVjsnbUMTKAQSrC4D",
                "Accept": "application/json"
              }
            },
            "expectedResponse": {
              "x-allowExtraHeaders": true,
              "x-bodyMatchMode": "NONE",
              "x-arrayOrderedMatching": false,
              "x-arrayCheckCount": false,
              "x-matchResponseSchema": true,
              "headers": {}
            },
            "x-testShouldPass": true,
            "x-testEnabled": true,
            "x-testName": "ListenNotes Full Text Search Copy",
            "x-testDescription": "Search (almost) all podcasts & episodes on the Internet."
          }
        ],
        "x-operation-settings": {
          "CollectParameters": false,
          "AllowDynamicQueryParameters": false,
          "AllowDynamicFormParameters": false,
          "IsMultiContentStreaming": false
        }
      }
    },
    "/search": {
      "get": {
        "description": "Search (almost) all podcasts & episodes on the Internet.",
        "summary": "ListenNotes Full Text Search",
        "operationId": "SearchGet",
        "produces": [
          "application/json"
        ],
        "parameters": [
          {
            "name": "genre_ids",
            "in": "query",
            "required": true,
            "type": "string",
            "description": ""
          },
          {
            "name": "language",
            "in": "query",
            "required": true,
            "type": "string",
            "description": ""
          },
          {
            "name": "len_max",
            "in": "query",
            "required": true,
            "type": "integer",
            "format": "int32",
            "description": ""
          },
          {
            "name": "len_min",
            "in": "query",
            "required": true,
            "type": "integer",
            "format": "int32",
            "description": ""
          },
          {
            "name": "offset",
            "in": "query",
            "required": true,
            "type": "integer",
            "format": "int32",
            "description": ""
          },
          {
            "name": "only_in",
            "in": "query",
            "required": true,
            "type": "string",
            "description": ""
          },
          {
            "name": "published_after",
            "in": "query",
            "required": true,
            "type": "number",
            "format": "double",
            "description": ""
          },
          {
            "name": "published_before",
            "in": "query",
            "required": true,
            "type": "number",
            "format": "double",
            "description": ""
          },
          {
            "name": "q",
            "in": "query",
            "required": true,
            "type": "string",
            "description": ""
          },
          {
            "name": "sort_by_date",
            "in": "query",
            "required": true,
            "type": "integer",
            "format": "int32",
            "description": ""
          },
          {
            "name": "type",
            "in": "query",
            "required": true,
            "type": "string",
            "description": ""
          },
          {
            "name": "X-Mashape-Key",
            "in": "header",
            "required": true,
            "type": "string",
            "description": ""
          },
          {
            "name": "Accept",
            "in": "header",
            "required": true,
            "type": "string",
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": ""
          }
        },
        "security": [],
        "x-unitTests": [
          {
            "request": {
              "method": "GET",
              "uri": "/search?genre_ids=68%2C82&language=English&len_max=10&len_min=2&offset=0&only_in=Only+search+in+these+fields&published_after=1390190241000&published_before=1490190241000&q=star+wars&sort_by_date=0&type=episode",
              "headers": {
                "X-Mashape-Key": "KXoosuvzFzmshfeWHJ40rAPTzEFwp1xSikVjsnbUMTKAQSrC4D",
                "Accept": "application/json"
              }
            },
            "expectedResponse": {
              "x-allowExtraHeaders": true,
              "x-bodyMatchMode": "NONE",
              "x-arrayOrderedMatching": false,
              "x-arrayCheckCount": false,
              "x-matchResponseSchema": true,
              "headers": {}
            },
            "x-testShouldPass": true,
            "x-testEnabled": true,
            "x-testName": "ListenNotes Full Text Search",
            "x-testDescription": "Search (almost) all podcasts & episodes on the Internet."
          }
        ],
        "x-operation-settings": {
          "CollectParameters": false,
          "AllowDynamicQueryParameters": false,
          "AllowDynamicFormParameters": false,
          "IsMultiContentStreaming": false
        }
      }
    }
  }
}