Skip to content

Commit

Permalink
Added /api prefix to routes
Browse files Browse the repository at this point in the history
  • Loading branch information
wscalf committed Feb 13, 2024
1 parent 88fa556 commit c434180
Show file tree
Hide file tree
Showing 9 changed files with 65 additions and 64 deletions.
2 changes: 1 addition & 1 deletion api/health/v1/health.pb.go

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

2 changes: 1 addition & 1 deletion api/health/v1/health_grpc.pb.go

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

2 changes: 1 addition & 1 deletion api/health/v1/health_http.pb.go

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

49 changes: 25 additions & 24 deletions api/rebac/v1/relationships.pb.go

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

6 changes: 3 additions & 3 deletions api/rebac/v1/relationships.proto
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,18 @@ option java_package = "api.rebac.v1";
service Relationships {
rpc CreateRelationships (CreateRelationshipsRequest) returns (CreateRelationshipsResponse) {
option (google.api.http) = {
post: "/relationships"
post: "/api/relationships"
body: "*"
};
};
rpc ReadRelationships (ReadRelationshipsRequest) returns (ReadRelationshipsResponse) {
option (google.api.http) = {
get: "/relationships"
get: "/api/relationships"
};
};
rpc DeleteRelationships (DeleteRelationshipsRequest) returns (DeleteRelationshipsResponse) {
option (google.api.http) = {
delete: "/relationships"
delete: "/api/relationships"
};
};
}
Expand Down
2 changes: 1 addition & 1 deletion api/rebac/v1/relationships_grpc.pb.go

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

14 changes: 7 additions & 7 deletions api/rebac/v1/relationships_http.pb.go

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

2 changes: 1 addition & 1 deletion internal/conf/conf.pb.go

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

50 changes: 25 additions & 25 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,31 +6,7 @@ info:
title: ""
version: 0.0.1
paths:
/livez:
get:
tags:
- Health
operationId: Health_GetLivez
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/api.health.v1.GetLivezReply'
/readyz:
get:
tags:
- Health
operationId: Health_GetReadyz
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/api.health.v1.GetReadyzReply'
/relationships:
/api/relationships:
get:
tags:
- Relationships
Expand Down Expand Up @@ -120,6 +96,30 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/api.rebac.v1.DeleteRelationshipsResponse'
/livez:
get:
tags:
- Health
operationId: Health_GetLivez
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/api.health.v1.GetLivezReply'
/readyz:
get:
tags:
- Health
operationId: Health_GetReadyz
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/api.health.v1.GetReadyzReply'
components:
schemas:
api.health.v1.GetLivezReply:
Expand Down

0 comments on commit c434180

Please sign in to comment.