Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unnecessary application/json properties #57

Merged
merged 1 commit into from
Jun 11, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
75 changes: 30 additions & 45 deletions api/kubernetes.raml
Original file line number Diff line number Diff line change
Expand Up @@ -84,117 +84,102 @@ documentation:
responses:
200:
body:
application/json:
example: !include examples/pod-list.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
schema: !include doc/pod-schema.json
example: !include examples/pod.json

/{podId}:
get:
description: Get a specific pod
responses:
200:
body:
application/json:
example: !include examples/pod.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
schema: !include doc/pod-schema.json
example: !include examples/pod.json
delete:
description: Delete a specific pod
responses:
200:
body:
application/json:
example: |
{
"success": true
}
example: |
{
"success": true
}

/replicationControllers:
get:
description: List all replicationControllers on this cluster
responses:
200:
body:
application/json:
example: !include examples/controller-list.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
schema: !include doc/controller-schema.json
example: !include examples/controller.json

/{controllerId}:
get:
description: Get a specific controller
responses:
200:
body:
application/json:
example: !include examples/controller.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
schema: !include doc/controller-schema.json
example: !include examples/controller.json
delete:
description: Delete a specific controller
responses:
200:
body:
application/json:
example: |
{
"success": true
}
example: |
{
"success": true
}

/services:
get:
description: List all services on this cluster
responses:
200:
body:
application/json:
example: !include examples/service-list.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
schema: !include doc/service-schema.json
example: !include examples/service.json

/{serviceId}:
get:
description: Get a specific service
responses:
200:
body:
application/json:
example: !include examples/service.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
schema: !include doc/service-schema.json
example: !include examples/service.json
delete:
description: Delete a specific service
responses:
200:
body:
application/json:
example: |
{
"success": true
}
example: |
{
"success": true
}