Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- info:
- version: v1
- description: Please note that this API is not an official Ceph REST API to be used by third-party applications. It's primary purpose is to serve the requirements of the Ceph Dashboard and is subject to change at any time. Use at your own risk.
- title: Ceph-Dashboard REST API
- paths:
- /second_endpoint:
- get:
- summary: This is a second dummy endpoint
- responses:
- '200':
- description: OK.
- content:
- application/json:
- schema:
- type: object
- properties:
- username:
- type: string
- description: Description of return value
- '400':
- description: Operation exception. Please check the response body for details.
- '401':
- description: Not the default message
- '500':
- description: Unexpected error. Please check the response body for the stack trace.
- parameters:
- - in: query
- name: filter
- # Wrap 'schema' into 'content.<media-type>'
- content:
- application/json: # <---- media type indicates how to serialize / deserialize the parameter content
- schema:
- type: object
- properties:
- type:
- type: string
- color:
- type: string
- - description: '*No description available*'
- content:
- application/json:
- schema:
- type: object
- properties:
- username:
- type: string
- description: 'Description of username'
- password:
- type: string
- description: 'Description of password'
- name: user
- in: query
- tags:
- - MyController
- /first_endpoint:
- get:
- summary: This is a dummy endpoint
- responses:
- '200':
- description: OK
- '400':
- description: Operation exception. Please check the response body for details.
- '401':
- description: Unauthenticated access. Please login first.
- '404':
- description: Page not found
- '500':
- description: Unexpected error. Please check the response body for the stack trace.
- parameters:
- - description: A number of your choice
- schema:
- type: object
- name: my_num
- in: query
- - description: A dummy message
- schema:
- type: object
- name: my_string
- in: query
- tags:
- - MyController
- /third_endpoint:
- get:
- summary: No description available
- responses:
- '400':
- description: Operation exception. Please check the response body for details.
- '401':
- description: Not the default message
- '500':
- description: Unexpected error. Please check the response body for the stack trace.
- parameters: []
- tags:
- - MySecondController
- host: ''
- schemes:
- - https
- components:
- securitySchemes:
- jwt:
- scheme: bearer
- type: http
- bearerFormat: JWT
- tags:
- - name: MyController
- description: This is a dummy controller
- - name: MySecondController
- description: '*No description available*'
- basePath: /
- servers:
- - url: /
- openapi: 3.0.0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement