mirror of
https://github.com/OpenBankProject/OBP-API.git
synced 2026-02-06 13:26:51 +00:00
refactor/remove the version in swagger operationId
This commit is contained in:
parent
a133a74f5e
commit
fa6b673678
@ -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 => ""
|
||||
|
||||
@ -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",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user