(OpenAPI) Documentation process
Document the backend
Controllers endpoints
@ApiTags('XXX') // Put above the controller to structure the documentation@ApiOperation({
summary: 'Explain the endpoint main action',
})@ApiOkResponse({
schema: {
type: 'any' (boolean, string, number, ...),
},
})
OR
@ApiOkResponse({
schema: schemaFromType('YOUR TYPE | INTERFACE'),
})Database schemas
Last updated