🎉 Add management RPC API (#7700)
Some checks failed
_STAGING / build-bundle (push) Has been cancelled
_STAGING / build-docker (push) Has been cancelled
_DEVELOP / build-bundle (push) Has been cancelled
_DEVELOP / build-docker (push) Has been cancelled
Commit Message Check / Check Commit Message (push) Has been cancelled

* 🎉 Add management RPC API

And refactor internal http auth flow

* 📎 Adjust final url namings

* 📚 Update changelog
This commit is contained in:
Andrey Antukh
2025-11-10 17:10:59 +01:00
committed by GitHub
parent 1b50c13c4d
commit 28cf67e7ff
29 changed files with 782 additions and 321 deletions

View File

@@ -9,7 +9,7 @@ export class BasePage {
);
}
const url = typeof path === "string" ? `**/api/rpc/command/${path}` : path;
const url = typeof path === "string" ? `**/api/main/methods/${path}` : path;
const interceptConfig = {
status: 200,
contentType: "application/transit+json",

View File

@@ -1,7 +1,7 @@
import { test, expect } from "@playwright/test";
test("Has title", async ({ page }) => {
await page.route("**/api/rpc/command/get-profile", (route) => {
await page.route("**/api/main/methods/get-profile", (route) => {
route.fulfill({
status: 200,
contentType: "application/transit+json",

View File

@@ -243,7 +243,7 @@
(defn- persist-events
[events]
(if (seq events)
(let [uri (u/join cf/public-uri "api/rpc/command/push-audit-events")
(let [uri (u/join cf/public-uri "api/main/methods/push-audit-events")
params {:uri uri
:method :post
:credentials "include"

View File

@@ -115,7 +115,7 @@
request
{:method method
:uri (u/join cf/public-uri "api/rpc/command/" nid)
:uri (u/join cf/public-uri "api/main/methods/" nid)
:credentials "include"
:headers {"accept" "application/transit+json,text/event-stream,*/*"
"x-external-session-id" (cf/external-session-id)
@@ -207,7 +207,7 @@
(defmethod cmd! ::multipart-upload
[id params]
(->> (http/send! {:method :post
:uri (u/join cf/public-uri "api/rpc/command/" (name id))
:uri (u/join cf/public-uri "api/main/methods/" (name id))
:credentials "include"
:headers {"x-external-session-id" (cf/external-session-id)
"x-event-origin" (::ev/origin (meta params))}

View File

@@ -43,7 +43,7 @@
(defn- request-data-for-thumbnail
[file-id revn]
(let [path "api/rpc/command/get-file-data-for-thumbnail"
(let [path "api/main/methods/get-file-data-for-thumbnail"
params {:file-id file-id
:revn revn
:strip-frames-with-thumbnails true}