gid-oss / dataui-nestjs-crud

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

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

Closed abdelrahman-essawy closed 6 months ago

abdelrahman-essawy commented 6 months ago

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

is there a way to customize this ?

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

fixed my problem.