what the fuck
This commit is contained in:
1 parent
c1b1c2f372
commit
72a99a5bcd
69 files changed
+7519
-558
No files matched your search
@@ -6,6 +6,7 @@ return [
|
||||
Lexik\Bundle\JWTAuthenticationBundle\LexikJWTAuthenticationBundle::class => ['all' => true],
|
||||
Doctrine\Bundle\DoctrineBundle\DoctrineBundle::class => ['all' => true],
|
||||
Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle::class => ['all' => true],
|
||||
Nelmio\ApiDocBundle\NelmioApiDocBundle::class => ['all' => true],
|
||||
Symfony\Bundle\DebugBundle\DebugBundle::class => ['dev' => true],
|
||||
Symfony\Bundle\TwigBundle\TwigBundle::class => ['all' => true],
|
||||
Symfony\Bundle\WebProfilerBundle\WebProfilerBundle::class => ['dev' => true, 'test' => true],
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
nelmio_api_doc:
|
||||
documentation:
|
||||
openapi: 3.0.3
|
||||
info:
|
||||
title: Tonehaus API
|
||||
description: REST API for albums, reviews, ingestion, and JWT authentication.
|
||||
version: 1.0.0
|
||||
servers:
|
||||
- url: /
|
||||
description: Current application host
|
||||
components:
|
||||
securitySchemes:
|
||||
bearerAuth:
|
||||
type: http
|
||||
scheme: bearer
|
||||
bearerFormat: JWT
|
||||
html_config:
|
||||
assets_mode: cdn
|
||||
swagger_ui_config:
|
||||
docExpansion: list
|
||||
defaultModelsExpandDepth: 1
|
||||
displayRequestDuration: true
|
||||
filter: true
|
||||
areas:
|
||||
default:
|
||||
path_patterns:
|
||||
- ^/api(?!/docs|/v1/docs)
|
||||
@@ -0,0 +1,5 @@
|
||||
lexik_jwt_authentication:
|
||||
secret_key: '%kernel.project_dir%/tests/Fixtures/jwt/private-test.pem'
|
||||
public_key: '%kernel.project_dir%/tests/Fixtures/jwt/public-test.pem'
|
||||
pass_phrase: 'test'
|
||||
token_ttl: 3600
|
||||
@@ -1,2 +0,0 @@
|
||||
api_login_check:
|
||||
path: /api/v1/auth/login
|
||||
@@ -0,0 +1,27 @@
|
||||
api_docs_ui:
|
||||
path: /api/docs
|
||||
methods: [GET]
|
||||
defaults:
|
||||
_controller: nelmio_api_doc.controller.swagger_ui
|
||||
area: default
|
||||
|
||||
api_v1_docs_ui:
|
||||
path: /api/v1/docs
|
||||
methods: [GET]
|
||||
defaults:
|
||||
_controller: nelmio_api_doc.controller.swagger_ui
|
||||
area: default
|
||||
|
||||
api_docs_json:
|
||||
path: /api/docs.json
|
||||
methods: [GET]
|
||||
defaults:
|
||||
_controller: nelmio_api_doc.controller.swagger
|
||||
area: default
|
||||
|
||||
api_v1_docs_json:
|
||||
path: /api/v1/docs.json
|
||||
methods: [GET]
|
||||
defaults:
|
||||
_controller: nelmio_api_doc.controller.swagger
|
||||
area: default
|
||||
+24
-1
@@ -22,13 +22,32 @@ services:
|
||||
|
||||
GuzzleHttp\Client:
|
||||
arguments:
|
||||
$config: { timeout: 10.0, connect_timeout: 5.0, http_errors: false }
|
||||
$config: { timeout: 4.0, connect_timeout: 1.5, http_errors: false }
|
||||
|
||||
App\Service\LastFmClient:
|
||||
arguments:
|
||||
$httpClient: '@GuzzleHttp\Client'
|
||||
$apiKey: '%env(default::LASTFM_API_KEY)%'
|
||||
|
||||
App\Service\MusicBrainzClient:
|
||||
arguments:
|
||||
$httpClient: '@GuzzleHttp\Client'
|
||||
$clientId: '%env(default::MUSICBRAINZ_CLIENT_ID)%'
|
||||
$clientSecret: '%env(default::MUSICBRAINZ_CLIENT_SECRET)%'
|
||||
$accessToken: '%env(default::MUSICBRAINZ_ACCESS_TOKEN)%'
|
||||
|
||||
App\Service\TidalClient:
|
||||
arguments:
|
||||
$httpClient: '@GuzzleHttp\Client'
|
||||
$clientId: '%env(default::TIDAL_CLIENT_ID)%'
|
||||
$clientSecret: '%env(default::TIDAL_CLIENT_SECRET)%'
|
||||
$countryCode: '%env(default::TIDAL_COUNTRY_CODE)%'
|
||||
|
||||
App\Service\ExternalAlbumClient:
|
||||
arguments: []
|
||||
|
||||
App\Service\ExternalAlbumClientInterface: '@App\Service\ExternalAlbumClient'
|
||||
|
||||
App\Service\UploadStorage:
|
||||
arguments:
|
||||
$storageRoot: '%kernel.project_dir%/public/uploads'
|
||||
@@ -41,3 +60,7 @@ services:
|
||||
App\Controller\Api\V1\AlbumApiController:
|
||||
arguments:
|
||||
$searchLimit: '%album_search_limit%'
|
||||
|
||||
App\EventSubscriber\ApiExceptionSubscriber:
|
||||
arguments:
|
||||
$debug: '%kernel.debug%'
|
||||
Reference in new issue
Block a user