Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-22 09:20:29 +01:00
DEV: Add helper for wizard api
Dieser Commit ist enthalten in:
Ursprung
2c52459f29
Commit
1254fcfb4e
1 geänderte Dateien mit 32 neuen und 0 gelöschten Zeilen
|
@ -652,6 +652,37 @@ const getCreatedWizard = {
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
const getNewApi = {
|
||||||
|
name: "new_api",
|
||||||
|
title: "new API",
|
||||||
|
authorization: {
|
||||||
|
auth_type: "basic",
|
||||||
|
auth_url: null,
|
||||||
|
token_url: null,
|
||||||
|
client_id: null,
|
||||||
|
client_secret: null,
|
||||||
|
authorized: null,
|
||||||
|
auth_params: [],
|
||||||
|
access_token: null,
|
||||||
|
refresh_token: null,
|
||||||
|
token_expires_at: null,
|
||||||
|
token_refresh_at: null,
|
||||||
|
code: null,
|
||||||
|
username: "some_username",
|
||||||
|
password: "some_password",
|
||||||
|
},
|
||||||
|
endpoints: [
|
||||||
|
{
|
||||||
|
id: "8371de",
|
||||||
|
name: "endpoint_name",
|
||||||
|
method: "POST",
|
||||||
|
url: "https://test.api.com",
|
||||||
|
content_type: "application/json",
|
||||||
|
success_codes: [200, 100],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
log: [],
|
||||||
|
};
|
||||||
export {
|
export {
|
||||||
getWizard,
|
getWizard,
|
||||||
getUnsubscribedAdminWizards,
|
getUnsubscribedAdminWizards,
|
||||||
|
@ -662,4 +693,5 @@ export {
|
||||||
getStandardAdminWizard,
|
getStandardAdminWizard,
|
||||||
getAdminTestingWizard,
|
getAdminTestingWizard,
|
||||||
getCreatedWizard,
|
getCreatedWizard,
|
||||||
|
getNewApi,
|
||||||
};
|
};
|
||||||
|
|
Laden …
In neuem Issue referenzieren