Skip to content

Instantly share code, notes, and snippets.

@curtisj44
Created September 1, 2021 17:53
Show Gist options
  • Save curtisj44/a658ebc9e61fa85432c04c9c9e5b65a7 to your computer and use it in GitHub Desktop.
Save curtisj44/a658ebc9e61fa85432c04c9c9e5b65a7 to your computer and use it in GitHub Desktop.
info:
title: test
version: 1.0.0
consumes:
- application/json
produces:
- application/json
swagger: '2.0'
securityDefinitions:
keystone:
description: OpenStack Keystone Authentication
type: apiKey
in: header
name: x-auth-token
security: []
paths:
/api/v1/clusters/:
get:
operationId: ListClusters
summary: List available clusters
responses:
200:
description: OK
schema:
type: array
items:
$ref: '#/definitions/Cluster'
security:
- keystone: []
post:
operationId: CreateCluster
summary: Create a cluster
responses:
200:
description: OK
schema:
$ref: '#/definitions/Cluster'
parameters:
- name: body
in: body
required: true
schema:
$ref: '#/definitions/Cluster'
security:
- keystone: []
definitions:
Cluster:
type: object
properties:
name:
description: name of the cluster
type: string
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment