Created
August 3, 2017 00:02
-
-
Save owenconti/7ada73221c4a87d58d486c78276a7223 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: | |
version: "1.0.0" | |
title: Test REST API | |
basePath: /api | |
schemes: | |
- http | |
consumes: | |
- application/x-www-form-urlencoded | |
produces: | |
- application/json | |
paths: | |
/subscriber: | |
patch: | |
summary: Update subscriber objects. | |
description: Update subscriber objects. | |
parameters: | |
- name: id | |
in: query | |
description: filter on id | |
required: false | |
type: integer | |
format: int32 | |
- name: authorised | |
in: query | |
description: filter on authorised | |
required: false | |
type: integer | |
format: int32 | |
- in: formData | |
name: authorised | |
description: The authorisation status of the subscriber. | |
required: false | |
type: integer | |
format: int32 | |
- in: formData | |
name: privilege_level | |
description: The privilege level of the user. | |
required: false | |
type: integer | |
format: int32 | |
responses: | |
200: | |
description: Object updated | |
schema: | |
type: object | |
properties: | |
error_text: | |
type: string | |
default: | |
description: Unexpected error | |
schema: | |
type: object | |
properties: | |
error_text: | |
type: string |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment