Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@amplication/plugin-swagger-apibody

Package Overview
Dependencies
Maintainers
8
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@amplication/plugin-swagger-apibody

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

  • 1.3.3
  • latest
  • npm
  • Socket score

Version published
Maintainers
8
Created
Source

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

FAQs

Package last updated on 28 Dec 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc