modif for apidoc
This commit is contained in:
@@ -6,7 +6,7 @@ To update this doc accessible in [https://wal-ants.ndda.fr/apidoc](https://wal-a
|
|||||||
|
|
||||||
`$ tribe=adminapi yarn apidoc`
|
`$ 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`
|
`$ tribe=smatchit yarn apidoc`
|
||||||
|
|
||||||
@@ -81,7 +81,7 @@ See Pagans models that contain authentification process
|
|||||||
|
|
||||||
**api Return in 3 data structure:**
|
**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}:**
|
B - a json single answer **{status, ref,msg,data}:**
|
||||||
|
|
||||||
|
|||||||
@@ -270,7 +270,7 @@ router.get("/contact", checkHeaders, isAuthenticated, (req, res) => {
|
|||||||
*/
|
*/
|
||||||
router.get("/checkemail/:email/:digit6", checkHeaders, async (req, res) => {
|
router.get("/checkemail/:email/:digit6", checkHeaders, async (req, res) => {
|
||||||
const { email, digit6 } = req.params;
|
const { email, digit6 } = req.params;
|
||||||
const tmpDir = path.join(__dirname, "../../../../tmp");
|
const tmpDir = path.join(__dirname, "../../tmp");
|
||||||
const tmpFile = path.join(tmpDir, email);
|
const tmpFile = path.join(tmpDir, email);
|
||||||
|
|
||||||
if (digit6 === "0") {
|
if (digit6 === "0") {
|
||||||
|
|||||||
@@ -539,7 +539,7 @@ router.get(
|
|||||||
* HTTP/1.1 404 Not Found
|
* HTTP/1.1 404 Not Found
|
||||||
* <html>...</html>
|
* <html>...</html>
|
||||||
* @apiSuccess {json} data contains schema requested
|
* @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:
|
* HTTP/1.1 200 Success-response:
|
||||||
* {{
|
* {{
|
||||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||||
|
|||||||
@@ -327,7 +327,7 @@ router.get("/person/:alias", checkHeaders, isAuthenticated, (req, res) => {
|
|||||||
* @apiHeader {string} xalias current user
|
* @apiHeader {string} xalias current user
|
||||||
* @apiHeader {string} xprofils profil list
|
* @apiHeader {string} xprofils profil list
|
||||||
* @apiParam {string} tribe an existing tribe
|
* @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} [addprofils] must be alone no other Body field
|
||||||
* @apiBody {string} [removeprofils] must be alone
|
* @apiBody {string} [removeprofils] must be alone
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"$id": "https://smatchit.io/schema/pagan",
|
"$id": "https://site.smatchit.io/schema/pagan",
|
||||||
"$comment": "To create account bin apxtri",
|
"$comment": "To create account bin apxtri",
|
||||||
"title": "Pagans identity",
|
"title": "Pagans identity",
|
||||||
"description": "A numeric id in the nationchains world",
|
"description": "A numeric id in the nationchains world",
|
||||||
|
|||||||
@@ -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",
|
"$comment": "To describe screens as tree to navigate inside",
|
||||||
"title": "Screens description",
|
"title": "Screens description",
|
||||||
"description": "Each propertie value is a mustache template string where a data must be provide to display screen with value",
|
"description": "Each propertie value is a mustache template string where a data must be provide to display screen with value",
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ tplemail.html = `
|
|||||||
<tr style="padding:20px 0 0 0; background-color:#fff;">
|
<tr style="padding:20px 0 0 0; background-color:#fff;">
|
||||||
<td style="border-bottom:1px solid #0DC3FF;" >
|
<td style="border-bottom:1px solid #0DC3FF;" >
|
||||||
<p style="padding:60px 0 10px 0;">
|
<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>
|
</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -38,7 +38,7 @@ tplemail.html = `
|
|||||||
<tr bgcolor="#161616">
|
<tr bgcolor="#161616">
|
||||||
<td bgcolor="#161616" align="center" style="padding:20px;">
|
<td bgcolor="#161616" align="center" style="padding:20px;">
|
||||||
<p style="text-align:center;">
|
<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>
|
</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ tplemail.html = `
|
|||||||
<tr style="padding:20px 0 0 0; background-color:#fff;">
|
<tr style="padding:20px 0 0 0; background-color:#fff;">
|
||||||
<td style="border-bottom:1px solid #0DC3FF;" >
|
<td style="border-bottom:1px solid #0DC3FF;" >
|
||||||
<p style="padding:60px 0 10px 0;">
|
<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>
|
</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -38,7 +38,7 @@ tplemail.html = `
|
|||||||
<tr bgcolor="#161616">
|
<tr bgcolor="#161616">
|
||||||
<td bgcolor="#161616" align="center" style="padding:20px;">
|
<td bgcolor="#161616" align="center" style="padding:20px;">
|
||||||
<p style="text-align:center;">
|
<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>
|
</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ tplemail.html=`
|
|||||||
<tr style="padding:20px 0 0 0; background-color:#fff;">
|
<tr style="padding:20px 0 0 0; background-color:#fff;">
|
||||||
<td style="border-top:1px solid #0DC3FF;">
|
<td style="border-top:1px solid #0DC3FF;">
|
||||||
<p style="padding:60px 0 10px 0;">
|
<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>
|
</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -67,7 +67,7 @@ tplemail.html=`
|
|||||||
<tr bgcolor="#161616">
|
<tr bgcolor="#161616">
|
||||||
<td bgcolor="#161616" align="center" style="padding:20px;">
|
<td bgcolor="#161616" align="center" style="padding:20px;">
|
||||||
<p style="text-align:center;">
|
<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>
|
</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -76,7 +76,7 @@ tplemail.html=`
|
|||||||
<tr>
|
<tr>
|
||||||
<td style="padding:20px 0 0 0;">
|
<td style="padding:20px 0 0 0;">
|
||||||
<p style="font-size:11px;font-family:Monserrat;">
|
<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>
|
</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ tplemail.html=`
|
|||||||
<tr style="padding:20px 0 0 0; background-color:#fff;">
|
<tr style="padding:20px 0 0 0; background-color:#fff;">
|
||||||
<td style="border-bottom:1px solid #0DC3FF;" >
|
<td style="border-bottom:1px solid #0DC3FF;" >
|
||||||
<p style="padding:60px 0 10px 0;">
|
<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>
|
</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -67,7 +67,7 @@ tplemail.html=`
|
|||||||
<tr bgcolor="#161616">
|
<tr bgcolor="#161616">
|
||||||
<td bgcolor="#161616" align="center" style="padding:20px;">
|
<td bgcolor="#161616" align="center" style="padding:20px;">
|
||||||
<p style="text-align:center;">
|
<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>
|
</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -76,7 +76,7 @@ tplemail.html=`
|
|||||||
<tr>
|
<tr>
|
||||||
<td style="padding:20px 0 0 0;">
|
<td style="padding:20px 0 0 0;">
|
||||||
<p style="font-size:11px;font-family:Monserrat;">
|
<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>
|
</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
Reference in New Issue
Block a user