feat: firsts endpoints and firsts tests
This commit is contained in:
parent
89570ad951
commit
6bc3696190
@@ -2,8 +2,8 @@ api_platform:
|
||||
title: Mangarr API
|
||||
version: 1.0.0
|
||||
formats:
|
||||
jsonld: ['application/ld+json']
|
||||
json: ['application/json']
|
||||
jsonld: ['application/ld+json']
|
||||
html: ['text/html']
|
||||
jsonhal: ['application/hal+json']
|
||||
swagger:
|
||||
@@ -23,3 +23,8 @@ api_platform:
|
||||
rfc_7807_compliant_errors: true
|
||||
event_listeners_backward_compatibility_layer: false
|
||||
keep_legacy_inflector: false
|
||||
mapping:
|
||||
paths:
|
||||
- '%kernel.project_dir%/src/Domain/Scraping/Infrastructure/ApiPlatform/Dto'
|
||||
patch_formats:
|
||||
json: ['application/merge-patch+json']
|
||||
|
||||
@@ -21,6 +21,13 @@ doctrine:
|
||||
dir: '%kernel.project_dir%/src/Entity'
|
||||
prefix: 'App\Entity'
|
||||
alias: App
|
||||
# Ajout du mapping pour le domaine Scraping
|
||||
Scraping:
|
||||
type: attribute
|
||||
is_bundle: false
|
||||
dir: '%kernel.project_dir%/src/Domain/Scraping/Infrastructure/Persistence/Entity'
|
||||
prefix: 'App\Domain\Scraping\Infrastructure\Persistence\Entity'
|
||||
alias: Scraping
|
||||
|
||||
when@test:
|
||||
doctrine:
|
||||
|
||||
15
config/services_test.yaml
Normal file
15
config/services_test.yaml
Normal file
@@ -0,0 +1,15 @@
|
||||
services:
|
||||
_defaults:
|
||||
autowire: true
|
||||
autoconfigure: true
|
||||
public: true
|
||||
|
||||
Symfony\Component\Messenger\MessageBusInterface:
|
||||
class: 'App\Tests\Domain\Scraping\Adapter\InMemoryMessageBus'
|
||||
public: true
|
||||
|
||||
App\Domain\Scraping\Domain\Contract\Repository\ScrapingJobRepositoryInterface:
|
||||
class: 'App\Tests\Domain\Scraping\Adapter\InMemoryScrapingJobRepository'
|
||||
public: true
|
||||
|
||||
|
||||
Reference in New Issue
Block a user