2
0
mirror of https://github.com/jupyter/notebook.git synced 2025-03-01 12:56:54 +08:00

fix swagger validation errors

This commit is contained in:
Min RK 2016-01-21 14:55:13 +01:00
parent 1a7d23479b
commit ba65ca5030

View File

@ -14,7 +14,7 @@ consumes:
- application/json - application/json
parameters: parameters:
kernel: kernel:
name: kernel name: kernel_id
required: true required: true
in: path in: path
description: kernel uuid description: kernel uuid
@ -39,6 +39,12 @@ parameters:
in: path in: path
description: Checkpoint id for a file description: Checkpoint id for a file
type: string type: string
section_name:
name: section_name
required: true
in: path
description: Name of config section
type: string
paths: paths:
/contents/{path}: /contents/{path}:
@ -301,6 +307,9 @@ paths:
/contents/{path}/checkpoints/{checkpoint_id}: /contents/{path}/checkpoints/{checkpoint_id}:
post: post:
summary: Restore a file to a particular checkpointed state summary: Restore a file to a particular checkpointed state
parameters:
- $ref: "#/parameters/path"
- $ref: "#/parameters/checkpoint_id"
tags: tags:
- contents - contents
responses: responses:
@ -319,6 +328,9 @@ paths:
description: Explanation of error reason description: Explanation of error reason
delete: delete:
summary: Delete a checkpoint summary: Delete a checkpoint
parameters:
- $ref: "#/parameters/path"
- $ref: "#/parameters/checkpoint_id"
tags: tags:
- contents - contents
responses: responses:
@ -530,6 +542,8 @@ paths:
/config/{section_name}: /config/{section_name}:
get: get:
summary: Get a configuration section by name summary: Get a configuration section by name
parameters:
- $ref: "#/parameters/section_name"
tags: tags:
- config - config
responses: responses:
@ -542,6 +556,7 @@ paths:
tags: tags:
- config - config
parameters: parameters:
- $ref: "#/parameters/section_name"
- name: configuration - name: configuration
in: body in: body
schema: schema:
@ -708,6 +723,3 @@ definitions:
type: string type: string
description: Last modified timestamp description: Last modified timestamp
format: dateTime format: dateTime
Config:
description: A configuration object.
type: object