feat(fullstack): Read user out of JWT and persist with created and last modified
This commit is contained in:
@@ -240,48 +240,6 @@ paths:
|
||||
"503":
|
||||
$ref: "https://api.swaggerhub.com/domains/smartbear-public/ProblemDetails/1.0.0#/components/responses/ServiceUnavailable"
|
||||
|
||||
/users:
|
||||
get:
|
||||
summary: Get all users
|
||||
operationId: getAllUsers
|
||||
tags:
|
||||
- user
|
||||
responses:
|
||||
"200":
|
||||
description: Paged list of users
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/PagedUserDto"
|
||||
"500":
|
||||
description: Internal server error
|
||||
post:
|
||||
summary: Create a new user
|
||||
operationId: createUser
|
||||
tags:
|
||||
- user
|
||||
requestBody:
|
||||
required: true
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/CreateUserDTO"
|
||||
responses:
|
||||
"201":
|
||||
description: Successfully created user
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/UserDto"
|
||||
"400":
|
||||
$ref: "https://api.swaggerhub.com/domains/smartbear-public/ProblemDetails/1.0.0#/components/responses/BadRequest"
|
||||
"401":
|
||||
$ref: "https://api.swaggerhub.com/domains/smartbear-public/ProblemDetails/1.0.0#/components/responses/Unauthorized"
|
||||
"500":
|
||||
$ref: "https://api.swaggerhub.com/domains/smartbear-public/ProblemDetails/1.0.0#/components/responses/ServerError"
|
||||
"503":
|
||||
$ref: "https://api.swaggerhub.com/domains/smartbear-public/ProblemDetails/1.0.0#/components/responses/ServiceUnavailable"
|
||||
|
||||
/users/{id}:
|
||||
parameters:
|
||||
- name: id
|
||||
@@ -607,77 +565,12 @@ components:
|
||||
type: object
|
||||
required:
|
||||
- id
|
||||
- username
|
||||
- firstname
|
||||
- lastname
|
||||
- email
|
||||
- password
|
||||
- roleId
|
||||
- createdAt
|
||||
- modifiedAt
|
||||
- name
|
||||
properties:
|
||||
id:
|
||||
type: string
|
||||
format: uuid
|
||||
username:
|
||||
name:
|
||||
type: string
|
||||
firstName:
|
||||
type: string
|
||||
lastName:
|
||||
type: string
|
||||
email:
|
||||
type: string
|
||||
format: email
|
||||
password:
|
||||
type: string
|
||||
roleId:
|
||||
type: string
|
||||
format: uuid
|
||||
createdAt:
|
||||
type: string
|
||||
format: date-time
|
||||
modifiedAt:
|
||||
type: string
|
||||
format: date-time
|
||||
|
||||
CreateUserDTO:
|
||||
type: object
|
||||
required:
|
||||
- username
|
||||
- firstname
|
||||
- lastname
|
||||
- email
|
||||
- password
|
||||
- roleId
|
||||
- createdAt
|
||||
- modifiedAt
|
||||
properties:
|
||||
username:
|
||||
type: string
|
||||
firstName:
|
||||
type: string
|
||||
lastName:
|
||||
type: string
|
||||
email:
|
||||
type: string
|
||||
format: email
|
||||
password:
|
||||
type: string
|
||||
roleId:
|
||||
type: string
|
||||
format: uuid
|
||||
|
||||
PagedUserDto:
|
||||
type: object
|
||||
allOf:
|
||||
- $ref: "#/components/schemas/Page"
|
||||
required:
|
||||
- content
|
||||
properties:
|
||||
content:
|
||||
type: array
|
||||
items:
|
||||
$ref: "#/components/schemas/UserDto"
|
||||
|
||||
####### ApplicationFormDto #######
|
||||
ApplicationFormDto:
|
||||
@@ -704,9 +597,9 @@ components:
|
||||
isTemplate:
|
||||
type: boolean
|
||||
createdBy:
|
||||
type: string
|
||||
$ref: "#/components/schemas/UserDto"
|
||||
lastModifiedBy:
|
||||
type: string
|
||||
$ref: "#/components/schemas/UserDto"
|
||||
createdAt:
|
||||
type: string
|
||||
format: date-time
|
||||
@@ -732,10 +625,6 @@ components:
|
||||
isTemplate:
|
||||
type: boolean
|
||||
default: false
|
||||
createdBy:
|
||||
type: string
|
||||
lastModifiedBy:
|
||||
type: string
|
||||
|
||||
PagedApplicationFormDto:
|
||||
type: object
|
||||
|
||||
Reference in New Issue
Block a user