Skip to content

Commit

Permalink
Merge pull request #80 from UN-OCHA/cafuego/oha-64-data-model-change
Browse files Browse the repository at this point in the history
fix: Make the API route arameters match the controller parameters.
  • Loading branch information
cafuego authored Feb 13, 2024
2 parents 78f93f4 + ff3555f commit 4fef7bc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Entity/OchaPresence.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
use ApiPlatform\OpenApi\Model\Operation as OpenApiOperation;
use App\Controller\OchaPresenceReplaceExternalIdsController;
use App\Dto\BatchResponses;
use App\Dto\OchaPresenceReplaceExternalIds;
use App\Repository\OchaPresenceRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
Expand All @@ -35,7 +34,7 @@
security: "is_granted('ROLE_ADMIN') or is_granted('ROLE_OCHA_PRESENCE')",
uriTemplate: '/ocha_presences/{id}/external_ids',
controller: OchaPresenceReplaceExternalIdsController::class,
input: OchaPresenceReplaceExternalIds::class,
input: OchaPresence::class,
output: BatchResponses::class,
openapi: new OpenApiOperation(
summary: 'Adds and replaces external ids for a given provider and year',
Expand Down

0 comments on commit 4fef7bc

Please sign in to comment.