gid-oss / dataui-nestjs-crud

NestJs CRUD for RESTful APIs
https://github.com/nestjsx/crud/wiki
MIT License
124 stars 32 forks source link

How to specify `operationId` for each route? #51

Closed abdelrahman-essawy closed 5 months ago

abdelrahman-essawy commented 5 months ago

Hello folks, currently the generated operationId for example looks like this getOneBaseUsersControllerUserEntity,

is there a way to customize this ?

abdelrahman-essawy commented 5 months ago
  routes: {
    getOneBase: {
      decorators: [
        ApiOperation({
          operationId: 'getOne',
        }),
      ],
    },
  },

fixed my problem.