From d11f3362c6ea6745fba1947ac2e107bb0454bc91 Mon Sep 17 00:00:00 2001 From: billou Date: Thu, 1 Jun 2023 20:47:30 +0200 Subject: [PATCH] Update wazo-sysconfd endpoints --- .../uc-doc/api_sdk/rest_api/sysconfd/asterisk_voicemail.md | 4 ++-- .../uc-doc/api_sdk/rest_api/sysconfd/common_configuration.md | 4 ++-- .../uc-doc/api_sdk/rest_api/sysconfd/dhcpd_configuration.md | 2 +- content/uc-doc/api_sdk/rest_api/sysconfd/dns.md | 4 ++-- content/uc-doc/api_sdk/rest_api/sysconfd/ha.md | 4 ++-- content/uc-doc/api_sdk/rest_api/sysconfd/index.md | 2 +- content/uc-doc/api_sdk/rest_api/sysconfd/services.md | 2 +- content/uc-doc/api_sdk/rest_api/sysconfd/status_check.md | 4 ++-- .../rest_api/sysconfd/{xivo_services.md => wazo_services.md} | 2 +- 9 files changed, 14 insertions(+), 14 deletions(-) rename content/uc-doc/api_sdk/rest_api/sysconfd/{xivo_services.md => wazo_services.md} (77%) diff --git a/content/uc-doc/api_sdk/rest_api/sysconfd/asterisk_voicemail.md b/content/uc-doc/api_sdk/rest_api/sysconfd/asterisk_voicemail.md index c1bac88b..a1071199 100644 --- a/content/uc-doc/api_sdk/rest_api/sysconfd/asterisk_voicemail.md +++ b/content/uc-doc/api_sdk/rest_api/sysconfd/asterisk_voicemail.md @@ -5,7 +5,7 @@ title: Asterisk Voicemail ## Query ```markdown -GET /delete_voicemail +DELETE /delete ``` ## Parameters @@ -22,7 +22,7 @@ GET /delete_voicemail ## Example requests ``` -GET /delete_voicemail HTTP/1.1 +DELETE /voicemail HTTP/1.1 Host: wazoserver Accept: application/json ``` diff --git a/content/uc-doc/api_sdk/rest_api/sysconfd/common_configuration.md b/content/uc-doc/api_sdk/rest_api/sysconfd/common_configuration.md index 17f68d94..e642f74f 100644 --- a/content/uc-doc/api_sdk/rest_api/sysconfd/common_configuration.md +++ b/content/uc-doc/api_sdk/rest_api/sysconfd/common_configuration.md @@ -7,7 +7,7 @@ title: Common configuration ### Query ```markdown -GET /commonconf_apply +GET /commonconf ``` ## Generate configuration @@ -15,7 +15,7 @@ GET /commonconf_apply ### Query ```markdown -POST /commonconf_generate +PUT /commonconf ``` ## Change ownership of the Asterisk autoprov configuration files diff --git a/content/uc-doc/api_sdk/rest_api/sysconfd/dhcpd_configuration.md b/content/uc-doc/api_sdk/rest_api/sysconfd/dhcpd_configuration.md index b192ebf0..89311d57 100644 --- a/content/uc-doc/api_sdk/rest_api/sysconfd/dhcpd_configuration.md +++ b/content/uc-doc/api_sdk/rest_api/sysconfd/dhcpd_configuration.md @@ -5,5 +5,5 @@ title: DHCPD configuration ## Query ```markdown -GET /dhcpd_update +PUT /dhcpd ``` diff --git a/content/uc-doc/api_sdk/rest_api/sysconfd/dns.md b/content/uc-doc/api_sdk/rest_api/sysconfd/dns.md index 3cdb89a1..ae24b767 100644 --- a/content/uc-doc/api_sdk/rest_api/sysconfd/dns.md +++ b/content/uc-doc/api_sdk/rest_api/sysconfd/dns.md @@ -7,7 +7,7 @@ title: DNS configuration ### Query ```markdown -POST /hosts +PUT /hosts ``` ## Resolv.conf configuration @@ -15,5 +15,5 @@ POST /hosts ### Query ```markdown -POST /resolv_conf +PUT /resolv_conf ``` diff --git a/content/uc-doc/api_sdk/rest_api/sysconfd/ha.md b/content/uc-doc/api_sdk/rest_api/sysconfd/ha.md index c3adcc82..9462fdf0 100644 --- a/content/uc-doc/api_sdk/rest_api/sysconfd/ha.md +++ b/content/uc-doc/api_sdk/rest_api/sysconfd/ha.md @@ -7,7 +7,7 @@ title: HA configuration ### Query ``` - GET /get_ha_config + GET /ha ``` ## Update HA configuration @@ -15,5 +15,5 @@ title: HA configuration ### Query ``` -POST /update_ha_config +PUT /ha ``` diff --git a/content/uc-doc/api_sdk/rest_api/sysconfd/index.md b/content/uc-doc/api_sdk/rest_api/sysconfd/index.md index 6c33a78e..4e167fe6 100644 --- a/content/uc-doc/api_sdk/rest_api/sysconfd/index.md +++ b/content/uc-doc/api_sdk/rest_api/sysconfd/index.md @@ -15,6 +15,6 @@ resources will be added over time. - [ha](/uc-doc/api_sdk/rest_api/sysconfd/ha) - [dns](/uc-doc/api_sdk/rest_api/sysconfd/dns) - [services](/uc-doc/api_sdk/rest_api/sysconfd/services) -- [xivo services](/uc-doc/api_sdk/rest_api/sysconfd/xivo_services) +- [wazo services](/uc-doc/api_sdk/rest_api/sysconfd/wazo_services) - [handlers](/uc-doc/api_sdk/rest_api/sysconfd/handlers) - [status check](/uc-doc/api_sdk/rest_api/sysconfd/status_check) diff --git a/content/uc-doc/api_sdk/rest_api/sysconfd/services.md b/content/uc-doc/api_sdk/rest_api/sysconfd/services.md index 765dfa4a..19031ba0 100644 --- a/content/uc-doc/api_sdk/rest_api/sysconfd/services.md +++ b/content/uc-doc/api_sdk/rest_api/sysconfd/services.md @@ -5,5 +5,5 @@ title: Services daemon ## Query ``` -POST /services +PUT /services ``` diff --git a/content/uc-doc/api_sdk/rest_api/sysconfd/status_check.md b/content/uc-doc/api_sdk/rest_api/sysconfd/status_check.md index 70e603c5..02bac91c 100644 --- a/content/uc-doc/api_sdk/rest_api/sysconfd/status_check.md +++ b/content/uc-doc/api_sdk/rest_api/sysconfd/status_check.md @@ -5,13 +5,13 @@ title: Status check ## Query ``` -GET /status_check +GET /status ``` ## Example request ``` -GET /status_check HTTP/1.1 +GET /status HTTP/1.1 Host: wazoserver Content-Type: application/json ``` diff --git a/content/uc-doc/api_sdk/rest_api/sysconfd/xivo_services.md b/content/uc-doc/api_sdk/rest_api/sysconfd/wazo_services.md similarity index 77% rename from content/uc-doc/api_sdk/rest_api/sysconfd/xivo_services.md rename to content/uc-doc/api_sdk/rest_api/sysconfd/wazo_services.md index deaaf8bb..06dbefc3 100644 --- a/content/uc-doc/api_sdk/rest_api/sysconfd/xivo_services.md +++ b/content/uc-doc/api_sdk/rest_api/sysconfd/wazo_services.md @@ -5,5 +5,5 @@ title: Wazo Services ## Query ``` -POST /xivoctl +PUT /wazoctl ```