mirror of https://github.com/k3s-io/k3s
Remove unnecessary application/json properties
Since the default mediaType is declared at the root level, you can omit the explicit application/json media types for any body. DRY!pull/6/head
parent
fd5d98f21b
commit
0ef752aa00
|
@ -84,14 +84,12 @@ documentation:
|
||||||
responses:
|
responses:
|
||||||
200:
|
200:
|
||||||
body:
|
body:
|
||||||
application/json:
|
example: !include examples/pod-list.json
|
||||||
example: !include examples/pod-list.json
|
|
||||||
post:
|
post:
|
||||||
description: Create a new pod. currentState is ignored if present.
|
description: Create a new pod. currentState is ignored if present.
|
||||||
body:
|
body:
|
||||||
json/application:
|
schema: !include doc/pod-schema.json
|
||||||
schema: !include doc/pod-schema.json
|
example: !include examples/pod.json
|
||||||
example: !include examples/pod.json
|
|
||||||
|
|
||||||
/{podId}:
|
/{podId}:
|
||||||
get:
|
get:
|
||||||
|
@ -99,24 +97,21 @@ documentation:
|
||||||
responses:
|
responses:
|
||||||
200:
|
200:
|
||||||
body:
|
body:
|
||||||
application/json:
|
example: !include examples/pod.json
|
||||||
example: !include examples/pod.json
|
|
||||||
put:
|
put:
|
||||||
description: Update a pod
|
description: Update a pod
|
||||||
body:
|
body:
|
||||||
json/application:
|
schema: !include doc/pod-schema.json
|
||||||
schema: !include doc/pod-schema.json
|
example: !include examples/pod.json
|
||||||
example: !include examples/pod.json
|
|
||||||
delete:
|
delete:
|
||||||
description: Delete a specific pod
|
description: Delete a specific pod
|
||||||
responses:
|
responses:
|
||||||
200:
|
200:
|
||||||
body:
|
body:
|
||||||
application/json:
|
example: |
|
||||||
example: |
|
{
|
||||||
{
|
"success": true
|
||||||
"success": true
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/replicationControllers:
|
/replicationControllers:
|
||||||
get:
|
get:
|
||||||
|
@ -124,14 +119,12 @@ documentation:
|
||||||
responses:
|
responses:
|
||||||
200:
|
200:
|
||||||
body:
|
body:
|
||||||
application/json:
|
example: !include examples/controller-list.json
|
||||||
example: !include examples/controller-list.json
|
|
||||||
post:
|
post:
|
||||||
description: Create a new controller. currentState is ignored if present.
|
description: Create a new controller. currentState is ignored if present.
|
||||||
body:
|
body:
|
||||||
json/application:
|
schema: !include doc/controller-schema.json
|
||||||
schema: !include doc/controller-schema.json
|
example: !include examples/controller.json
|
||||||
example: !include examples/controller.json
|
|
||||||
|
|
||||||
/{controllerId}:
|
/{controllerId}:
|
||||||
get:
|
get:
|
||||||
|
@ -139,24 +132,21 @@ documentation:
|
||||||
responses:
|
responses:
|
||||||
200:
|
200:
|
||||||
body:
|
body:
|
||||||
application/json:
|
example: !include examples/controller.json
|
||||||
example: !include examples/controller.json
|
|
||||||
put:
|
put:
|
||||||
description: Update a controller
|
description: Update a controller
|
||||||
body:
|
body:
|
||||||
json/application:
|
schema: !include doc/controller-schema.json
|
||||||
schema: !include doc/controller-schema.json
|
example: !include examples/controller.json
|
||||||
example: !include examples/controller.json
|
|
||||||
delete:
|
delete:
|
||||||
description: Delete a specific controller
|
description: Delete a specific controller
|
||||||
responses:
|
responses:
|
||||||
200:
|
200:
|
||||||
body:
|
body:
|
||||||
application/json:
|
example: |
|
||||||
example: |
|
{
|
||||||
{
|
"success": true
|
||||||
"success": true
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/services:
|
/services:
|
||||||
get:
|
get:
|
||||||
|
@ -164,14 +154,12 @@ documentation:
|
||||||
responses:
|
responses:
|
||||||
200:
|
200:
|
||||||
body:
|
body:
|
||||||
application/json:
|
example: !include examples/service-list.json
|
||||||
example: !include examples/service-list.json
|
|
||||||
post:
|
post:
|
||||||
description: Create a new service
|
description: Create a new service
|
||||||
body:
|
body:
|
||||||
json/application:
|
schema: !include doc/service-schema.json
|
||||||
schema: !include doc/service-schema.json
|
example: !include examples/service.json
|
||||||
example: !include examples/service.json
|
|
||||||
|
|
||||||
/{serviceId}:
|
/{serviceId}:
|
||||||
get:
|
get:
|
||||||
|
@ -179,22 +167,19 @@ documentation:
|
||||||
responses:
|
responses:
|
||||||
200:
|
200:
|
||||||
body:
|
body:
|
||||||
application/json:
|
example: !include examples/service.json
|
||||||
example: !include examples/service.json
|
|
||||||
put:
|
put:
|
||||||
description: Update a service
|
description: Update a service
|
||||||
body:
|
body:
|
||||||
json/application:
|
schema: !include doc/service-schema.json
|
||||||
schema: !include doc/service-schema.json
|
example: !include examples/service.json
|
||||||
example: !include examples/service.json
|
|
||||||
delete:
|
delete:
|
||||||
description: Delete a specific service
|
description: Delete a specific service
|
||||||
responses:
|
responses:
|
||||||
200:
|
200:
|
||||||
body:
|
body:
|
||||||
application/json:
|
example: |
|
||||||
example: |
|
{
|
||||||
{
|
"success": true
|
||||||
"success": true
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue