-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove hateoas dependencies, api platform implementations and restruc…
…ture
- Loading branch information
Showing
62 changed files
with
290 additions
and
934 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
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,23 @@ | ||
/studio/api/login: | ||
post: | ||
tags: [Authorization] | ||
summary: Login with user credentials and get access token | ||
requestBody: | ||
description: username and password | ||
content: | ||
application/json: | ||
schema: | ||
ref: '#/components/schemas/Credentials' | ||
responses: | ||
'200': | ||
description: Successful response | ||
content: | ||
application/json: | ||
schema: | ||
ref: '#/components/schemas/Token' | ||
'403': | ||
description: Unauthorized | ||
content: | ||
application/json: | ||
schema: | ||
ref: '#/components/schemas/Unauthorized' |
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,27 @@ | ||
/studio/api/refresh: | ||
post: | ||
tags: [Authorization] | ||
summary: Refresh access token | ||
requestBody: | ||
description: token | ||
content: | ||
application/json: | ||
schema: | ||
ref: '#/components/schemas/RefreshToken' | ||
responses: | ||
'200': | ||
description: Successful response | ||
content: | ||
application/json: | ||
schema: | ||
ref: '#/components/schemas/Token' | ||
'403': | ||
description: Unauthorized | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
properties: | ||
message: | ||
type: string | ||
example: 'Unauthorized' |
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,9 @@ | ||
Credentials: | ||
type: object | ||
properties: | ||
username: | ||
type: string | ||
example: admin | ||
password: | ||
type: string | ||
example: '*****' |
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,6 @@ | ||
RefreshToken: | ||
type: object | ||
properties: | ||
token: | ||
type: string | ||
example: refresh_token |
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,12 @@ | ||
Token: | ||
type: object | ||
properties: | ||
token: | ||
type: string | ||
example: generated_token | ||
username: | ||
type: string | ||
example: admin | ||
lifetime: | ||
type: integer | ||
example: 3600 |
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,11 @@ | ||
Translation: | ||
type: object | ||
properties: | ||
locale: | ||
type: string | ||
example: en | ||
keys: | ||
type: array | ||
items: | ||
type: string | ||
example: username |
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,10 @@ | ||
Unauthorized: | ||
description: Unauthorized | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
properties: | ||
message: | ||
type: string | ||
example: 'Unauthorized' |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
/api/v1/translations: | ||
/studio/api/translations: | ||
post: | ||
tags: [Translation] | ||
summary: Get all translations | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
api_dcos: | ||
path: /api/docs | ||
path: /studio/api/docs | ||
methods: GET | ||
defaults: { _controller: nelmio_api_doc.controller.swagger_ui } | ||
|
||
openapi_docs: | ||
path: /api/docs/openapi | ||
path: /studio/api/docs/openapi | ||
methods: GET | ||
defaults: { _controller: nelmio_api_doc.controller.swagger } | ||
|
||
studio_api: | ||
resource: "../../src/Controller/Api" | ||
type: annotation | ||
prefix: /api | ||
prefix: /studio/api | ||
options: | ||
expose: true |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.