Skip to content

7d4b9/utrade

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

utrade

Run

docker-compose up

Add Invoice

$ curl -X POST http://localhost:8080/api/v1/workspace/w/invoices -H 'Content-Type: application/json' -d '{"name":"invoice_1"}'
{"name":"invoice_1", "ID":"9745c3dc-a523-4d02-b1d2-9fbf455cff98"}

# use same ID again
curl -X POST http://localhost:8080/api/v1/workspace/w/invoices -H 'Content-Type: application/json' -d '{"name":"invoice_1","ID":"9745c3dc-a523-4d02-b1d2-9fbf455cff98"}'
{"Message":"Conflict","Code":""}

Get Invoice

$ curl http://localhost:8080/api/v1/workspace/w/invoice/9745c3dc-a523-4d02-b1d2-9fbf455cff98
{"name":"invoice_1", "ID":"9745c3dc-a523-4d02-b1d2-9fbf455cff98"}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published