48 lines
1.7 KiB
HTTP
48 lines
1.7 KiB
HTTP
@HelloShop.OrderingService_HostAddress = https://localhost:8105
|
|
|
|
POST {{HelloShop.OrderingService_HostAddress}}/api/orders
|
|
Content-Type: application/json
|
|
x-request-id: 8ddc1737-6a31-4b4f-bccd-63d0966348a1
|
|
Authorization : Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1laWQiOiIxIiwidW5pcXVlX25hbWUiOiJhZG1pbiIsInJvbGVpZCI6IjEiLCJuYmYiOjE3MjA1NzY3NDYsImV4cCI6MTc0MjYwODc0NiwiaWF0IjoxNzIwNTc2NzQ2fQ.ju_D3zeGLKqJYVckbb8Y3yNkp40nOqRAJrdOsISs4d4
|
|
|
|
{
|
|
"country": "USA",
|
|
"state": "CA",
|
|
"city": "San Francisco",
|
|
"street": "123 Market St",
|
|
"zipCode": "941032",
|
|
"cardAlias": "Jack",
|
|
"cardNumber": "4111111111111111",
|
|
"cardHolderName": "John Doe",
|
|
"cardSecurityNumber": "123456",
|
|
"cardExpiration": "2025-12-31T23:59:59Z",
|
|
"items": [
|
|
{
|
|
"productId": 100,
|
|
"productName": "Smartphone",
|
|
"quantity": 1,
|
|
"unitPrice": 699.99,
|
|
"pictureUrl": "https://example.com/images/phone-123.jpg"
|
|
},
|
|
{
|
|
"productId": 101,
|
|
"productName": "Tablet",
|
|
"quantity": 2,
|
|
"unitPrice": 499.99,
|
|
"pictureUrl": "https://example.com/images/tablet-456.jpg"
|
|
}
|
|
]
|
|
}
|
|
|
|
###
|
|
|
|
GET {{HelloShop.OrderingService_HostAddress}}/api/orders
|
|
Content-Type: application/json
|
|
Authorization : Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1laWQiOiIxIiwidW5pcXVlX25hbWUiOiJhZG1pbiIsInJvbGVpZCI6IjEiLCJuYmYiOjE3MjA1NzY3NDYsImV4cCI6MTc0MjYwODc0NiwiaWF0IjoxNzIwNTc2NzQ2fQ.ju_D3zeGLKqJYVckbb8Y3yNkp40nOqRAJrdOsISs4d4
|
|
|
|
###
|
|
|
|
GET {{HelloShop.OrderingService_HostAddress}}/api/orders/1
|
|
Content-Type: application/json
|
|
Authorization : Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1laWQiOiIxIiwidW5pcXVlX25hbWUiOiJhZG1pbiIsInJvbGVpZCI6IjEiLCJuYmYiOjE3MjA1NzY3NDYsImV4cCI6MTc0MjYwODc0NiwiaWF0IjoxNzIwNTc2NzQ2fQ.ju_D3zeGLKqJYVckbb8Y3yNkp40nOqRAJrdOsISs4d4
|