Skip to content

Commit

Permalink
Fix the use of limit and page query param on /admin endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
WilcoLouwerse committed Jan 15, 2024
1 parent ff98cc5 commit c3a9f02
Show file tree
Hide file tree
Showing 23 changed files with 39 additions and 24 deletions.
2 changes: 1 addition & 1 deletion api/src/Entity/Action.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
* collectionOperations={
* "get"={"path"="/admin/actions"},
* "post"={"path"="/admin/actions"}
* })
* }
* )
*
* @ORM\HasLifecycleCallbacks
Expand Down
2 changes: 1 addition & 1 deletion api/src/Entity/ActionHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
* collectionOperations={
* "get"={"path"="/admin/actionHandlers"},
* "post"={"path"="/admin/actionHandlers"}
* })
* }
* )
*
* @ORM\Entity(repositoryClass=ActionHandlerRepository::class)
Expand Down
2 changes: 1 addition & 1 deletion api/src/Entity/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
* collectionOperations={
* "get"={"path"="/admin/applications"},
* "post"={"path"="/admin/applications"}
* })
* }
* )
*
* @ORM\HasLifecycleCallbacks
Expand Down
5 changes: 3 additions & 2 deletions api/src/Entity/Attribute.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
use Symfony\Component\Validator\Constraints as Assert;

/**
* An possible attribute on an Entity.
* A possible attribute on an Entity.
*
* @category Entity
*
Expand All @@ -39,7 +39,8 @@
* collectionOperations={
* "get"={"path"="/admin/attributes"},
* "post"={"path"="/admin/attributes"}
* })
* }
* )
*
* @ORM\Entity(repositoryClass=AttributeRepository::class)
*
Expand Down
3 changes: 2 additions & 1 deletion api/src/Entity/AuditTrail.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@
* "get"={"path"="/admin/audit_trails"},
* "post"={"path"="/admin/audit_trails"}
* },
* attributes={"order"={"creationDate": "DESC"}})
* attributes={"order"={"creationDate": "DESC"}}
* )
*
* @ORM\Entity(repositoryClass=AuditTrailRepository::class)
*
Expand Down
3 changes: 2 additions & 1 deletion api/src/Entity/CollectionEntity.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@
* collectionOperations={
* "get"={"path"="/admin/collections"},
* "post"={"path"="/admin/collections"}
* })
* }
* )
*
* @ORM\Entity(repositoryClass=CollectionEntityRepository::class)
*
Expand Down
3 changes: 2 additions & 1 deletion api/src/Entity/Contract.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@
* collectionOperations={
* "get"={"path"="/admin/contracts"},
* "post"={"path"="/admin/contracts"}
* })
* }
* )
*
* @ORM\Entity(repositoryClass=ContractRepository::class)
*
Expand Down
3 changes: 2 additions & 1 deletion api/src/Entity/Cronjob.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
* collectionOperations={
* "get"={"path"="/admin/cronjobs"},
* "post"={"path"="/admin/cronjobs"}
* })
* }
* )
*
* @ORM\Entity(repositoryClass=CronjobRepository::class)
*
Expand Down
3 changes: 2 additions & 1 deletion api/src/Entity/DashboardCard.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
* collectionOperations={
* "get"={"path"="/admin/dashboardCards"},
* "post"={"path"="/admin/dashboardCards"}
* })
* }
* )
*
* @ORM\Entity(repositoryClass=DashboardCardRepository::class)
*
Expand Down
3 changes: 2 additions & 1 deletion api/src/Entity/Endpoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@
* collectionOperations={
* "get"={"path"="/admin/endpoints"},
* "post"={"path"="/admin/endpoints"}
* })
* }
* )
*
* @ORM\Entity(repositoryClass="App\Repository\EndpointRepository")
*
Expand Down
3 changes: 2 additions & 1 deletion api/src/Entity/Entity.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@
* "description"="Deletes all objects that belong to this schema"
* }
* },
* })
* }
* )
*
* @ORM\Entity(repositoryClass="App\Repository\EntityRepository")
*
Expand Down
2 changes: 1 addition & 1 deletion api/src/Entity/Mapping.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
* collectionOperations={
* "get"={"path"="/admin/mappings"},
* "post"={"path"="/admin/mappings"}
* })
* }
* )
*
* @ORM\Entity(repositoryClass=MappingRepository::class)
Expand Down
2 changes: 1 addition & 1 deletion api/src/Entity/ObjectEntity.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
use function Symfony\Component\Translation\t;

/**
* An (data) object that resides within the datalayer of the gateway.
* A (data) object that resides within the datalayer of the gateway.
*
* @category Entity
*
Expand Down
3 changes: 2 additions & 1 deletion api/src/Entity/Organization.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@
* collectionOperations={
* "get"={"path"="/admin/organizations"},
* "post"={"path"="/admin/organizations"}
* })
* }
* )
*
* @ORM\HasLifecycleCallbacks
*
Expand Down
2 changes: 1 addition & 1 deletion api/src/Entity/Property.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
* collectionOperations={
* "get"={"path"="/admin/properties"},
* "post"={"path"="/admin/properties"}
* })
* }
* )
*
* @ORM\Entity(repositoryClass=PropertyRepository::class)
Expand Down
3 changes: 2 additions & 1 deletion api/src/Entity/Purpose.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
* collectionOperations={
* "get"={"path"="/admin/purposes"},
* "post"={"path"="/admin/purposes"}
* })
* }
* )
*
* @ORM\Entity(repositoryClass=PurposeRepository::class)
*
Expand Down
2 changes: 1 addition & 1 deletion api/src/Entity/SecurityGroup.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
* collectionOperations={
* "get"={"path"="/admin/user_groups"},
* "post"={"path"="/admin/user_groups"}
* })
* }
* )
*
* @ORM\HasLifecycleCallbacks
Expand Down
3 changes: 2 additions & 1 deletion api/src/Entity/Synchronization.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
* collectionOperations={
* "get"={"path"="/admin/synchronizations"},
* "post"={"path"="/admin/synchronizations"}
* })
* }
* )
*
* @ORM\Entity(repositoryClass=SynchronizationRepository::class)
*
Expand Down
3 changes: 2 additions & 1 deletion api/src/Entity/Template.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
* collectionOperations={
* "get"={"path"="/admin/templates"},
* "post"={"path"="/admin/templates"}
* }))
* }
* )
*
* @ORM\Entity(repositoryClass=TemplateRepository::class)
*
Expand Down
3 changes: 2 additions & 1 deletion api/src/Entity/Translation.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@
* "path"="/admin/table_names"
* },
* "post"={"path"="/admin/translations"}
* })
* }
* )
*
* @ORM\Entity(repositoryClass=TranslationRepository::class)
*
Expand Down
2 changes: 1 addition & 1 deletion api/src/Entity/Unread.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
* collectionOperations={
* "get"={"path"="/admin/unreads"},
* "post"={"path"="/admin/unreads"}
* })
* }
* )
*
* @ORM\Entity(repositoryClass="App\Repository\UnreadRepository")
Expand Down
3 changes: 2 additions & 1 deletion api/src/Entity/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@
* collectionOperations={
* "get"={"path"="/admin/users"},
* "post"={"path"="/admin/users"}
* })
* }
* )
*
* @ORM\HasLifecycleCallbacks
*
Expand Down
3 changes: 2 additions & 1 deletion api/src/Entity/Value.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@
* collectionOperations={
* "get"={"path"="/admin/values"},
* "post"={"path"="/admin/values"}
* })
* }
* )
*
* @ORM\Entity(repositoryClass="App\Repository\ValueRepository")
*
Expand Down

0 comments on commit c3a9f02

Please sign in to comment.