mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-02 19:20:23 +00:00
235 lines
5.1 KiB
Plaintext
235 lines
5.1 KiB
Plaintext
|
swagger: "2.0"
|
||
|
info: <
|
||
|
title: "Google Example Library API"
|
||
|
version: "v1"
|
||
|
description: "A simple Google Example Library API."
|
||
|
>
|
||
|
host: "library-example.googleapis.com"
|
||
|
paths: <
|
||
|
path: <
|
||
|
name: "/v1/{sharedParameter}/pets"
|
||
|
value: <
|
||
|
post: <
|
||
|
operation_id: "simpleMethod"
|
||
|
parameters: <
|
||
|
parameter: <
|
||
|
body_parameter: <
|
||
|
name: "myBodyRef"
|
||
|
in: "body"
|
||
|
schema: <
|
||
|
properties: <
|
||
|
additional_properties: <
|
||
|
name: "myStringA"
|
||
|
value: <
|
||
|
type: <
|
||
|
value: "string"
|
||
|
>
|
||
|
>
|
||
|
>
|
||
|
>
|
||
|
>
|
||
|
>
|
||
|
>
|
||
|
>
|
||
|
parameters: <
|
||
|
parameter: <
|
||
|
non_body_parameter: <
|
||
|
query_parameter_sub_schema: <
|
||
|
required: true
|
||
|
in: "query"
|
||
|
description: "New description"
|
||
|
name: "paramToOverride"
|
||
|
type: "string"
|
||
|
>
|
||
|
>
|
||
|
>
|
||
|
>
|
||
|
parameters: <
|
||
|
parameter: <
|
||
|
non_body_parameter: <
|
||
|
query_parameter_sub_schema: <
|
||
|
required: true
|
||
|
in: "query"
|
||
|
description: "test"
|
||
|
name: "paramAtSwaggerScope"
|
||
|
type: "integer"
|
||
|
format: "int32"
|
||
|
>
|
||
|
>
|
||
|
>
|
||
|
>
|
||
|
responses: <
|
||
|
response_code: <
|
||
|
name: "default"
|
||
|
value: <
|
||
|
response: <
|
||
|
description: "successful operation"
|
||
|
schema: <
|
||
|
schema: <
|
||
|
properties: <
|
||
|
additional_properties: <
|
||
|
name: "myStringA"
|
||
|
value: <
|
||
|
type: <
|
||
|
value: "string"
|
||
|
>
|
||
|
>
|
||
|
>
|
||
|
>
|
||
|
>
|
||
|
>
|
||
|
>
|
||
|
>
|
||
|
>
|
||
|
>
|
||
|
>
|
||
|
parameters: <
|
||
|
parameter: <
|
||
|
non_body_parameter: <
|
||
|
path_parameter_sub_schema: <
|
||
|
required: true
|
||
|
in: "path"
|
||
|
description: "Shared parameter"
|
||
|
name: "sharedParameter"
|
||
|
type: "string"
|
||
|
>
|
||
|
>
|
||
|
>
|
||
|
>
|
||
|
parameters: <
|
||
|
parameter: <
|
||
|
non_body_parameter: <
|
||
|
query_parameter_sub_schema: <
|
||
|
required: true
|
||
|
in: "query"
|
||
|
description: "Description to override"
|
||
|
name: "paramToOverride"
|
||
|
type: "string"
|
||
|
>
|
||
|
>
|
||
|
>
|
||
|
>
|
||
|
>
|
||
|
>
|
||
|
>
|
||
|
definitions: <
|
||
|
additional_properties: <
|
||
|
name: "SimpleDef"
|
||
|
value: <
|
||
|
properties: <
|
||
|
additional_properties: <
|
||
|
name: "myStringA"
|
||
|
value: <
|
||
|
type: <
|
||
|
value: "string"
|
||
|
>
|
||
|
>
|
||
|
>
|
||
|
>
|
||
|
>
|
||
|
>
|
||
|
>
|
||
|
parameters: <
|
||
|
additional_properties: <
|
||
|
name: "paramAtSwaggerScope"
|
||
|
value: <
|
||
|
non_body_parameter: <
|
||
|
query_parameter_sub_schema: <
|
||
|
required: true
|
||
|
in: "query"
|
||
|
description: "test"
|
||
|
name: "paramAtSwaggerScope"
|
||
|
type: "integer"
|
||
|
format: "int32"
|
||
|
>
|
||
|
>
|
||
|
>
|
||
|
>
|
||
|
>
|
||
|
vendor_extension: <
|
||
|
name: "x-sampleone-book"
|
||
|
value: <
|
||
|
value: <
|
||
|
type_url: "type.googleapis.com/sampleone.Book"
|
||
|
value: "\010{\020\347\007"
|
||
|
>
|
||
|
yaml: "code: 123\nmessage: 999\n"
|
||
|
>
|
||
|
>
|
||
|
vendor_extension: <
|
||
|
name: "x-sampleone-shelf"
|
||
|
value: <
|
||
|
value: <
|
||
|
type_url: "type.googleapis.com/sampleone.Shelf"
|
||
|
value: "\010{\020\347\007"
|
||
|
>
|
||
|
yaml: "foo1: 123\nbar: 999\n"
|
||
|
>
|
||
|
>
|
||
|
vendor_extension: <
|
||
|
name: "x-sampleone-mysimplestring"
|
||
|
value: <
|
||
|
value: <
|
||
|
type_url: "type.googleapis.com/google.protobuf.StringValue"
|
||
|
value: "\n\013hello world"
|
||
|
>
|
||
|
yaml: "hello world\n"
|
||
|
>
|
||
|
>
|
||
|
vendor_extension: <
|
||
|
name: "x-sampleone-mysimpleint64"
|
||
|
value: <
|
||
|
value: <
|
||
|
type_url: "type.googleapis.com/google.protobuf.StringValue"
|
||
|
value: "\n\00512345"
|
||
|
>
|
||
|
yaml: "12345\n"
|
||
|
>
|
||
|
>
|
||
|
vendor_extension: <
|
||
|
name: "x-sampleone-mysimplenumber"
|
||
|
value: <
|
||
|
value: <
|
||
|
type_url: "type.googleapis.com/google.protobuf.DoubleValue"
|
||
|
value: "\t\221\355|?5\316[@"
|
||
|
>
|
||
|
yaml: "111.222\n"
|
||
|
>
|
||
|
>
|
||
|
vendor_extension: <
|
||
|
name: "x-sampleone-mysimpleboolean"
|
||
|
value: <
|
||
|
value: <
|
||
|
type_url: "type.googleapis.com/google.protobuf.BoolValue"
|
||
|
value: "\010\001"
|
||
|
>
|
||
|
yaml: "true\n"
|
||
|
>
|
||
|
>
|
||
|
vendor_extension: <
|
||
|
name: "x-sampletwo-book"
|
||
|
value: <
|
||
|
value: <
|
||
|
type_url: "type.googleapis.com/sampletwo.Book"
|
||
|
value: "\010{\020\347\007"
|
||
|
>
|
||
|
yaml: "code: 123\nmessage: 999\n"
|
||
|
>
|
||
|
>
|
||
|
vendor_extension: <
|
||
|
name: "x-sampletwo-shelf"
|
||
|
value: <
|
||
|
value: <
|
||
|
type_url: "type.googleapis.com/sampletwo.Shelf"
|
||
|
value: "\010{\020\347\007"
|
||
|
>
|
||
|
yaml: "foo1: 123\nbar: 999\n"
|
||
|
>
|
||
|
>
|
||
|
vendor_extension: <
|
||
|
name: "x-unhandled"
|
||
|
value: <
|
||
|
yaml: "code: 123\nmessage: 999\n"
|
||
|
>
|
||
|
>
|