Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save ChrisPhillips-cminion/d56fb5f013ec81790f015be666ca9930 to your computer and use it in GitHub Desktop.

Select an option

Save ChrisPhillips-cminion/d56fb5f013ec81790f015be666ca9930 to your computer and use it in GitHub Desktop.
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