-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
1,262 additions
and
226 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
.PHONY: | ||
|
||
### for running all commands we need bash command lien ### | ||
|
||
## choco install make | ||
# ============================================================================== | ||
# Run Services | ||
|
@@ -35,9 +37,9 @@ proto_identities_get_user_by_id_service: | |
@echo Generating identity_service proto | ||
protoc --go_out=./internal/services/product_service/product/grpc_client/protos --go-grpc_opt=require_unimplemented_servers=false --go-grpc_out=./internal/services/product_service/product/grpc_client/protos ./internal/services/product_service/product/grpc_client/protos/*.proto | ||
|
||
## go install github.com/swaggo/swag/cmd/swag@latest | ||
# ============================================================================== | ||
## go install github.com/swaggo/swag/cmd/[email protected] | ||
# Swagger products Service #https://github.com/swaggo/swag/issues/817 | ||
# ============================================================================== | ||
|
||
swagger_products: | ||
@echo Starting swagger generating | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -145,7 +145,12 @@ go test -v ./... | |
> ### Documentation Apis | ||
|
||
Each microservice has a `Swagger OpenAPI`. Browse to `/swagger` for a list of endpoints. | ||
Each microservice has a `Swagger OpenAPI`. Browse to `/swagger/index.html` for a list of endpoints. | ||
|
||
> Note: For generate Swagger OpenAPI, we need to install `swag cli` with this command below: | ||
```bash | ||
go install github.com/swaggo/swag/cmd/[email protected] | ||
``` | ||
|
||
As part of API testing, I created the [shop.rest](./shop.rest) file which can be run with the [REST Client](https://github.com/Huachao/vscode-restclient) `VSCode plugin`. | ||
|
||
|
Oops, something went wrong.