From b81683a4de886d6df1c361aa31d6f31e584ab700 Mon Sep 17 00:00:00 2001 From: Shivam Mishra Date: Mon, 1 Sep 2025 12:10:37 +0530 Subject: [PATCH] feat: add saml settings API --- app/javascript/dashboard/api/samlSettings.js | 26 ++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 app/javascript/dashboard/api/samlSettings.js diff --git a/app/javascript/dashboard/api/samlSettings.js b/app/javascript/dashboard/api/samlSettings.js new file mode 100644 index 000000000..7c0f5b266 --- /dev/null +++ b/app/javascript/dashboard/api/samlSettings.js @@ -0,0 +1,26 @@ +/* global axios */ +import ApiClient from './ApiClient'; + +class SamlSettingsAPI extends ApiClient { + constructor() { + super('saml_settings', { accountScoped: true }); + } + + get() { + return axios.get(this.url); + } + + create(data) { + return axios.post(this.url, { saml_settings: data }); + } + + update(data) { + return axios.put(this.url, { saml_settings: data }); + } + + delete() { + return axios.delete(this.url); + } +} + +export default new SamlSettingsAPI();