4655 batch endpoints on the rest api (#5411)
- add POST rest/batch/<OBJECT> endpoint - rearrange rest api code with Twenty quality standard - unify REST API error format - Added PATCH verb to update objects - In openapi schema, we replaced PUT with PATCH verb to comply with REST standard - fix openApi schema to match the REST api ### Batch Create  ### Replace PUT by PATCH in open Api  ### Error format unification   
This commit is contained in:
@ -0,0 +1,23 @@
|
||||
import { Module } from '@nestjs/common';
|
||||
import { HttpModule } from '@nestjs/axios';
|
||||
|
||||
import { RestApiCoreController } from 'src/engine/api/rest/controllers/rest-api-core.controller';
|
||||
import { RestApiCoreService } from 'src/engine/api/rest/services/rest-api-core.service';
|
||||
import { CoreQueryBuilderModule } from 'src/engine/api/rest/rest-api-core-query-builder/core-query-builder.module';
|
||||
import { AuthModule } from 'src/engine/core-modules/auth/auth.module';
|
||||
import { RestApiMetadataController } from 'src/engine/api/rest/controllers/rest-api-metadata.controller';
|
||||
import { RestApiMetadataService } from 'src/engine/api/rest/services/rest-api-metadata.service';
|
||||
import { RestApiCoreBatchController } from 'src/engine/api/rest/controllers/rest-api-core-batch.controller';
|
||||
import { RestApiService } from 'src/engine/api/rest/services/rest-api.service';
|
||||
|
||||
@Module({
|
||||
imports: [CoreQueryBuilderModule, AuthModule, HttpModule],
|
||||
controllers: [
|
||||
RestApiMetadataController,
|
||||
RestApiCoreBatchController,
|
||||
RestApiCoreController,
|
||||
],
|
||||
providers: [RestApiMetadataService, RestApiCoreService, RestApiService],
|
||||
exports: [RestApiMetadataService],
|
||||
})
|
||||
export class RestApiModule {}
|
||||
Reference in New Issue
Block a user