Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- openapi: 3.0.0
- info:
- version: '1.0.0'
- title: 'session'
- description: 'Service'
- externalDocs:
- description: document
- url: https://example.com
- servers:
- - url: 'https:///127.0.0.1:8080/v1'
- variables:
- apiRoot:
- default: https://example.com
- security:
- - {}
- - oAuth2ClientCredentials:
- - session
- paths:
- /service:
- post:
- summary: Create service
- tags:
- - service collection
- operationId: PostService
- requestBody:
- description: service post
- required: true
- content:
- application/json: # message without binary body part
- schema:
- $ref: '#/components/schemas/ServiceCreateData'
- multipart/related:
- schema:
- type: object
- properties: # Request parts
- jsonData:
- $ref: '#/components/schemas/ServiceCreateData'
- binaryData:
- type: string
- format: binary
- encoding:
- jsonData:
- contentType: application/json
- binaryData:
- contentType: application/octet
- headers:
- Content-Id:
- schema:
- type: string
- responses:
- '201':
- description: successful creation of an service
- content:
- application/json: # message without binary body part
- schema:
- $ref: '#/components/schemas/ServiceData'
- multipart/related: # message with binary body part(s)
- schema:
- type: object
- properties: # Request parts
- jsonData:
- $ref: '#/components/schemas/ServiceData'
- binaryData:
- type: string
- format: binary
- encoding:
- jsonData:
- contentType: application/json
- binaryData:
- contentType: application/octet
- headers:
- Content-Id:
- schema:
- type: string
- headers:
- Location:
- required: true
- schema:
- type: string
- components:
- schemas:
- #
- # STRUCTURED DATA TYPES
- #
- ServiceCreateData:
- type: object
- properties:
- code:
- type: integer
- format: int32
- type:
- type: string
- message:
- type: string
- ServiceData:
- type: object
- properties:
- code:
- type: integer
- format: int32
- type:
- type: string
- message:
- type: string
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement