Skip to content

Commit

Permalink
feat(generic bpm): eclipse-tractusx#387 Gate API: Create output endpo…
Browse files Browse the repository at this point in the history
…ints for generic business partners

- Comments from the review incorporated
  • Loading branch information
rainer-exxcellent authored and martinfkaeser committed Sep 8, 2023
1 parent ace0745 commit 9e28b86
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ interface GateBusinessPartnerApi {
)
@PostMapping("/output/business-partners/search")
@PostExchange("/output/business-partners/search")
fun getLegalEntitiesOutput(
fun getBusinessPartnersOutput(
@ParameterObject @Valid paginationRequest: PaginationRequest,
@RequestBody(required = false) externalIds: Collection<String>?
): PageDto<BusinessPartnerOutputDto>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import org.eclipse.tractusx.bpdm.common.dto.ClassificationDto
import org.eclipse.tractusx.bpdm.common.dto.openapidescription.CommonDescription


interface IBaseBusinessPartnerInputDto {
interface IBaseBusinessPartnerDto {

@get:Schema(description = CommonDescription.externalId)
val externalId: String
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ data class BusinessPartnerInputRequest(
override val roles: Collection<BusinessPartnerRole> = emptyList(),
override val postalAddress: BusinessPartnerPostalAddressInputDto,
override val isOwner: Boolean
) : IBaseBusinessPartnerInputDto
) : IBaseBusinessPartnerDto
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ data class BusinessPartnerInputDto(

@get:Schema(description = CommonDescription.updatedAt)
val updatedAt: Instant,
) : IBaseBusinessPartnerInputDto
) : IBaseBusinessPartnerDto
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@ data class BusinessPartnerOutputDto(

@get:Schema(description = CommonDescription.updatedAt)
val updatedAt: Instant,
) : IBaseBusinessPartnerInputDto
) : IBaseBusinessPartnerDto
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class BusinessPartnerController() : GateBusinessPartnerApi {
TODO("Not yet implemented")
}

override fun getLegalEntitiesOutput(paginationRequest: PaginationRequest, externalIds: Collection<String>?): PageDto<BusinessPartnerOutputDto> {
override fun getBusinessPartnersOutput(paginationRequest: PaginationRequest, externalIds: Collection<String>?): PageDto<BusinessPartnerOutputDto> {
TODO("Not yet implemented")
}

Expand Down

0 comments on commit 9e28b86

Please sign in to comment.