Skip to content

itsnuyen/c8-training-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Go C8 Example

Start Locally or Against a Running SaaS Env

run app agains saas env (set env to prod:

env=prod go run cmd/main.go  

Test Api and Start Processes

Api for Post request

http://localhost:9999/api/v1/credit/start

Sample Body

{
  "customerId": "test",
  "orderTotal": 90,
  "productId": "3",
  "creditCard": {
    "cardNumber": "1234 5678",
    "cvc": "123",
    "expiryDate": "09/42"
  }
}

Example Post Request:

curl -X POST http://localhost:9999/api/v1/credit/start \
-H "Content-Type: application/json" \
-d '{
  "customerId": "test",
  "orderTotal": 90,
  "productId": "3",
  "creditCard": {
    "cardNumber": "1234 5678",
    "cvc": "123",
    "expiryDate": "09/42"
  }
}'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages