From 0ae9cfa42f22bd22642c76e41adc3b77b4916c0c Mon Sep 17 00:00:00 2001 From: Min RK Date: Fri, 31 Jan 2020 17:18:30 +0100 Subject: [PATCH] fix schema for remove parameter in rest api it wasn't showing up properly since it's a *property* of the body, not the body itself --- docs/rest-api.yml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/docs/rest-api.yml b/docs/rest-api.yml index 0835686e..13ba2ef2 100644 --- a/docs/rest-api.yml +++ b/docs/rest-api.yml @@ -248,10 +248,13 @@ paths: when spawning via the API instead of spawn form. The structure of the options will depend on the Spawner's configuration. + The body itself will be available as `user_options` for the + Spawner. in: body required: false schema: type: object + responses: '201': description: The user's notebook server has started @@ -312,14 +315,18 @@ paths: in: path required: true type: string - - name: remove - description: | - Whether to fully remove the server, rather than just stop it. - Removing a server deletes things like the state of the stopped server. + - name: body in: body required: false schema: - type: boolean + type: object + properties: + remove: + type: boolean + description: | + Whether to fully remove the server, rather than just stop it. + Removing a server deletes things like the state of the stopped server. + Default: false. responses: '204': description: The user's notebook named-server has stopped