-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
319 additions
and
230 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
App\ApiResource\Auth\Authentication: | ||
shortName: "Authentication" | ||
attributes: | ||
normalization_context: | ||
groups: [ "api-get", "auth:api-get" ] | ||
swagger_definition_name: "GET" | ||
denormalization_context: | ||
groups: [ "api-post", "auth:api-post" ] | ||
swagger_definition_name: "POST" | ||
|
||
# itemOperations | ||
itemOperations: [] | ||
|
||
# collectionOperations | ||
collectionOperations: | ||
# Refresh | ||
post_refresh_api: | ||
status: 200 | ||
method: POST | ||
path: /auth/refresh-token | ||
input: App\Dto\Auth\UserRefreshDto | ||
openapi_context: | ||
summary: "Refresh user access token" | ||
description: "Refresh user access token" | ||
|
||
# Logout | ||
post_logout_api: | ||
status: 200 | ||
method: POST | ||
path: /auth/logout | ||
input: App\Dto\Auth\UserLogoutDto | ||
openapi_context: | ||
summary: "Logout user" | ||
description: "Logout user, remove session and device" | ||
|
||
# Password reset init | ||
post_password_reset_api: | ||
status: 200 | ||
method: POST | ||
path: /auth/forgot-password/init | ||
input: App\Dto\Auth\UserPasswordResetDto | ||
openapi_context: | ||
summary: "Initiate user forgot password flow" | ||
description: "Initiate a user forgot password flow by sending an email to the user" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
App\ApiResource\Auth\Register: | ||
shortName: "Registration" | ||
attributes: | ||
normalization_context: | ||
groups: [ "api-get", "register:api-get" ] | ||
swagger_definition_name: "GET" | ||
denormalization_context: | ||
groups: [ "api-post", "register:api-post" ] | ||
swagger_definition_name: "POST" | ||
|
||
# itemOperations | ||
itemOperations: [] | ||
|
||
# collectionOperations | ||
collectionOperations: | ||
# Registration | ||
post_register_api: | ||
method: POST | ||
path: /auth/register | ||
input: App\Dto\Auth\UserRegisterDto | ||
output: App\Dto\User\UserProfileDto | ||
openapi_context: | ||
summary: "Register a new user" | ||
description: "Register a new user" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
App\ApiResource\User\User: | ||
shortName: "User" | ||
attributes: | ||
normalization_context: | ||
groups: [ "api-get", "profile:api-get" ] | ||
swagger_definition_name: "GET" | ||
denormalization_context: | ||
groups: [ "api-post", "profile:api-post", "password:api-post" ] | ||
swagger_definition_name: "PATCH" | ||
|
||
# itemOperations | ||
itemOperations: | ||
# Get user profile. | ||
get: | ||
path: /users/{userSid}/profile | ||
output: App\Dto\User\UserProfileDto | ||
openapi_context: | ||
summary: "Get user profile" | ||
description: "Get user profile" | ||
|
||
# Update user profile. | ||
patch: | ||
path: /users/{userSid}/profile | ||
input: App\Dto\User\UserProfileDto | ||
output: App\Dto\User\UserProfileDto | ||
openapi_context: | ||
summary: "Update user profile" | ||
description: "Update user profile" | ||
|
||
# Update user password | ||
password_update: | ||
method: PATCH | ||
status: 200 | ||
path: /users/{userSid}/change-password | ||
input: App\Dto\User\UserPasswordDto | ||
output: App\Dto\General\StatusDto | ||
openapi_context: | ||
summary: "Update user password" | ||
description: "Update user password" | ||
|
||
# collectionOperations | ||
collectionOperations: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
App\ApiResource\User\UserDevice: | ||
shortName: "UserDevices" | ||
attributes: | ||
normalization_context: | ||
groups: [ "api-get", "device:api-get" ] | ||
swagger_definition_name: "GET" | ||
denormalization_context: | ||
groups: [ "api-post", "device:api-post" ] | ||
swagger_definition_name: "PATCH" | ||
|
||
# itemOperations | ||
itemOperations: | ||
# Get user device. | ||
get: | ||
path: /users/devices/{deviceSid} | ||
output: App\Dto\User\UserDeviceDto | ||
openapi_context: | ||
summary: "Get user device" | ||
description: "Get user device" | ||
|
||
# Update user device. | ||
patch: | ||
path: /users/devices/{deviceSid} | ||
input: App\Dto\User\UserDeviceDto | ||
output: App\Dto\User\UserDeviceDto | ||
openapi_context: | ||
summary: "Update user device token" | ||
description: "Update user device token" | ||
|
||
# collectionOperations | ||
collectionOperations: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.