You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A java service that lets the user order/remove a credit card for their account. All the manufacturing and delivery will be handled by an unmonitored third party service. The card information is stored in the database.
Technologies used
Java 21
Docker
MSSql
Endpoints or logic
Swagger
Swagger endpoint is available at:
# when deployed with k8s
http://SOMEWHERE/credit-card-order-service/swagger-ui/index.html
Api v1
POST/v1/orders(Creates a new credit card order)
Parameters
name
type
data type
description
accountId
required
int
Account for which we create a credit card
email
required
string
Email to which notifications can be sent
name
required
string
Name to be printed on the card
shippingAddress
required
string
Address where the finished card will be shipped
cardLevel
required
string
Type of card. Can be one of: silver, gold, platinum