Created
July 7, 2017 16:13
-
-
Save ChrisPhillips-cminion/d56fb5f013ec81790f015be666ca9930 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| Sample Swagger | |
| swagger: '2.0' | |
| info: | |
| x-ibm-name: watson-personality-insights-demo | |
| title: Watson-Personality-Insights-demo | |
| version: 1.0.0 | |
| schemes: | |
| - https | |
| host: $(catalog.host) | |
| basePath: /watson-personality-insights-demo | |
| consumes: | |
| - text/plain | |
| - application/json | |
| produces: | |
| - application/json | |
| x-ibm-configuration: | |
| testable: true | |
| enforced: true | |
| cors: | |
| enabled: true | |
| assembly: | |
| execute: | |
| - invoke: | |
| target-url: 'https://gateway.watsonplatform.net/personality-insights/api/v3/profile?raw_scores=false&csv_headers=false&consumption_preferences=false&version=2016-10-20' | |
| title: Invoke Watson PeI | |
| verb: POST | |
| username: username | |
| password: password | |
| phase: realized | |
| paths: | |
| /invoke: | |
| post: | |
| responses: | |
| '200': | |
| description: 200 OK | |
| parameters: | |
| - name: content | |
| required: false | |
| in: body | |
| schema: | |
| type: object | |
| definitions: {} | |
| tags: [] | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment