Skip to content

Commit

Permalink
Add HEAD, OPTIONS, and TRACE examples to a_bit_of_everything.proto
Browse files Browse the repository at this point in the history
Implement examples in server
Regenerate files
  • Loading branch information
mnito committed May 29, 2022
1 parent c0c6ed4 commit e575e62
Show file tree
Hide file tree
Showing 8 changed files with 2,978 additions and 239 deletions.
672 changes: 643 additions & 29 deletions examples/internal/clients/abe/api/swagger.yaml

Large diffs are not rendered by default.

704 changes: 643 additions & 61 deletions examples/internal/clients/abe/api_a_bit_of_everything_service.go

Large diffs are not rendered by default.

338 changes: 189 additions & 149 deletions examples/internal/proto/examplepb/a_bit_of_everything.pb.go

Large diffs are not rendered by default.

357 changes: 357 additions & 0 deletions examples/internal/proto/examplepb/a_bit_of_everything.pb.gw.go

Large diffs are not rendered by default.

27 changes: 27 additions & 0 deletions examples/internal/proto/examplepb/a_bit_of_everything.proto
Original file line number Diff line number Diff line change
Expand Up @@ -728,6 +728,33 @@ service ABitOfEverythingService {
get: "/v1/example/checkStatus"
};
}

rpc Exists(ABitOfEverything) returns (google.protobuf.Empty) {
option (google.api.http) = {
custom: {
kind: "HEAD",
path: "/v1/example/a_bit_of_everything/{uuid}"
}
};
}

rpc CustomOptionsRequest(ABitOfEverything) returns (google.protobuf.Empty) {
option (google.api.http) = {
custom: {
kind: "OPTIONS",
path: "/v1/example/a_bit_of_everything/{uuid}"
}
};
}

rpc TraceRequest(ABitOfEverything) returns (ABitOfEverything) {
option (google.api.http) = {
custom: {
kind: "TRACE",
path: "/v1/example/a_bit_of_everything/{uuid}"
}
};
}
}

// camelCase and lowercase service names are valid but not recommended (use TitleCase instead)
Expand Down
Loading

0 comments on commit e575e62

Please sign in to comment.