mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
refactor(api): 🏷️ Port more misc endpoints to use new schemas
Some checks failed
Mirror to Codeberg / Mirror (push) Failing after 0s
Some checks failed
Mirror to Codeberg / Mirror (push) Failing after 0s
This commit is contained in:
parent
e3e285571e
commit
247a8fbce3
16 changed files with 462 additions and 351 deletions
|
|
@ -49,13 +49,14 @@ describe("POST /api/v1/apps/", () => {
|
|||
const json = await response.json();
|
||||
|
||||
expect(json).toEqual({
|
||||
id: expect.any(String),
|
||||
name: "Test Application",
|
||||
website: "https://example.com",
|
||||
client_id: expect.any(String),
|
||||
client_secret: expect.any(String),
|
||||
client_secret_expires_at: "0",
|
||||
redirect_uri: "https://example.com",
|
||||
vapid_link: null,
|
||||
redirect_uris: ["https://example.com"],
|
||||
scopes: ["read", "write"],
|
||||
});
|
||||
|
||||
clientId = json.client_id;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue