A java service that should not be monitored and handles credit card manufacture and delivery.
- Java 21
- Docker
Swagger endpoint is available at:
# when deployed with k8s
http://SOMEWHERE/third-party-service/swagger-ui/index.html
Third party service has support for one problem pattern - factory_crisis
. When this problem pattern is enabled, no new credit cards will be created by manufacturer as long as the problem pattern is ON. Problem pattern can be enabled using the api provided with the feature flag service. More information on using the feature flag service is available in the feature flag service readme.
name | type | data type | description | source |
---|---|---|---|---|
creditCardOrderId |
required | string | Credit card order ID | Body JSON |
name |
required | string | Name of card holder | Body JSON |
cardLevel |
required | string | Type of card: silver, gold or platinum | Body JSON |
http code | content-type | response |
---|---|---|
200 |
application/json |
{"statusCode": 200, "message": "Credit card is being manufactured"} |
{
"creditCardOrderId": "b0404285-41ca-4748-a8d9-8a104a0a9d08",
"name": "John Doe",
"cardLevel": "silver"
}
curl -X 'POST' \
'http://localhost/third-party-service/v1/manufacturer' \
-H 'accept: */*' \
-H 'Content-Type: application/json' \
-d '{
"creditCardOrderId": "b0404285-41ca-4748-a8d9-8a104a0a9d08",
"name": "John Doe",
"cardLevel": "silver"
}'