Skip to content

Instantly share code, notes, and snippets.

@hemikak
Last active March 3, 2018 08:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hemikak/9ca8d6a6f71d93d2f7e059373e5240c4 to your computer and use it in GitHub Desktop.
Save hemikak/9ca8d6a6f71d93d2f7e059373e5240c4 to your computer and use it in GitHub Desktop.
swagger: '2.0'
info:
version: 1.0.0
title: PackagingService
basePath: /p
paths:
'/{orgName}/{packageName}/{packageVersion}':
get:
operationId: handlePullRequest
parameters:
- name: orgName
in: path
required: true
type: string
- name: packageName
in: path
required: true
type: string
- name: packageVersion
in: path
required: true
type: string
responses:
'200':
description: Successful
examples:
application/json: Ok
post:
operationId: handlePushRequest
parameters:
- in: body
name: conn
required: false
schema:
$ref: '#/definitions/Request'
- name: orgName
in: path
required: true
type: string
- name: packageName
in: path
required: true
type: string
- name: packageVersion
in: path
required: true
type: string
responses:
'200':
description: Successful
examples:
application/json: Ok
put:
operationId: handleUpdateRequest
consumes:
- multipart/form-data
produces:
- application/json
parameters:
- in: body
name: conn
required: false
schema:
$ref: '#/definitions/Request'
- name: orgName
in: path
required: true
type: string
- name: packageName
in: path
required: true
type: string
- name: packageVersion
in: path
required: true
type: string
responses:
'200':
description: Successful
examples:
application/json: Ok
delete:
operationId: handleDeleteRequest
parameters:
- in: body
name: conn
required: false
schema:
$ref: '#/definitions/Request'
- name: orgName
in: path
required: true
type: string
- name: packageName
in: path
required: true
type: string
- name: packageVersion
in: path
required: true
type: string
responses:
'200':
description: Successful
examples:
application/json: Ok
/:
get:
operationId: handleSearchRequest
produces:
- application/json
responses:
'200':
description: Successful
examples:
application/json: Ok
definitions:
Request:
type: object
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment