File

src/partnership/partnership.controller.ts

Prefix

/partnership

Index

Methods

Methods

calculatePartnershipV1
calculatePartnershipV1(body: PartnershipBodyArray)
Decorators :
@Post()
@ApiResponse({type: PartnershipResultDto, description: 'returns partnership list of manufacturers and distributors'})
Parameters :
Name Type Optional
body PartnershipBodyArray No
Returns : any
import { Body, Controller, Get, Query } from '@nestjs/common';
import { ApiBearerAuth, ApiResponse, ApiTags } from '@nestjs/swagger';
import { PartnershipService } from './partnership.service';
import {
  PartnershipBodyArray,
  PartnershipResultDto,
} from './dto/partnership.dto';
import { Post } from '@nestjs/common/decorators';

@ApiTags('Partnership')
@ApiBearerAuth('token')
@Controller('/partnership')
export class PartnershipController {
  constructor(private readonly partnershipService: PartnershipService) {}

  @Post()
  @ApiResponse({
    type: PartnershipResultDto,
    description: 'returns partnership list of manufacturers and distributors',
  })
  calculatePartnershipV1(@Body() body: PartnershipBodyArray) {
    return this.partnershipService.calculatePartnership(body);
  }
}

results matching ""

    No results matching ""