Skip to content

Commit

Permalink
remove unnecessary id field
Browse files Browse the repository at this point in the history
  • Loading branch information
tkeburia committed Dec 11, 2023
1 parent d4898a8 commit f23c7f0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,15 @@ get all products in the catalog
curl http://${PRODUCT_SERVICE_INGRESS_IP}/api/product
```

create a new product
create a new product

```shell
curl --location --request POST 'http://${PRODUCT_SERVICE_INGRESS_IP}/api/product' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "iPhone 14",
"description": "New iPhone 14",
"price": 1100,
"skuCode": "iphone_14"
}'
```
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
@AllArgsConstructor
@NoArgsConstructor
public class OrderLineItemsDto {
private Long id;
private String skuCode;
private BigDecimal price;
private Integer quantity;
Expand Down

0 comments on commit f23c7f0

Please sign in to comment.