Skip to content

Commit

Permalink
refactor(optimus): configured base path and port (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
scortier authored Sep 8, 2021
1 parent 8a30f47 commit a0dd139
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions odpf/optimus/runtime_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = {
external_docs: {
description: "Optimus server";
}
schemes: HTTP;
schemes: HTTP;
host: "127.0.0.1:9100";
base_path: "/api";
};

// WARNING: This is still in active development and can have breaking changes
Expand Down Expand Up @@ -159,18 +161,21 @@ service RuntimeService {
};
}

// Datastore CRUD
// Database CRUD
// CreateResource registers a new resource of a namespace which belongs to a project
rpc CreateResource(CreateResourceRequest) returns (CreateResourceResponse) {
option (google.api.http) = {
post: "/v1/project/{project_name}/namespace/{namespace}/datastore/{datastore_name}/resource"
body: "*"
};
}
// ReadResource reads a provided resource spec of a namespace
rpc ReadResource(ReadResourceRequest) returns (ReadResourceResponse) {
option (google.api.http) = {
get: "/v1/project/{project_name}/namespace/{namespace}/datastore/{datastore_name}/resource/{resource_name}"
};
}
// UpdateResource updates a resource specification of a datastore in project
rpc UpdateResource(UpdateResourceRequest) returns (UpdateResourceResponse) {
option (google.api.http) = {
put: "/v1/project/{project_name}/namespace/{namespace}/datastore/{datastore_name}/resource"
Expand Down Expand Up @@ -200,7 +205,7 @@ service RuntimeService {
};
}
// TODO(kush.sharma): disabled ATM
//rpc DeleteResource(DeleteResourceRequest) returns (DeleteResourceResponse) {}
// rpc DeleteResource(DeleteResourceRequest) returns (DeleteResourceResponse) {}

}

Expand Down

0 comments on commit a0dd139

Please sign in to comment.