You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -63,6 +64,10 @@ import { doesUserHaveRole } from '../../../common/helper/auth.helper';
63
64
description: 'The Company Api Internal Server Error Response',
64
65
type: ExceptionDto,
65
66
})
67
+
@ApiUnprocessableEntityResponse({
68
+
description: 'The Company Entity could not be processed.',
69
+
type: ExceptionDto,
70
+
})
66
71
@ApiBearerAuth()
67
72
@Controller('companies')
68
73
exportclassCompanyController{
@@ -228,8 +233,9 @@ export class CompanyController {
228
233
}
229
234
230
235
/**
231
-
* A POST method defined with a route of /verify-client that verifies
232
-
* the existence of a migrated/onRoute BC client and their permit in the system.
236
+
* A POST method is defined with a route of /verify-client that verifies
237
+
* the existence of a migrated/OnRouteBC client and their permit in the system.
238
+
* A 422 unprocessable exception will be thrown if it is found that the company has already been claimed in OnRouteBC.
233
239
*
234
240
* @returns The verified client details with response object {@link ReadVerifyClientDto}.
235
241
*/
@@ -240,7 +246,7 @@ export class CompanyController {
240
246
@ApiOperation({
241
247
summary: 'Verify Migrated/onRouteBC Client',
242
248
description:
243
-
'Verifies the existence of a migrated/onRouteBC client and their permit in the database',
249
+
'Verifies the existence of a migrated/onRouteBC client and their permit in the database. A 422 unprocessable exception will be thrown if it is found that the company has already been claimed in OnRouteBC.',
0 commit comments