Skip to content

Commit

Permalink
fix: add back in token code that is needed
Browse files Browse the repository at this point in the history
  • Loading branch information
hkang1 committed Nov 19, 2024
1 parent 1c98a18 commit 750299f
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions proto/src/determined/api/v1/api.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2842,4 +2842,39 @@ service Determined {
tags: "Alpha"
};
}

// Create and get a user's access token
rpc PostAccessToken(PostAccessTokenRequest)
returns (PostAccessTokenResponse) {
option (google.api.http) = {
post: "/api/v1/tokens",
body: "*"
};
option (grpc.gateway.protoc_gen_swagger.options.openapiv2_operation) = {
tags: "Tokens"
};
}

// Get a list of all access token records.
rpc GetAccessTokens(GetAccessTokensRequest)
returns (GetAccessTokensResponse) {
option (google.api.http) = {
get: "/api/v1/tokens"
};
option (grpc.gateway.protoc_gen_swagger.options.openapiv2_operation) = {
tags: "Tokens"
};
}

// Patch an access token's mutable fields.
rpc PatchAccessToken(PatchAccessTokenRequest)
returns (PatchAccessTokenResponse) {
option (google.api.http) = {
patch: "/api/v1/tokens/{token_id}"
body: "*"
};
option (grpc.gateway.protoc_gen_swagger.options.openapiv2_operation) = {
tags: "Tokens"
};
}
}

0 comments on commit 750299f

Please sign in to comment.