-
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.
- Loading branch information
Showing
29 changed files
with
226 additions
and
243 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,36 @@ | ||
/api/v1/translations: | ||
post: | ||
tags: [Translation] | ||
summary: Get all translations | ||
requestBody: | ||
description: Locale and array of keys | ||
content: | ||
application/json: | ||
schema: | ||
ref: '#/components/schemas/Translation' | ||
responses: | ||
'200': | ||
description: Successful response | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
properties: | ||
locale: | ||
type: string | ||
example: en | ||
keys: | ||
type: array | ||
items: | ||
type: string | ||
example: 'key1' | ||
'403': | ||
description: Unauthorized | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
properties: | ||
message: | ||
type: string | ||
example: 'Unauthorized' |
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.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,14 @@ | ||
nelmio_api_doc: | ||
models: | ||
names: | ||
- { alias: Translation, type: Pimcore\Bundle\StudioApiBundle\Dto\Translation } | ||
areas: | ||
path_patterns: # an array of regexps (document only routes under /api, except /api/doc) | ||
- ^/api(?!/doc$) | ||
host_patterns: # document only routes with a host of the form api.* | ||
- ^api\. | ||
documentation: | ||
info: | ||
title: My API | ||
description: My API Description | ||
version: 1.0.0 |
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,18 @@ | ||
api_platform: | ||
resource: . | ||
type: api_platform | ||
prefix: /api | ||
prefix: /testtesttest | ||
|
||
|
||
api_platform_swagger_ui: | ||
path: /api/doc/swagger | ||
methods: GET | ||
defaults: { _controller: nelmio_api_doc.controller.swagger_ui } | ||
|
||
|
||
studio_api: | ||
resource: "../../src/Controller/Api" | ||
type: annotation | ||
prefix: /api | ||
options: | ||
expose: true |
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 was deleted.
Oops, something went wrong.
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 @@ | ||
<?php | ||
|
||
namespace Pimcore\Bundle\StudioApiBundle\Controller\Api; | ||
|
||
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; | ||
use Symfony\Component\Routing\Route; | ||
|
||
#[Route('/api')] | ||
abstract class AbstractApiController extends AbstractController | ||
{ | ||
|
||
} |
Oops, something went wrong.