Last active
August 7, 2020 21:59
-
-
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.
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": { | |
"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