diff --git a/static/api-specs/nerm/parameters/query/user_type.yaml b/static/api-specs/nerm/parameters/query/user_type.yaml new file mode 100644 index 000000000..6c847e706 --- /dev/null +++ b/static/api-specs/nerm/parameters/query/user_type.yaml @@ -0,0 +1,8 @@ +name: type +in: query +description: user type +required: false +schema: + type: string + enum: [NeprofileUser, NeaccessUser] + example: NeprofileUser diff --git a/static/api-specs/nerm/paths/users.yaml b/static/api-specs/nerm/paths/users.yaml index 9ac56585e..9ebccb3dc 100644 --- a/static/api-specs/nerm/paths/users.yaml +++ b/static/api-specs/nerm/paths/users.yaml @@ -10,14 +10,15 @@ get: - $ref: "../parameters/query/login.yaml" - $ref: "../parameters/query/title.yaml" - $ref: "../parameters/query/user_status.yaml" + - $ref: "../parameters/query/user_type.yaml" - $ref: "../parameters/query/email.yaml" - $ref: "../parameters/query/metadata.yaml" responses: - '200': + "200": $ref: "../responses/Users_Meta.yaml" - '400': + "400": $ref: "../responses/400.yaml" - '500': + "500": $ref: "../responses/500.yaml" post: summary: Create multiple new users @@ -28,11 +29,11 @@ post: requestBody: $ref: "../requestBodies/POST/Users.yaml" responses: - '200': + "200": $ref: "../responses/UsersJob.yaml" - '400': + "400": $ref: "../responses/400.yaml" - '500': + "500": $ref: "../responses/500.yaml" patch: summary: Update multiple users @@ -43,9 +44,9 @@ patch: requestBody: $ref: "../requestBodies/PATCH/Users.yaml" responses: - '200': + "200": $ref: "../responses/UsersJob.yaml" - '400': + "400": $ref: "../responses/400.yaml" - '500': - $ref: "../responses/500.yaml" \ No newline at end of file + "500": + $ref: "../responses/500.yaml"