modif for apidoc

This commit is contained in:
2026-03-21 11:08:00 +01:00
parent 9fc05a8b8c
commit e54a4ad16d
10 changed files with 17 additions and 17 deletions

View File

@@ -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}:**

View File

@@ -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") {

View File

@@ -539,7 +539,7 @@ router.get(
* HTTP/1.1 404 Not Found
* <html>...</html>
* @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",

View File

@@ -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 <a href='https://smatchit.io/smatchit/schema/persons.json' target='_blank'>https://dnstribe/tribe/schema/persons.json</a>
* @apiBody {object} schema:persons <a href='https://site.smatchit.io/smatchit/schema/persons.json' target='_blank'>https://dnstribe/tribe/schema/persons.json</a>
* @apiBody {string} [addprofils] must be alone no other Body field
* @apiBody {string} [removeprofils] must be alone
*/

View File

@@ -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",

View File

@@ -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",

View File

@@ -14,7 +14,7 @@ tplemail.html = `
<tr style="padding:20px 0 0 0; background-color:#fff;">
<td style="border-bottom:1px solid #0DC3FF;" >
<p style="padding:60px 0 10px 0;">
<img width="180px" src="https://smatchit.io/static/img/logo/logoBlackSimple.png" alt="smatchit" />
<img width="180px" src="https://site.smatchit.io/static/img/logo/logoBlackSimple.png" alt="smatchit" />
</p>
</td>
</tr>
@@ -38,7 +38,7 @@ tplemail.html = `
<tr bgcolor="#161616">
<td bgcolor="#161616" align="center" style="padding:20px;">
<p style="text-align:center;">
<img width="250px"src="https://smatchit.io/static/img/logo/logoSignature.png" alt="smatchit">
<img width="250px"src="https://site.smatchit.io/static/img/logo/logoSignature.png" alt="smatchit">
</p>
</td>
</tr>

View File

@@ -14,7 +14,7 @@ tplemail.html = `
<tr style="padding:20px 0 0 0; background-color:#fff;">
<td style="border-bottom:1px solid #0DC3FF;" >
<p style="padding:60px 0 10px 0;">
<img width="180px" src="https://smatchit.io/static/img/logo/logoBlackSimple.png" alt="smatchit" />
<img width="180px" src="https://site.smatchit.io/static/img/logo/logoBlackSimple.png" alt="smatchit" />
</p>
</td>
</tr>
@@ -38,7 +38,7 @@ tplemail.html = `
<tr bgcolor="#161616">
<td bgcolor="#161616" align="center" style="padding:20px;">
<p style="text-align:center;">
<img width="250px"src="https://smatchit.io/static/img/logo/logoSignature.png" alt="smatchit">
<img width="250px"src="https://site.smatchit.io/static/img/logo/logoSignature.png" alt="smatchit">
</p>
</td>
</tr>

View File

@@ -41,7 +41,7 @@ tplemail.html=`
<tr style="padding:20px 0 0 0; background-color:#fff;">
<td style="border-top:1px solid #0DC3FF;">
<p style="padding:60px 0 10px 0;">
<img width="180px" src="https://smatchit.io/static/img/logo/logoBlackSimple.png" srctmp="https://smatchit.io/trk/static/img/logo/logoBlackSimple.webp?alias={{alias}}&uuid={{uuid}}&srckey=registeremailcontact&version=1&consentcookie={{consentcookie}}" alt="smatchit" />
<img width="180px" src="https://site.smatchit.io/static/img/logo/logoBlackSimple.png" srctmp="https://site.smatchit.io/trk/static/img/logo/logoBlackSimple.webp?alias={{alias}}&uuid={{uuid}}&srckey=registeremailcontact&version=1&consentcookie={{consentcookie}}" alt="smatchit" />
</p>
</td>
</tr>
@@ -67,7 +67,7 @@ tplemail.html=`
<tr bgcolor="#161616">
<td bgcolor="#161616" align="center" style="padding:20px;">
<p style="text-align:center;">
<img width="250px" src="https://smatchit.io/static/img/logo/logoSignature.png" alt="smatchit">
<img width="250px" src="https://site.smatchit.io/static/img/logo/logoSignature.png" alt="smatchit">
</p>
</td>
</tr>
@@ -76,7 +76,7 @@ tplemail.html=`
<tr>
<td style="padding:20px 0 0 0;">
<p style="font-size:11px;font-family:Monserrat;">
Nos conditions d'utilisation et politique de protection des données <a href="https://smatchit.io/cgu_fr.html" target='_blank'> CGU</a>
Nos conditions d'utilisation et politique de protection des données <a href="https://site.smatchit.io/cgu_fr.html" target='_blank'> CGU</a>
</p>
</td>
</tr>

View File

@@ -41,7 +41,7 @@ tplemail.html=`
<tr style="padding:20px 0 0 0; background-color:#fff;">
<td style="border-bottom:1px solid #0DC3FF;" >
<p style="padding:60px 0 10px 0;">
<img width="180px" src="https://smatchit.io/static/img/logo/logoBlackSimple.png" srctmp="https://smatchit.io/trk/static/img/logo/logoBlackSimple.webp?alias={{alias}}&uuid={{uuid}}&srckey=registeremailcontact&version=1&consentcookie={{consentcookie}}" alt="smatchit" />
<img width="180px" src="https://site.smatchit.io/static/img/logo/logoBlackSimple.png" srctmp="https://site.smatchit.io/trk/static/img/logo/logoBlackSimple.webp?alias={{alias}}&uuid={{uuid}}&srckey=registeremailcontact&version=1&consentcookie={{consentcookie}}" alt="smatchit" />
</p>
</td>
</tr>
@@ -67,7 +67,7 @@ tplemail.html=`
<tr bgcolor="#161616">
<td bgcolor="#161616" align="center" style="padding:20px;">
<p style="text-align:center;">
<img width="250px"src="https://smatchit.io/static/img/logo/logoSignature.png" alt="smatchit">
<img width="250px"src="https://site.smatchit.io/static/img/logo/logoSignature.png" alt="smatchit">
</p>
</td>
</tr>
@@ -76,7 +76,7 @@ tplemail.html=`
<tr>
<td style="padding:20px 0 0 0;">
<p style="font-size:11px;font-family:Monserrat;">
Nos conditions d'utilisation et politique de protection des données <a href="https://smatchit.io/cgu_fr.html" target='_blank'> CGU</a>
Nos conditions d'utilisation et politique de protection des données <a href="https://site.smatchit.io/cgu_fr.html" target='_blank'> CGU</a>
</p>
</td>
</tr>