Skip to content

Commit

Permalink
Merge pull request #979 from SujitMBRDI/fix/docs_partner_upload
Browse files Browse the repository at this point in the history
docs(bpdm-gate): refactored swagger docs for partner upload api
  • Loading branch information
SujitMBRDI authored Jun 27, 2024
2 parents f153edf + 2ff46fc commit dcd4cc6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ interface GatePartnerUploadApi {
summary = "Create or update business partners from uploaded CSV file",
description = "Create or update generic business partners. " +
"Updates instead of creating a new business partner if an already existing external ID is used. " +
"The same external ID may not occur more than once in a single request. " +
"For file upload request, the maximum number of business partners in file limited to \${bpdm.api.upsert-limit} entries.",
"The same external ID may not occur more than once in a requested file. "
)
@ApiResponses(
value = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ package org.eclipse.tractusx.bpdm.gate.controller

import org.eclipse.tractusx.bpdm.gate.api.GatePartnerUploadApi
import org.eclipse.tractusx.bpdm.gate.api.model.response.BusinessPartnerInputDto
import org.eclipse.tractusx.bpdm.gate.config.ApiConfigProperties
import org.eclipse.tractusx.bpdm.gate.config.PermissionConfigProperties
import org.eclipse.tractusx.bpdm.gate.service.BusinessPartnerService
import org.eclipse.tractusx.bpdm.gate.service.PartnerUploadService
import org.eclipse.tractusx.bpdm.gate.util.getCurrentUserBpn
import org.springframework.core.io.ByteArrayResource
Expand All @@ -37,8 +35,6 @@ import org.springframework.web.multipart.MultipartFile

@RestController
class PartnerUploadController(
val businessPartnerService: BusinessPartnerService,
val apiConfigProperties: ApiConfigProperties,
val partnerUploadService: PartnerUploadService
) : GatePartnerUploadApi {

Expand Down

0 comments on commit dcd4cc6

Please sign in to comment.