File tree 3 files changed +7
-3
lines changed
3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 14
14
15
15
test :
16
16
go test ./...
17
+
18
+ swagger :
19
+ echo " http://localhost:8088"
20
+ docker run -p 8088:8080 -v $$(pwd ) /proto/docs:/docs -e SWAGGER_JSON=/docs/petstore.gen.yaml swaggerapi/swagger-ui
Original file line number Diff line number Diff line change @@ -12,9 +12,9 @@ import (
12
12
//go:webrpc golang -server -pkg=proto -json=stdlib -types=false -out=./server.gen.go
13
13
//go:webrpc golang -client -pkg=client -json=stdlib -out=./client/petstore.gen.go
14
14
//go:webrpc typescript -client -out=./client/petstore.gen.ts
15
- //go:webrpc openapi -out=./petstore.gen.yaml
16
- //go:disabled json -out=./petstore.gen.json
17
- //go:disabled debug -out=./petstore.debug.gen.txt
15
+ //go:webrpc openapi -out=./docs/ petstore.gen.yaml
16
+ //go:disabled json -out=./client/ petstore.gen.json
17
+ //go:disabled debug -out=./client/ petstore.debug.gen.txt
18
18
type PetStore interface {
19
19
GetPet (ctx context.Context , ID int64 ) (pet * Pet , err error )
20
20
ListPets (ctx context.Context ) (pets []* Pet , err error )
File renamed without changes.
You can’t perform that action at this time.
0 commit comments