From e54a4ad16d6c7606d72503a5acd4fe4d1913ba84 Mon Sep 17 00:00:00 2001 From: philc Date: Sat, 21 Mar 2026 11:08:00 +0100 Subject: [PATCH] modif for apidoc --- apxtri/middlewares/header.md | 4 ++-- apxtri/routes/notifications.js | 2 +- apxtri/routes/odmdb.js | 2 +- apxtri/routes/pagans.js | 2 +- schema/pagans.json | 2 +- schema/screens.json | 2 +- template/checkemail_en.js | 4 ++-- template/checkemail_fr.js | 4 ++-- template/createidentity_en.js | 6 +++--- template/createidentity_fr.js | 6 +++--- 10 files changed, 17 insertions(+), 17 deletions(-) diff --git a/apxtri/middlewares/header.md b/apxtri/middlewares/header.md index 7e42091..08aed7d 100644 --- a/apxtri/middlewares/header.md +++ b/apxtri/middlewares/header.md @@ -6,7 +6,7 @@ To update this doc accessible in [https://wal-ants.ndda.fr/apidoc](https://wal-a  `$ tribe=adminapi yarn apidoc`  -For api tribe's doc  accessible in [https://admin.smatchit.io/apidoc](https://smatchit.io/cdn/apidoc) [:](https://smatchit.io/cdn/apidoc:)  +For api tribe's doc  accessible in [https://admin.smatchit.io/apidoc](https://site.smatchit.io/cdn/apidoc) [:](https://site.smatchit.io/cdn/apidoc:)  `$ tribe=smatchit yarn apidoc` @@ -81,7 +81,7 @@ See Pagans models that contain authentification process **api Return in 3 data structure:** -A - data file from a classical get  [https://wall-ants.ndda.fr/Checkjson.js](https://smatchit.io/Checkjson.js) +A - data file from a classical get  [https://wall-ants.ndda.fr/Checkjson.js](https://site.smatchit.io/Checkjson.js) B -  a json single answer **{status, ref,msg,data}:** diff --git a/apxtri/routes/notifications.js b/apxtri/routes/notifications.js index 7d2bdb9..9a0263d 100644 --- a/apxtri/routes/notifications.js +++ b/apxtri/routes/notifications.js @@ -270,7 +270,7 @@ router.get("/contact", checkHeaders, isAuthenticated, (req, res) => { */ router.get("/checkemail/:email/:digit6", checkHeaders, async (req, res) => { const { email, digit6 } = req.params; - const tmpDir = path.join(__dirname, "../../../../tmp"); + const tmpDir = path.join(__dirname, "../../tmp"); const tmpFile = path.join(tmpDir, email); if (digit6 === "0") { diff --git a/apxtri/routes/odmdb.js b/apxtri/routes/odmdb.js index fb2cd15..5f1102a 100644 --- a/apxtri/routes/odmdb.js +++ b/apxtri/routes/odmdb.js @@ -539,7 +539,7 @@ router.get( * HTTP/1.1 404 Not Found * ... * @apiSuccess {json} data contains schema requested - * @apiSuccessExample {json} Success-Response for : https://smatchit.io/smatchit/schema/persons.json + * @apiSuccessExample {json} Success-Response for : https://site.smatchit.io/smatchit/schema/persons.json * HTTP/1.1 200 Success-response: * {{ "$schema": "https://json-schema.org/draft/2020-12/schema", diff --git a/apxtri/routes/pagans.js b/apxtri/routes/pagans.js index 1ea0fc0..2bf8610 100755 --- a/apxtri/routes/pagans.js +++ b/apxtri/routes/pagans.js @@ -327,7 +327,7 @@ router.get("/person/:alias", checkHeaders, isAuthenticated, (req, res) => { * @apiHeader {string} xalias current user * @apiHeader {string} xprofils profil list * @apiParam {string} tribe an existing tribe - * @apiBody {object} schema:persons https://dnstribe/tribe/schema/persons.json + * @apiBody {object} schema:persons https://dnstribe/tribe/schema/persons.json * @apiBody {string} [addprofils] must be alone no other Body field * @apiBody {string} [removeprofils] must be alone */ diff --git a/schema/pagans.json b/schema/pagans.json index 520d2d4..0c2c427 100644 --- a/schema/pagans.json +++ b/schema/pagans.json @@ -1,5 +1,5 @@ { - "$id": "https://smatchit.io/schema/pagan", + "$id": "https://site.smatchit.io/schema/pagan", "$comment": "To create account bin apxtri", "title": "Pagans identity", "description": "A numeric id in the nationchains world", diff --git a/schema/screens.json b/schema/screens.json index 27fe61f..10efe45 100644 --- a/schema/screens.json +++ b/schema/screens.json @@ -1,5 +1,5 @@ { - "$id": "https://smatchit.io/schema/screens", + "$id": "https://site.smatchit.io/schema/screens", "$comment": "To describe screens as tree to navigate inside", "title": "Screens description", "description": "Each propertie value is a mustache template string where a data must be provide to display screen with value", diff --git a/template/checkemail_en.js b/template/checkemail_en.js index ac9f250..ba81863 100644 --- a/template/checkemail_en.js +++ b/template/checkemail_en.js @@ -14,7 +14,7 @@ tplemail.html = `

- smatchit + smatchit

@@ -38,7 +38,7 @@ tplemail.html = `

- smatchit + smatchit

diff --git a/template/checkemail_fr.js b/template/checkemail_fr.js index 4bf13ce..8bed992 100644 --- a/template/checkemail_fr.js +++ b/template/checkemail_fr.js @@ -14,7 +14,7 @@ tplemail.html = `

- smatchit + smatchit

@@ -38,7 +38,7 @@ tplemail.html = `

- smatchit + smatchit

diff --git a/template/createidentity_en.js b/template/createidentity_en.js index 813ff75..f929492 100644 --- a/template/createidentity_en.js +++ b/template/createidentity_en.js @@ -41,7 +41,7 @@ tplemail.html=`

- smatchit + smatchit

@@ -67,7 +67,7 @@ tplemail.html=`

- smatchit + smatchit

@@ -76,7 +76,7 @@ tplemail.html=`

- Nos conditions d'utilisation et politique de protection des données CGU + Nos conditions d'utilisation et politique de protection des données CGU

diff --git a/template/createidentity_fr.js b/template/createidentity_fr.js index d6bc43b..26cc778 100644 --- a/template/createidentity_fr.js +++ b/template/createidentity_fr.js @@ -41,7 +41,7 @@ tplemail.html=`

- smatchit + smatchit

@@ -67,7 +67,7 @@ tplemail.html=`

- smatchit + smatchit

@@ -76,7 +76,7 @@ tplemail.html=`

- Nos conditions d'utilisation et politique de protection des données CGU + Nos conditions d'utilisation et politique de protection des données CGU