Skip to content

oda-components/oda-api-ri-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

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

Tooling

Clone and Build

$ git clone [email protected]:oda-components/oda-api-ri-springboot.git
$ cd oda-api-ri-springboot/tmf676
$ mvn clean compile
$ mvn spring-boot:run

Run

Redis

$ redis-stack-server

TMF676

API Document

http://localhost:8080/swagger-ui/index.html

Create a payment

$ 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
    }
}
!

Retrieve a Payment

$ curl -s http://localhost:8080/payment/v4/payment/8522d7a5-66ca-4d3f-abbb-0bccbaf5df8c |json_pp

Retrieve all Payments

$ curl -s http://localhost:8080/payment/v4/payment |json_pp

About

ODA API RI for Spring Boot

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages