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,12 +84,10 @@ documentation:
|
|||
responses:
|
||||
200:
|
||||
body:
|
||||
application/json:
|
||||
example: !include examples/pod-list.json
|
||||
post:
|
||||
description: Create a new pod. currentState is ignored if present.
|
||||
body:
|
||||
json/application:
|
||||
schema: !include doc/pod-schema.json
|
||||
example: !include examples/pod.json
|
||||
|
||||
|
@ -99,12 +97,10 @@ documentation:
|
|||
responses:
|
||||
200:
|
||||
body:
|
||||
application/json:
|
||||
example: !include examples/pod.json
|
||||
put:
|
||||
description: Update a pod
|
||||
body:
|
||||
json/application:
|
||||
schema: !include doc/pod-schema.json
|
||||
example: !include examples/pod.json
|
||||
delete:
|
||||
|
@ -112,7 +108,6 @@ documentation:
|
|||
responses:
|
||||
200:
|
||||
body:
|
||||
application/json:
|
||||
example: |
|
||||
{
|
||||
"success": true
|
||||
|
@ -124,12 +119,10 @@ documentation:
|
|||
responses:
|
||||
200:
|
||||
body:
|
||||
application/json:
|
||||
example: !include examples/controller-list.json
|
||||
post:
|
||||
description: Create a new controller. currentState is ignored if present.
|
||||
body:
|
||||
json/application:
|
||||
schema: !include doc/controller-schema.json
|
||||
example: !include examples/controller.json
|
||||
|
||||
|
@ -139,12 +132,10 @@ documentation:
|
|||
responses:
|
||||
200:
|
||||
body:
|
||||
application/json:
|
||||
example: !include examples/controller.json
|
||||
put:
|
||||
description: Update a controller
|
||||
body:
|
||||
json/application:
|
||||
schema: !include doc/controller-schema.json
|
||||
example: !include examples/controller.json
|
||||
delete:
|
||||
|
@ -152,7 +143,6 @@ documentation:
|
|||
responses:
|
||||
200:
|
||||
body:
|
||||
application/json:
|
||||
example: |
|
||||
{
|
||||
"success": true
|
||||
|
@ -164,12 +154,10 @@ documentation:
|
|||
responses:
|
||||
200:
|
||||
body:
|
||||
application/json:
|
||||
example: !include examples/service-list.json
|
||||
post:
|
||||
description: Create a new service
|
||||
body:
|
||||
json/application:
|
||||
schema: !include doc/service-schema.json
|
||||
example: !include examples/service.json
|
||||
|
||||
|
@ -179,12 +167,10 @@ documentation:
|
|||
responses:
|
||||
200:
|
||||
body:
|
||||
application/json:
|
||||
example: !include examples/service.json
|
||||
put:
|
||||
description: Update a service
|
||||
body:
|
||||
json/application:
|
||||
schema: !include doc/service-schema.json
|
||||
example: !include examples/service.json
|
||||
delete:
|
||||
|
@ -192,7 +178,6 @@ documentation:
|
|||
responses:
|
||||
200:
|
||||
body:
|
||||
application/json:
|
||||
example: |
|
||||
{
|
||||
"success": true
|
||||
|
|
Loading…
Reference in New Issue