[4/n]: migrate the RESTAPI GET /rest/* to use TwentyORM directly (#10372)

# This PR

- Addressing #3644
- Migrates the `findOne` and the `findMany` Rest API to use TwentyORM
directly
- Adds integration tests to the migrated methods

---------

Co-authored-by: prastoin <paul@twenty.com>
Co-authored-by: martmull <martmull@hotmail.fr>
This commit is contained in:
P A C · 先生
2025-04-01 11:34:43 +02:00
committed by GitHub
parent a24e96ae0e
commit a26b3f54d6
12 changed files with 734 additions and 49 deletions

View File

@ -37,6 +37,7 @@ const MIGRATED_REST_METHODS = [
RequestMethod.POST,
RequestMethod.PATCH,
RequestMethod.PUT,
RequestMethod.GET,
];
@Module({