1.3.3 • Published 2 months ago

@amplication/plugin-swagger-apibody v1.3.3

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
2 months ago

@amplication/plugin-swagger-apibody

NPM Downloads

Add Description of Routes and Entity properties to the REST-API Documentation.

@common.Post()
  @swagger.ApiCreatedResponse({ type: User })
  @swagger.ApiForbiddenResponse({ type: errors.ForbiddenException })
  @swagger.ApiBody({
    type: UserCreateInput,
  }) /// add this line to every post and update controller
  async create(@common.Body() data: UserCreateInput): Promise<User> {

Purpose

The plugin adds the details of the type of the body to the Create and Update methods in each controller.

Configuration

no configuration required

Scripts

build

Running npm run build will bundle your plugin with Webpack for production.

Usage

add this plugin to the generated code to get extra information on your documentation.

1.3.5

2 months ago

1.3.4

2 months ago

1.3.3

5 months ago

1.3.2

5 months ago

1.3.1

6 months ago

1.3.0

10 months ago

1.2.0

12 months ago

1.0.0

12 months ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago