refactor/remove the version in swagger operationId

This commit is contained in:
hongwei 2023-03-23 15:52:07 +01:00
parent a133a74f5e
commit fa6b673678
2 changed files with 3 additions and 2 deletions

View File

@ -497,7 +497,7 @@ object SwaggerJSONFactory extends MdcLoggable {
tags = rd.tags.map(_.tag),
summary = rd.summary,
description = PegdownOptions.convertPegdownToHtmlTweaked(rd.description.stripMargin).replaceAll("\n", ""),
operationId = s"${rd.implementedInApiVersion.fullyQualifiedVersion }-${rd.partialFunctionName.toString }",
operationId = s"${rd.partialFunctionName}",
parameters ={
val description = rd.exampleRequestBody match {
case EmptyBody => ""

View File

@ -12,6 +12,7 @@ import code.branches.Branches
import code.customer.CustomerX
import code.usercustomerlinks.UserCustomerLink
import code.views.Views
import com.github.dwickern.macros.NameOf.nameOf
import com.openbankproject.commons.model._
import com.openbankproject.commons.util.ApiVersion
import net.liftweb.common.{Box, Full}
@ -128,7 +129,7 @@ trait APIMethods140 extends MdcLoggable with APIMethods130 with APIMethods121{
resourceDocs += ResourceDoc(
addCustomerMessage,
apiVersion,
"createCustomerMessage",
nameOf(addCustomerMessage),
"POST",
"/banks/BANK_ID/customer/CUSTOMER_ID/messages",
"Create Customer Message",