Skip to content

Commit

Permalink
document workspace post default query parameter
Browse files Browse the repository at this point in the history
also consistent namimng for workspace controller
  • Loading branch information
jodygarnett committed Sep 12, 2017
1 parent a31ecc2 commit 1e7d9e6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions doc/en/api/1.0.0/workspaces.yaml
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@ paths:
required: true required: true
schema: schema:
$ref: "#/definitions/Workspace" $ref: "#/definitions/Workspace"
- name: default
in: query
description: New workspace will be the used as the default. Allowed values are true or false, The default value is false.
required: false
type: boolean
default: false
consumes: consumes:
- application/json - application/json
- application/xml - application/xml
Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public RestWrapper workspacesGet() {
} }


@GetMapping(value = "/{workspaceName}") @GetMapping(value = "/{workspaceName}")
public RestWrapper<WorkspaceInfo> getWorkspace(@PathVariable String workspaceName) { public RestWrapper<WorkspaceInfo> workspaceG(@PathVariable String workspaceName) {


WorkspaceInfo wkspace = catalog.getWorkspaceByName(workspaceName); WorkspaceInfo wkspace = catalog.getWorkspaceByName(workspaceName);
if (wkspace == null) { if (wkspace == null) {
Expand Down

0 comments on commit 1e7d9e6

Please sign in to comment.