Skip to content

Commit

Permalink
update README.md file
Browse files Browse the repository at this point in the history
  • Loading branch information
ProdByGodfather committed Jul 21, 2024
1 parent b9a958b commit 670e415
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ if __name__ == "__main__":
proto_file = MessageProto.generate_proto("messageservice", "message_service")
# generate_pb2(`proto file`)
MessageProto.generate_pb2(proto_file)
# generate_wsagger(`proto file`, `version name`)
swagger_file = MessageProto.generate_swagger(proto_file, "2.0.0")
# run swagger with Flask
MessageProto.run_swagger()
# generate_wsagger(`proto file`)
swagger_file = MessageProto.generate_swagger(proto_file)
# run_swagger(`version`, `port`)
MessageProto.run_swagger(version="2.0.1", port=5937)
```

This script will generate a .proto file in the 'protos/' directory and pb2 files in the 'outputs/' directory.
Expand Down

0 comments on commit 670e415

Please sign in to comment.