Skip to content

Commit

Permalink
fix: api docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mustafasalfiti committed Apr 19, 2024
1 parent 1b8e766 commit c39730a
Showing 1 changed file with 9 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,7 @@ public class IssuersCredentialControllerApiDocs {
@RequestBody(content = {
@Content(examples = @ExampleObject("""
{
"bpn": "BPNL000000000000",
"asJwt": false
"bpn": "BPNL000000000000"
}
"""))
})
Expand Down Expand Up @@ -331,8 +330,7 @@ public class IssuersCredentialControllerApiDocs {
"activityType": "vehicleDismantle",
"allowedVehicleBrands": [
"Audi", "Abarth", "Alfa Romeo", "Chrysler"
],
"asJwt": false
]
}
"""))
})
Expand Down Expand Up @@ -464,62 +462,55 @@ public class IssuersCredentialControllerApiDocs {
"holderIdentifier": "BPNL000000000000",
"type": "BehaviorTwinCredential",
"contract-template": "https://public.catena-x.org/contracts/traceabilty.v1.pdf",
"contract-version": "1.0.0",
"asJwt": false
"contract-version": "1.0.0"
}
"""),
@ExampleObject(name = "PcfCredential", value = """
{
"holderIdentifier": "BPNL000000000000",
"type": "PcfCredential",
"contract-template": "https://public.catena-x.org/contracts/traceabilty.v1.pdf",
"contract-version": "1.0.0",
"asJwt": false
"contract-version": "1.0.0"
}
"""),
@ExampleObject(name = "SustainabilityCredential", value = """
{
"holderIdentifier": "BPNL000000000000",
"type": "SustainabilityCredential",
"contract-template": "https://public.catena-x.org/contracts/traceabilty.v1.pdf",
"contract-version": "1.0.0",
"asJwt": false
"contract-version": "1.0.0"
}
"""),
@ExampleObject(name = "QualityCredential", value = """
{
"holderIdentifier": "BPNL000000000000",
"type": "QualityCredential",
"contract-template": "https://public.catena-x.org/contracts/traceabilty.v1.pdf",
"contract-version": "1.0.0",
"asJwt": false
"contract-version": "1.0.0"
}
"""),
@ExampleObject(name = "TraceabilityCredential", value = """
{
"holderIdentifier": "BPNL000000000000",
"type": "TraceabilityCredential",
"contract-template": "https://public.catena-x.org/contracts/traceabilty.v1.pdf",
"contract-version": "1.0.0",
"asJwt": false
"contract-version": "1.0.0"
}
"""),
@ExampleObject(name = "BehaviorTwinCredential", value = """
{
"holderIdentifier": "BPNL000000000000",
"type": "BehaviorTwinCredential",
"contract-template": "https://public.catena-x.org/contracts/traceabilty.v1.pdf",
"contract-version": "1.0.0",
"asJwt": false
"contract-version": "1.0.0"
}
"""),
@ExampleObject(name = "ResiliencyCredential", value = """
{
"holderIdentifier": "BPNL000000000000",
"type": "ResiliencyCredential",
"contract-template": "https://public.catena-x.org/contracts/traceabilty.v1.pdf",
"contract-version": "1.0.0",
"asJwt": false
"contract-version": "1.0.0"
}
""")

Expand Down

0 comments on commit c39730a

Please sign in to comment.