Skip to content

Commit 2caac8c

Browse files
committed
Refactor API endpoints in public.proto to standardize scrub list routes, updating paths for ListScrubLists, AddScrubListEntries, UpdateScrubListEntry, and RemoveScrubListEntries RPCs.
1 parent 2bfed5a commit 2caac8c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tcnapi/exile/gate/v2/public.proto

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -207,29 +207,29 @@ service GateService {
207207
*/
208208
// List all available scrub lists
209209
rpc ListScrubLists(ListScrubListsRequest) returns (ListScrubListsResponse) {
210-
option (google.api.http) = {get: "/tcnapi/exile/gate/v2/list_scrub_lists"};
210+
option (google.api.http) = {get: "/tcnapi/exile/gate/v2/scrublists"};
211211
}
212212

213213
// Add entries to a scrub list
214214
rpc AddScrubListEntries(AddScrubListEntriesRequest) returns (AddScrubListEntriesResponse) {
215215
option (google.api.http) = {
216-
post: "/tcnapi/exile/gate/v2/add_scrub_list_entries"
216+
post: "/tcnapi/exile/gate/v2/scrublists/{scrublist_id}/add_entries"
217217
body: "*"
218218
};
219219
}
220220

221221
// Update an existing scrub list entry
222222
rpc UpdateScrubListEntry(UpdateScrubListEntryRequest) returns (UpdateScrubListEntryResponse) {
223223
option (google.api.http) = {
224-
post: "/tcnapi/exile/gate/v2/update_scrub_list_entry"
224+
post: "/tcnapi/exile/gate/v2/scrublists/{scrublist_id}/update_entry"
225225
body: "*"
226226
};
227227
}
228228

229229
// Remove entries from a scrub list
230230
rpc RemoveScrubListEntries(RemoveScrubListEntriesRequest) returns (RemoveScrubListEntriesResponse) {
231231
option (google.api.http) = {
232-
post: "/tcnapi/exile/gate/v2/remove_scrub_list_entries"
232+
post: "/tcnapi/exile/gate/v2/scrublists/{scrublist_id}/remove_entries"
233233
body: "*"
234234
};
235235
}

0 commit comments

Comments
 (0)