Skip to content

Commit

Permalink
Merge pull request #352 from spacemeshos/v2alpha1-openapi-options
Browse files Browse the repository at this point in the history
v2alpha1: Extend openapi options
  • Loading branch information
kacpersaw authored Jun 19, 2024
2 parents 1ad89bf + 849eef6 commit c14c452
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 19 deletions.
49 changes: 30 additions & 19 deletions release/go/spacemesh/v2alpha1/v2alpha1.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions release/openapi/swagger/src/api.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,23 @@
"produces": [
"application/json"
],
"schemes": [
"https"
],
"swagger": "2.0",
"info": {
"title": "Spacemesh API",
"contact": {
"name": "Spacemesh",
"url": "https://spacemesh.io/"
},
"license": {
"name": "MIT License",
"url": "https://github.com/spacemeshos/go-spacemesh/blob/develop/LICENSE"
},
"version": "v2alpha1"
},
"host": "https://testnet-api.spacemesh.network",
"paths": {
"/spacemesh.v2alpha1.AccountService/List": {
"post": {
Expand Down
8 changes: 8 additions & 0 deletions spacemesh/v2alpha1/v2alpha1.proto
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,13 @@ option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = {
name: "Spacemesh";
url: "https://spacemesh.io/";
};
license: {
name: "MIT License";
url: "https://github.com/spacemeshos/go-spacemesh/blob/develop/LICENSE";
};
};
schemes: HTTPS;
consumes: "application/json";
produces: "application/json";
host: "https://testnet-api.spacemesh.network";
};

0 comments on commit c14c452

Please sign in to comment.