Created
July 28, 2017 01:00
-
-
Save owenconti/23302f34973c581e3e816b8ad9c8664a 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
swagger: '2.0' | |
info: | |
title: Put request definition | |
version: 1.0.0 | |
host: localhost | |
basePath: /rat | |
schemes: | |
- https | |
consumes: | |
- application/json | |
produces: | |
- application/json | |
- application/xml | |
paths: | |
'/individuals/{individual_id}/pep': | |
put: | |
tags: | |
- individuals | |
consumes: | |
- multipart/form-data | |
parameters: | |
- name: individual_id | |
in: path | |
required: true | |
type: integer | |
- name: pep_risk_score_id | |
in: formData | |
required: true | |
type: string | |
default: '17' | |
responses: | |
'200': | |
description: Return message | |
schema: | |
type: string | |
default: | |
description: Unexpected error | |
schema: | |
$ref: '#/definitions/Error' | |
delete: | |
tags: | |
- individuals | |
parameters: | |
- name: individual_id | |
in: path | |
required: true | |
type: integer | |
responses: | |
'200': | |
description: Return message | |
schema: | |
type: string | |
default: | |
description: Unexpected error | |
schema: | |
$ref: '#/definitions/Error' | |
definitions: | |
Error: | |
required: | |
- Errorcode | |
- Message | |
properties: | |
Errorcode: | |
type: integer | |
format: int32 | |
Message: | |
type: string | |
type: object | |
example: | |
Errorcode: '500' | |
Message: An unexpected error |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment