Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save goravseth/aad05c7530dfaef9cf7441a1f2c51558 to your computer and use it in GitHub Desktop.
Save goravseth/aad05c7530dfaef9cf7441a1f2c51558 to your computer and use it in GitHub Desktop.
external service definition to pull in screensteps articles to flow. can search title, tags, text, and can pass site ID as a parameter.
{
"swagger": "2.0",
"info": {
"description": "defaultDescription",
"version": "0.1",
"title": "defaultTitle"
},
"paths": {
"/{site}/search": {
"get": {
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "tags",
"in": "query",
"required": false,
"type": "string",
"x-example": "opportunities"
},
{
"name": "text",
"in": "query",
"required": false,
"type": "string",
"x-example": "opportunities"
},
{
"name": "title",
"in": "query",
"required": false,
"type": "string",
"x-example": "opportunities"
},
{
"name": "site",
"in": "path",
"required": true,
"type": "string",
"x-example": "5156"
}
],
"responses": {
"200": {
"description": "Results from screensteps api",
"schema": {
"$ref": "#/definitions/Model0"
}
}
}
}
}
},
"definitions": {
"Links": {
"properties": {
"published_url": {
"type": "string"
},
"api_url": {
"type": "string"
}
},
"type": "object"
},
"Results": {
"properties": {
"id": {
"type": "integer",
"format": "int32"
},
"meta_description": {
"type": "string"
},
"meta_title": {
"type": "string"
},
"meta_search": {
"type": "string"
},
"title": {
"type": "string"
},
"links": {
"$ref": "#/definitions/Links"
}
},
"type": "object"
},
"Meta": {
"properties": {
"page_count": {
"type": "integer",
"format": "int32"
},
"total_entries": {
"type": "integer",
"format": "int32"
}
},
"type": "object"
},
"Model0": {
"properties": {
"results": {
"type": "array",
"items": {
"$ref": "#/definitions/Results"
}
},
"meta": {
"$ref": "#/definitions/Meta"
}
},
"type": "object"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment