Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,9 @@ const docTemplate = `{
},
"product_name": {
"type": "string"
},
"quantity": {
"type": "string"
}
}
},
Expand Down
3 changes: 3 additions & 0 deletions docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,9 @@
},
"product_name": {
"type": "string"
},
"quantity": {
"type": "string"
}
}
},
Expand Down
2 changes: 2 additions & 0 deletions docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,8 @@ definitions:
type: object
product_name:
type: string
quantity:
type: string
type: object
product.getProductByIdResponse:
properties:
Expand Down
1 change: 1 addition & 0 deletions internal/database/product/product.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ type Product struct {
ID_ string `json:"_id" bson:"_id"`
Brands string `json:"brands" bson:"brands"`
ProductName string `json:"product_name" bson:"product_name"`
Quantity string `json:"quantity" bson:"quantity"`
Nutriments struct {
SaturatedFat float64 `json:"saturated-fat" bson:"saturated-fat,truncate"`
SodiumValue float64 `json:"sodium_value" bson:"sodium_value,truncate"`
Expand Down