This server was generated by the OpenAPI Generator project, using the OpenAPI-Spec as a reference implementation of OpenAPI-enabled server TMF676 in Java using the SpringBoot framework.
The specification is available to download using the following url: http://localhost:8080/v3/api-docs/
You can view the api documentation in swagger-ui by pointing to http://localhost:8080/swagger-ui.html
- Install Open JDK
- Install OpenAPI Generator
- Install Redis Stack
- Install Maven
- Clone the project
$ git clone [email protected]:oda-components/oda-api-ri-springboot.git
$ cd oda-api-ri-springboot/tmf676
$ mvn clean compile
$ mvn spring-boot:run
$ redis-stack-server
http://localhost:8080/swagger-ui/index.html
$ curl -X POST http://localhost:8080/payment/v4/payment \
-H 'Content-Type: application/json; charset=utf-8' \
--data @- <<!
{
"description":"Test Payment",
"account": {
"id": "111111"
},
"paymentMethod": {
"relatedParty": {
"id":"1111",
"@referredType":"href"
}
},
"totalAmount": {
"unit": "AED",
"value": 10.20
}
}
!
$ curl -s http://localhost:8080/payment/v4/payment/8522d7a5-66ca-4d3f-abbb-0bccbaf5df8c |json_pp
$ curl -s http://localhost:8080/payment/v4/payment |json_pp