Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added /api prefix to routes #20

Merged
merged 1 commit into from
Feb 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading