Skip to content

relaese 2.0.2 🎲

Choose a tag to compare

@Jon-Millent Jon-Millent released this 17 Aug 01:13
· 71 commits to main since this release

Documentation Services

Enable document service

fireCatRouter.enableDocument()

Custom document service path

fireCatRouter.enableDocument('/document')

custom document description

fireCatRouter.enableDocument('/document', {
   title: 'Interface Documentation',
   description: 'This is the interface document',
   date: '2022-05-20',
   version: '1.0.0'
})

ApiDescription

ApiDescription(des: string)

Describe the request and render it into the final document

class MyController extends FireCatController {
   @Post('hello')
   @ApiDescription('This is a request')
   hello(ctx: Context) {
     ctx.body = "hello world"
   }
}