123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553 |
- ---
- swagger: '2.0'
- info:
- version: 1.0.0
- title: Users and Groups
- description: Organisation of security users and groups
- contact:
- name: GeoServer
- email: 'geoserver-users@osgeo.org'
- url: 'https://geoserver.org/comm/'
- host: localhost:8080
- basePath: /geoserver/rest/security
- paths:
- /usergroup/users/:
- get:
- operationId: usersDefaultGet
- tags:
- - "UserGroup"
- summary: Query all users
- description: Query all users in the default user/group service.
- produces:
- - application/xml
- - application/json
- responses:
- 200:
- description: OK
- schema:
- $ref: "#/definitions/Users"
- post:
- operationId: usersDefaultPost
- tags:
- - "UserGroup"
- summary: Add a new user
- description: Add a new user to the default user/group service
- parameters:
- - name: usersDefaultPostBody
- description: the new user's details
- in: body
- required: true
- schema:
- $ref: "#/definitions/User"
- consumes:
- - application/json
- - application/xml
- responses:
- 201:
- description: Created
- headers:
- ID:
- description: ID of the newly created user
- type: string
- /usergroup/service/{serviceName}/users/:
- get:
- operationId: usersGet
- tags:
- - "UserGroup"
- summary: Query all users
- description: Query all users in a particular user/group service.
- produces:
- - application/xml
- - application/json
- parameters:
- - name: serviceName
- description: the name of the user/group service
- in: path
- required: true
- type: string
- responses:
- 200:
- description: OK
- schema:
- $ref: "#/definitions/Users"
- post:
- operationId: usersPost
- tags:
- - "UserGroup"
- summary: Add a new user
- description: Add a new user to a particular user/group service.
- consumes:
- - application/json
- - application/xml
- parameters:
- - name: serviceName
- description: the name of the user/group service
- in: path
- required: true
- type: string
- - name: usersPostBody
- description: the new user's details
- in: body
- required: true
- schema:
- $ref: "#/definitions/User"
- responses:
- 201:
- description: Created
- headers:
- ID:
- description: ID of the newly created user
- type: string
- /usergroup/user/{user}:
- post:
- operationId: userDefaultPost
- tags:
- - "UserGroup"
- summary: Modify a user
- description: Modify a user in the default user/group service, unspecified fields remain unchanged.
- consumes:
- - application/json
- - application/xml
- parameters:
- - name: user
- description: the name of the user
- in: path
- required: true
- type: string
- - name: userDefaultPostBody
- description: the new user's details
- in: body
- required: true
- schema:
- $ref: "#/definitions/User"
- responses:
- 200:
- description: OK
- delete:
- operationId: userDefaultDelete
- tags:
- - "UserGroup"
- summary: Delete a user
- description: Delete a user in the default user/group service.
- consumes:
- - application/json
- - application/xml
- parameters:
- - name: user
- description: the name of the user
- in: path
- required: true
- type: string
- responses:
- 200:
- description: OK
- /usergroup/service/{serviceName}/user/{user}:
- post:
- operationId: userPost
- tags:
- - "UserGroup"
- summary: Modify a user
- description: Modify a user in a particular user/group service, unspecified fields remain unchanged.
- consumes:
- - application/json
- - application/xml
- parameters:
- - name: serviceName
- description: the name of the user/group service
- in: path
- required: true
- type: string
- - name: user
- description: the name of the user
- in: path
- required: true
- type: string
- - name: userPostBody
- description: the new user's details
- in: body
- required: true
- schema:
- $ref: "#/definitions/User"
- responses:
- 200:
- description: OK
- delete:
- operationId: userDelete
- tags:
- - "UserGroup"
- summary: Delete a user
- description: Delete a user in a particular user/group service.
- consumes:
- - application/json
- - application/xml
- parameters:
- - name: serviceName
- description: the name of the user/group service
- in: path
- required: true
- type: string
- - name: user
- description: the name of the user
- in: path
- required: true
- type: string
- responses:
- 200:
- description: OK
- /usergroup/group/{group}/users:
- get:
- operationId: groupDefaultUserGet
- tags:
- - "UserGroup"
- summary: Query all users for a group
- description: Query all users for a group in the default user/group service.
- produces:
- - application/xml
- - application/json
- parameters:
- - name: group
- description: the name of the group
- in: path
- required: true
- type: string
- responses:
- 200:
- description: OK
- schema:
- $ref: "#/definitions/Users"
- /usergroup/user/{user}/groups:
- get:
- operationId: userDefaultGroupGet
- tags:
- - "UserGroup"
- summary: Query all groups for a user
- description: Query all groups for a user in the default user/group service.
- produces:
- - application/xml
- - application/json
- parameters:
- - name: user
- description: the name of the user
- in: path
- required: true
- type: string
- responses:
- 200:
- description: OK
- schema:
- $ref: "#/definitions/Groups"
- /usergroup/user/{user}/group/{group}:
- post:
- operationId: userGroupDefaultPost
- tags:
- - "UserGroup"
- summary: Associate a user with a group
- description: Associate a user with a group in the default user/group service.
- produces:
- - application/xml
- - application/json
- parameters:
- - name: user
- description: the name of the user
- in: path
- required: true
- type: string
- - name: group
- description: the name of the group
- in: path
- required: true
- type: string
- responses:
- 200:
- description: OK
- delete:
- operationId: userGroupDefaultDelete
- tags:
- - "UserGroup"
- summary: Unassociate a user from a group
- description: Unassociate a user from a group in the default user/group service.
- produces:
- - application/xml
- - application/json
- parameters:
- - name: user
- description: the name of the user
- in: path
- required: true
- type: string
- - name: group
- description: the name of the group
- in: path
- required: true
- type: string
- responses:
- 200:
- description: OK
- /usergroup/service/{serviceName}/group/{group}/users:
- get:
- operationId: groupUserGet
- tags:
- - "UserGroup"
- summary: Query all users for a group
- description: Query all users for a group in a particular user/group service.
- produces:
- - application/xml
- - application/json
- parameters:
- - name: serviceName
- description: the name of the user/group service
- in: path
- required: true
- type: string
- - name: group
- description: the name of the group
- in: path
- required: true
- type: string
- responses:
- 200:
- description: OK
- schema:
- $ref: "#/definitions/Users"
- /usergroup/service/{serviceName}/user/{user}/groups:
- get:
- operationId: userGroupGet
- tags:
- - "UserGroup"
- summary: Query all groups for a user
- description: Query all groups for a user in a particular user/group service.
- produces:
- - application/xml
- - application/json
- parameters:
- - name: serviceName
- description: the name of the user/group service
- in: path
- required: true
- type: string
- - name: user
- description: the name of the user
- in: path
- required: true
- type: string
- responses:
- 200:
- description: OK
- schema:
- $ref: "#/definitions/Groups"
- /usergroup/service/{serviceName}/user/{user}/group/{group}:
- post:
- operationId: userGroupPost
- tags:
- - "UserGroup"
- summary: Associate a user with a group
- description: Associate a user with a group in a particular user/group service.
- produces:
- - application/xml
- - application/json
- parameters:
- - name: serviceName
- description: the name of the user/group service
- in: path
- required: true
- type: string
- - name: user
- description: the name of the user
- in: path
- required: true
- type: string
- - name: group
- description: the name of the group
- in: path
- required: true
- type: string
- responses:
- 200:
- description: OK
- delete:
- operationId: userGroupDelete
- tags:
- - "UserGroup"
- summary: Unassociate a user from a group
- description: Unassociate a user from a group in a particular user/group service.
- produces:
- - application/xml
- - application/json
- parameters:
- - name: serviceName
- description: the name of the user/group service
- in: path
- required: true
- type: string
- - name: user
- description: the name of the user
- in: path
- required: true
- type: string
- - name: group
- description: the name of the group
- in: path
- required: true
- type: string
- responses:
- 200:
- description: OK
- /usergroup/groups/:
- get:
- operationId: groupsDefaultGet
- tags:
- - "UserGroup"
- summary: Query all groups
- description: Query all groups in the default user/group service.
- produces:
- - application/xml
- - application/json
- responses:
- 200:
- description: OK
- schema:
- $ref: "#/definitions/Groups"
- /usergroup/group/{group}:
- post:
- operationId: groupDefaultPost
- tags:
- - "UserGroup"
- summary: Add a group
- description: Add a group in the default user/group service.
- consumes:
- - application/json
- - application/xml
- parameters:
- - name: group
- description: the name of the group
- in: path
- required: true
- type: string
- responses:
- 200:
- description: OK
- delete:
- operationId: groupDefaultDelete
- tags:
- - "UserGroup"
- summary: Delete a group
- description: Delete a group in the default user/group service.
- consumes:
- - application/json
- - application/xml
- parameters:
- - name: group
- description: the name of the group
- in: path
- required: true
- type: string
- responses:
- 200:
- description: OK
- /usergroup/service/{serviceName}/groups/:
- get:
- operationId: groupsGet
- tags:
- - "UserGroup"
- summary: Query all groups
- description: Query all groups in a particular user/group service.
- produces:
- - application/xml
- - application/json
- parameters:
- - name: serviceName
- description: the name of the group group service
- in: path
- required: true
- type: string
- responses:
- 200:
- description: OK
- schema:
- $ref: "#/definitions/Groups"
- /usergroup/service/{serviceName}/group/{group}:
- post:
- operationId: groupPost
- tags:
- - "UserGroup"
- summary: Add a group
- description: Add a group in a particular user/group service.
- consumes:
- - application/json
- - application/xml
- parameters:
- - name: serviceName
- description: the name of the user/group service
- in: path
- required: true
- type: string
- - name: group
- description: the name of the group
- in: path
- required: true
- type: string
- responses:
- 200:
- description: OK
- delete:
- operationId: groupDelete
- tags:
- - "UserGroup"
- summary: Delete a group
- description: Delete a group in a particular user/group service.
- consumes:
- - application/json
- - application/xml
- parameters:
- - name: serviceName
- description: the name of the user/group service
- in: path
- required: true
- type: string
- - name: group
- description: the name of the group
- in: path
- required: true
- type: string
- responses:
- 200:
- description: OK
-
- definitions:
- Users:
- title: users
- xml:
- name: users
- type: array
- items:
- $ref: "#/definitions/User"
-
- User:
- title: user
- xml:
- name: user
- type: object
- properties:
- userName:
- type: string
- password:
- type: string
- enabled:
- type: boolean
- enum:
- - true
- - false
- Groups:
- title: groups
- xml:
- name: groups
- type: array
- items:
- $ref: "#/definitions/Group"
- Group:
- title: group
- xml:
- name: group
- type: string
|