Skip to content

Commit

Permalink
Document person register endpoint
Browse files Browse the repository at this point in the history
The OpenAPI documentation for the `person#register` action.
  • Loading branch information
danidoni committed Jan 22, 2021
1 parent d417bba commit ce317e6
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/api/public/apidocs-new/OBS-v2.10.50.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ paths:

/person:
$ref: 'paths/person.yaml'

/person/register:
$ref: 'paths/person_register.yaml'
/person/{login}/token:
$ref: 'paths/person_login_token.yaml'

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
type: object
properties:
login:
type: string
realname:
type: string
email:
type: string
password:
type: string
note:
type: string
state:
type: string
xml:
name: unregisteredperson
4 changes: 0 additions & 4 deletions src/api/public/apidocs-new/paths/person.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ get:
summary: List all people.
description: >
List all people.
security:
- basic_authentication: []
parameters:
- in: query
name: prefix
Expand Down Expand Up @@ -34,7 +32,5 @@ get:
- name: 'user_2'
- name: 'user_3'
- name: 'Requestor'
'401':
$ref: '../components/responses/unauthorized.yaml'
tags:
- Person

0 comments on commit ce317e6

Please sign in to comment.