Amplication
Platform
Solutions
Learn
Star Us 12.7K
Log In to Amplication

Contact us

  • contact@amplication.org
Try Overcut.ai
  • Home /
  • Plugins /
  • Swagger ApiBody
plugin logo
Swagger ApiBody
Install Plugin

@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.

Details
npm
@amplication/plugin-swagger-apibody
github
https://github.com/amplication/plugins/tree/main/plugins/swagger-apibody
Installs
0
Categories
Documentation
Documentation
https://github.com/amplication/plugins/tree/main/plugins/swagger-apibody

Get started with Amplication and Swagger ApiBody

Start NowBook a demo

Platform

Live TemplatesPluginsJovu

Solutions

Enhance platform engineeringBuild new servicesBuild APIs on existing DBModernize applications

Customers

IT ServicesRetailHealthcareManufacturingCustomer stories

Use Amplication

Get started Custom pluginsCustom codeSync with GitEvent-driven architectureBreak the monolith

Resources

DocsCustomer storiesPlugins catalogDiscord communityGitHubBlog

About

CompanyContact us

©2025 amplication

Privacy PolicyTerms & Conditions
Follow usTwitter IconYouTube Icon