Question · NestJS course · Module 1: NestJS Basics

HTTP Method for Creating a Resource

Which HTTP decorator in NestJS is used to create a new resource?

Answer options

  • @Get()
  • @Delete()
  • @Put()
  • @Post()
Show the answer

Correct answer:

  • @Post()