Docs - update and fix
This commit is contained in:
parent
a32c8a1925
commit
86d3e5756c
@ -1023,7 +1023,7 @@ fallback to ‘en’ (english))</p></li>
|
||||
<dt class="sig sig-object http" id="post--api-auth-password-reset-request">
|
||||
<span class="sig-name descname"><span class="pre">POST</span> </span><span class="sig-name descname"><span class="pre">/api/auth/password/reset-request</span></span><a class="headerlink" href="#post--api-auth-password-reset-request" title="Permalink to this definition">#</a></dt>
|
||||
<dd><p>Handle password reset request.</p>
|
||||
<p>If email sending is disabled, this endpoint is not available</p>
|
||||
<p>If email sending is disabled, this endpoint is not available.</p>
|
||||
<p><strong>Example request</strong>:</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="nf">POST</span> <span class="nn">/api/auth/password/reset-request</span> <span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">application/json</span>
|
||||
|
@ -236,12 +236,12 @@
|
||||
<span class="sig-name descname"><span class="pre">POST</span> </span><span class="sig-name descname"><span class="pre">/api/auth/register</span></span><a class="headerlink" href="#post--api-auth-register" title="Lien permanent vers cette définition">#</a></dt>
|
||||
<dd><p>Enregistrer un utilisateur et envoyer un courriel de confirmation.</p>
|
||||
<p>Le compte nouvellement créé est inactif. L’utilisateur doit confirmer son adresse électronique pour l’activer.</p>
|
||||
<p><strong>Exemple de requête</strong>:</p>
|
||||
<p><strong>Exemple de requête</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="nf">POST</span> <span class="nn">/api/auth/register</span> <span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">application/json</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
<p><strong>Exemple de réponse</strong>:</p>
|
||||
<p><strong>Exemple de réponses</strong> :</p>
|
||||
<ul class="simple">
|
||||
<li><p>success:</p></li>
|
||||
</ul>
|
||||
@ -300,12 +300,12 @@
|
||||
<dt class="sig sig-object http" id="post--api-auth-account-confirm">
|
||||
<span class="sig-name descname"><span class="pre">POST</span> </span><span class="sig-name descname"><span class="pre">/api/auth/account/confirm</span></span><a class="headerlink" href="#post--api-auth-account-confirm" title="Lien permanent vers cette définition">#</a></dt>
|
||||
<dd><p>Activer le compte utilisateur après l’inscription.</p>
|
||||
<p><strong>Exemple de requête</strong>:</p>
|
||||
<p><strong>Exemple de requête</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="nf">POST</span> <span class="nn">/api/auth/account/confirm</span> <span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">application/json</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
<p><strong>Exemple de réponse</strong>:</p>
|
||||
<p><strong>Exemple de réponse</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span> <span class="m">200</span> <span class="ne">OK</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">application/json</span>
|
||||
|
||||
@ -337,12 +337,12 @@
|
||||
<span class="sig-name descname"><span class="pre">POST</span> </span><span class="sig-name descname"><span class="pre">/api/auth/account/resend-confirmation</span></span><a class="headerlink" href="#post--api-auth-account-resend-confirmation" title="Lien permanent vers cette définition">#</a></dt>
|
||||
<dd><p>Renvoyer le courriel avec les instructions pour confirmer le compte.</p>
|
||||
<p>Si l’envoi des courriels est désactivé, ce point d’accès n’est pas disponible.</p>
|
||||
<p><strong>Exemple de requête</strong>:</p>
|
||||
<p><strong>Exemple de requête</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="nf">POST</span> <span class="nn">/api/auth/account/resend-confirmation</span> <span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">application/json</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
<p><strong>Exemple de réponse</strong>:</p>
|
||||
<p><strong>Exemple de réponse</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span> <span class="m">200</span> <span class="ne">OK</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">application/json</span>
|
||||
|
||||
@ -372,14 +372,14 @@
|
||||
<dl class="http post">
|
||||
<dt class="sig sig-object http" id="post--api-auth-login">
|
||||
<span class="sig-name descname"><span class="pre">POST</span> </span><span class="sig-name descname"><span class="pre">/api/auth/login</span></span><a class="headerlink" href="#post--api-auth-login" title="Lien permanent vers cette définition">#</a></dt>
|
||||
<dd><p>Connexion de l’utilisateur</p>
|
||||
<dd><p>Connexion de l’utilisateur.</p>
|
||||
<p>Seuls les utilisateurs disposant d’un compte actif peuvent se connecter.</p>
|
||||
<p><strong>Exemple de requête</strong>:</p>
|
||||
<p><strong>Exemple de requête</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="nf">POST</span> <span class="nn">/api/auth/login</span> <span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">application/json</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
<p><strong>Exemple de réponse</strong>:</p>
|
||||
<p><strong>Exemple de réponses</strong> :</p>
|
||||
<ul class="simple">
|
||||
<li><p>connexion avec succès :</p></li>
|
||||
</ul>
|
||||
@ -427,13 +427,13 @@
|
||||
<dt class="sig sig-object http" id="get--api-auth-profile">
|
||||
<span class="sig-name descname"><span class="pre">GET</span> </span><span class="sig-name descname"><span class="pre">/api/auth/profile</span></span><a class="headerlink" href="#get--api-auth-profile" title="Lien permanent vers cette définition">#</a></dt>
|
||||
<dd><p>Obtenir des informations sur l’utilisateur authentifié (profil, compte, préférences).</p>
|
||||
<p><strong>Scope</strong>: <code class="docutils literal notranslate"><span class="pre">profile:read</span></code></p>
|
||||
<p><strong>Exemple de requête</strong>:</p>
|
||||
<p><strong>Scope</strong> : <code class="docutils literal notranslate"><span class="pre">profile:read</span></code></p>
|
||||
<p><strong>Exemple de requête</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="nf">GET</span> <span class="nn">/api/auth/profile</span> <span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">application/json</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
<p><strong>Exemple de réponse</strong>:</p>
|
||||
<p><strong>Exemple de réponse</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span> <span class="m">200</span> <span class="ne">OK</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">application/json</span>
|
||||
|
||||
@ -546,13 +546,13 @@
|
||||
<dt class="sig sig-object http" id="post--api-auth-profile-edit">
|
||||
<span class="sig-name descname"><span class="pre">POST</span> </span><span class="sig-name descname"><span class="pre">/api/auth/profile/edit</span></span><a class="headerlink" href="#post--api-auth-profile-edit" title="Lien permanent vers cette définition">#</a></dt>
|
||||
<dd><p>Modifier le profil de l’utilisateur authentifié.</p>
|
||||
<p><strong>Scope</strong>: <code class="docutils literal notranslate"><span class="pre">profile:write</span></code></p>
|
||||
<p><strong>Exemple de requête</strong>:</p>
|
||||
<p><strong>Scope</strong> : <code class="docutils literal notranslate"><span class="pre">profile:write</span></code></p>
|
||||
<p><strong>Exemple de requête</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="nf">POST</span> <span class="nn">/api/auth/profile/edit</span> <span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">application/json</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
<p><strong>Exemple de réponse</strong>:</p>
|
||||
<p><strong>Exemple de réponse</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span> <span class="m">200</span> <span class="ne">OK</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">application/json</span>
|
||||
|
||||
@ -646,10 +646,10 @@
|
||||
<dt class="field-odd">Objet JSON de requête<span class="colon">:</span></dt>
|
||||
<dd class="field-odd"><ul class="simple">
|
||||
<li><p><strong>first_name</strong> (<em>string</em>) – prénom de l’utilisateur</p></li>
|
||||
<li><p><strong>last_name</strong> (<em>string</em>) – nom de l’utilisateur</p></li>
|
||||
<li><p><strong>last_name</strong> (<em>string</em>) – nom de famille de l’utilisateur</p></li>
|
||||
<li><p><strong>location</strong> (<em>string</em>) – localisation de l’utilisateur</p></li>
|
||||
<li><p><strong>bio</strong> (<em>string</em>) – biographie de l’utilisateur</p></li>
|
||||
<li><p><strong>birth_date</strong> (<em>string</em>) – date de naissance de l’utilisateur (format: <code class="docutils literal notranslate"><span class="pre">%Y-%m-%d</span></code>)</p></li>
|
||||
<li><p><strong>birth_date</strong> (<em>string</em>) – date de naissance de l’utilisateur (format : <code class="docutils literal notranslate"><span class="pre">%Y-%m-%d</span></code>)</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
<dt class="field-even">En-têtes de requête<span class="colon">:</span></dt>
|
||||
@ -690,13 +690,13 @@
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<p><strong>Scope</strong>: <code class="docutils literal notranslate"><span class="pre">profile:write</span></code></p>
|
||||
<p><strong>Exemple de requête</strong>:</p>
|
||||
<p><strong>Scope</strong> : <code class="docutils literal notranslate"><span class="pre">profile:write</span></code></p>
|
||||
<p><strong>Exemple de requête</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="nf">POST</span> <span class="nn">/api/auth/profile/edit/preferences</span> <span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">application/json</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
<p><strong>Exemple de réponse</strong>:</p>
|
||||
<p><strong>Exemple de réponse</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span> <span class="m">200</span> <span class="ne">OK</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">application/json</span>
|
||||
|
||||
@ -828,13 +828,13 @@
|
||||
<dt class="sig sig-object http" id="post--api-auth-profile-edit-sports">
|
||||
<span class="sig-name descname"><span class="pre">POST</span> </span><span class="sig-name descname"><span class="pre">/api/auth/profile/edit/sports</span></span><a class="headerlink" href="#post--api-auth-profile-edit-sports" title="Lien permanent vers cette définition">#</a></dt>
|
||||
<dd><p>Modifier les préférences des sports de l’utilisateur authentifié.</p>
|
||||
<p><strong>Scope</strong>: <code class="docutils literal notranslate"><span class="pre">profile:write</span></code></p>
|
||||
<p><strong>Exemple de requête</strong>:</p>
|
||||
<p><strong>Scope</strong> : <code class="docutils literal notranslate"><span class="pre">profile:write</span></code></p>
|
||||
<p><strong>Exemple de requête</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="nf">POST</span> <span class="nn">/api/auth/profile/edit/sports</span> <span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">application/json</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
<p><strong>Exemple de réponse</strong>:</p>
|
||||
<p><strong>Exemple de réponse</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span> <span class="m">200</span> <span class="ne">OK</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">application/json</span>
|
||||
|
||||
@ -889,13 +889,13 @@
|
||||
<dt class="sig sig-object http" id="delete--api-auth-profile-reset-sports-(sport_id)">
|
||||
<span class="sig-name descname"><span class="pre">DELETE</span> </span><span class="sig-name descname"><span class="pre">/api/auth/profile/reset/sports/</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="pre">sport_id</span></em><span class="sig-paren">)</span><a class="headerlink" href="#delete--api-auth-profile-reset-sports-(sport_id)" title="Lien permanent vers cette définition">#</a></dt>
|
||||
<dd><p>Réinitialiser les préférences de l’utilisateur authentifié pour un sport donné.</p>
|
||||
<p><strong>Scope</strong>: <code class="docutils literal notranslate"><span class="pre">profile:write</span></code></p>
|
||||
<p><strong>Exemple de requête</strong>:</p>
|
||||
<p><strong>Scope</strong> : <code class="docutils literal notranslate"><span class="pre">profile:write</span></code></p>
|
||||
<p><strong>Exemple de requête</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="nf">DELETE</span> <span class="nn">/api/auth/profile/reset/sports/1</span> <span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">application/json</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
<p><strong>Exemple de réponse</strong>:</p>
|
||||
<p><strong>Exemple de réponse</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span> <span class="m">204</span> <span class="ne">OK</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">application/json</span>
|
||||
</pre></div>
|
||||
@ -931,13 +931,13 @@
|
||||
<dt class="sig sig-object http" id="post--api-auth-picture">
|
||||
<span class="sig-name descname"><span class="pre">POST</span> </span><span class="sig-name descname"><span class="pre">/api/auth/picture</span></span><a class="headerlink" href="#post--api-auth-picture" title="Lien permanent vers cette définition">#</a></dt>
|
||||
<dd><p>Mise à jour de l’image de l’utilisateur authentifié.</p>
|
||||
<p><strong>Scope</strong>: <code class="docutils literal notranslate"><span class="pre">profile:write</span></code></p>
|
||||
<p><strong>Exemple de requête</strong>:</p>
|
||||
<p><strong>Scope</strong> : <code class="docutils literal notranslate"><span class="pre">profile:write</span></code></p>
|
||||
<p><strong>Exemple de requête</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="nf">POST</span> <span class="nn">/api/auth/picture</span> <span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">multipart/form-data</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
<p><strong>Exemple de réponse</strong>:</p>
|
||||
<p><strong>Exemple de réponse</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span> <span class="m">200</span> <span class="ne">OK</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">application/json</span>
|
||||
|
||||
@ -985,13 +985,13 @@
|
||||
<dt class="sig sig-object http" id="delete--api-auth-picture">
|
||||
<span class="sig-name descname"><span class="pre">DELETE</span> </span><span class="sig-name descname"><span class="pre">/api/auth/picture</span></span><a class="headerlink" href="#delete--api-auth-picture" title="Lien permanent vers cette définition">#</a></dt>
|
||||
<dd><p>Supprimer l’image de l’utilisateur authentifié.</p>
|
||||
<p><strong>Scope</strong>: <code class="docutils literal notranslate"><span class="pre">profile:write</span></code></p>
|
||||
<p><strong>Exemple de requête</strong>:</p>
|
||||
<p><strong>Scope</strong> : <code class="docutils literal notranslate"><span class="pre">profile:write</span></code></p>
|
||||
<p><strong>Exemple de requête</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="nf">DELETE</span> <span class="nn">/api/auth/picture</span> <span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">application/json</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
<p><strong>Exemple de réponse</strong>:</p>
|
||||
<p><strong>Exemple de réponse</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span> <span class="m">204</span> <span class="ne">NO CONTENT</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">application/json</span>
|
||||
</pre></div>
|
||||
@ -1021,13 +1021,13 @@
|
||||
<dt class="sig sig-object http" id="post--api-auth-password-reset-request">
|
||||
<span class="sig-name descname"><span class="pre">POST</span> </span><span class="sig-name descname"><span class="pre">/api/auth/password/reset-request</span></span><a class="headerlink" href="#post--api-auth-password-reset-request" title="Lien permanent vers cette définition">#</a></dt>
|
||||
<dd><p>Traiter les demandes de réinitialisation de mot de passe.</p>
|
||||
<p>Si l’envoi de courriels est désactivé, ce point d’accès n’est pas disponible.</p>
|
||||
<p><strong>Exemple de requête</strong>:</p>
|
||||
<p>Si l’envoi des courriels est désactivé, ce point d’accès n’est pas disponible.</p>
|
||||
<p><strong>Exemple de requête</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="nf">POST</span> <span class="nn">/api/auth/password/reset-request</span> <span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">application/json</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
<p><strong>Exemple de réponse</strong>:</p>
|
||||
<p><strong>Exemple de réponse</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span> <span class="m">200</span> <span class="ne">OK</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">application/json</span>
|
||||
|
||||
@ -1060,20 +1060,20 @@
|
||||
<p>Les courriels suivants sont envoyés si l’envoi est activé :</p>
|
||||
<ul class="simple">
|
||||
<li><p>Modification de mot de passe</p></li>
|
||||
<li><p>Changement d’adresse électronique</p>
|
||||
<li><p>Changement d’adresse électronique :</p>
|
||||
<ul>
|
||||
<li><p>un à l’adresse actuelle pour informer l’utilisateur</p></li>
|
||||
<li><p>un autre à la nouvelle adresse pour la confirmer.</p></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<p><strong>Scope</strong>: <code class="docutils literal notranslate"><span class="pre">profile:write</span></code></p>
|
||||
<p><strong>Exemple de requête</strong>:</p>
|
||||
<p><strong>Scope</strong> : <code class="docutils literal notranslate"><span class="pre">profile:write</span></code></p>
|
||||
<p><strong>Exemple de requête</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="nf">PATCH</span> <span class="nn">/api/auth/profile/edit/account</span> <span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">application/json</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
<p><strong>Exemple de réponse</strong>:</p>
|
||||
<p><strong>Exemple de réponse</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span> <span class="m">200</span> <span class="ne">OK</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">application/json</span>
|
||||
|
||||
@ -1205,12 +1205,12 @@
|
||||
<span class="sig-name descname"><span class="pre">POST</span> </span><span class="sig-name descname"><span class="pre">/api/auth/password/update</span></span><a class="headerlink" href="#post--api-auth-password-update" title="Lien permanent vers cette définition">#</a></dt>
|
||||
<dd><p>Mise à jour du mot de passe de l’utilisateur après une demande de réinitialisation du mot de passe.</p>
|
||||
<p>Uniquement si l’envoi est activé.</p>
|
||||
<p><strong>Exemple de requête</strong>:</p>
|
||||
<p><strong>Exemple de requête</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="nf">POST</span> <span class="nn">/api/auth/password/update</span> <span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">application/json</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
<p><strong>Exemple de réponse</strong>:</p>
|
||||
<p><strong>Exemple de réponse</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span> <span class="m">200</span> <span class="ne">OK</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">application/json</span>
|
||||
|
||||
@ -1242,12 +1242,12 @@
|
||||
<dt class="sig sig-object http" id="post--api-auth-email-update">
|
||||
<span class="sig-name descname"><span class="pre">POST</span> </span><span class="sig-name descname"><span class="pre">/api/auth/email/update</span></span><a class="headerlink" href="#post--api-auth-email-update" title="Lien permanent vers cette définition">#</a></dt>
|
||||
<dd><p>Mise à jour de l’adresse électronique de l’utilisateur après confirmation.</p>
|
||||
<p><strong>Exemple de requête</strong>:</p>
|
||||
<p><strong>Exemple de requête</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="nf">POST</span> <span class="nn">/api/auth/email/update</span> <span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">application/json</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
<p><strong>Exemple de réponse</strong>:</p>
|
||||
<p><strong>Exemple de réponse</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span> <span class="m">200</span> <span class="ne">OK</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">application/json</span>
|
||||
|
||||
@ -1277,12 +1277,12 @@
|
||||
<dt class="sig sig-object http" id="post--api-auth-logout">
|
||||
<span class="sig-name descname"><span class="pre">POST</span> </span><span class="sig-name descname"><span class="pre">/api/auth/logout</span></span><a class="headerlink" href="#post--api-auth-logout" title="Lien permanent vers cette définition">#</a></dt>
|
||||
<dd><p>Déconnexion de l’utilisateur. Si un jeton valide est fourni, il sera invalidé.</p>
|
||||
<p><strong>Exemple de requête</strong>:</p>
|
||||
<p><strong>Exemple de requête</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="nf">POST</span> <span class="nn">/api/auth/logout</span> <span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">application/json</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
<p><strong>Exemple de réponse</strong>:</p>
|
||||
<p><strong>Exemple de réponses</strong> :</p>
|
||||
<ul class="simple">
|
||||
<li><p>déconnexion avec succès :</p></li>
|
||||
</ul>
|
||||
@ -1332,12 +1332,12 @@
|
||||
<dt class="sig sig-object http" id="post--api-auth-account-privacy-policy">
|
||||
<span class="sig-name descname"><span class="pre">POST</span> </span><span class="sig-name descname"><span class="pre">/api/auth/account/privacy-policy</span></span><a class="headerlink" href="#post--api-auth-account-privacy-policy" title="Lien permanent vers cette définition">#</a></dt>
|
||||
<dd><p>L’utilisateur authentifié accepte la politique de confidentialité.</p>
|
||||
<p><strong>Exemple de requête</strong>:</p>
|
||||
<p><strong>Exemple de requête</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="nf">POST</span> <span class="nn">/auth/account/privacy-policy</span> <span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">application/json</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
<p><strong>Exemple de réponse</strong>:</p>
|
||||
<p><strong>Exemple de réponse</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span> <span class="m">200</span> <span class="ne">OK</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">application/json</span>
|
||||
|
||||
@ -1383,14 +1383,14 @@
|
||||
<li><p>état de l’export (<code class="docutils literal notranslate"><span class="pre">in_progress</span></code>, <code class="docutils literal notranslate"><span class="pre">successful</span></code> and <code class="docutils literal notranslate"><span class="pre">errored</span></code>)</p></li>
|
||||
<li><p>nom du fichier et sa taille (en octets) lorsque l’export est réussi</p></li>
|
||||
</ul>
|
||||
<p><strong>Exemple de requête</strong>:</p>
|
||||
<p><strong>Exemple de requête</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="nf">GET</span> <span class="nn">/auth/account/export</span> <span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">application/json</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
<p><strong>Exemple de réponse</strong>:</p>
|
||||
<p><strong>Exemple de réponse</strong> :</p>
|
||||
<ul class="simple">
|
||||
<li><p>si une requête existe</p></li>
|
||||
<li><p>si une requête existe :</p></li>
|
||||
</ul>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span> <span class="m">200</span> <span class="ne">OK</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">application/json</span>
|
||||
@ -1442,12 +1442,12 @@
|
||||
<dt class="sig sig-object http" id="post--api-auth-account-export-request">
|
||||
<span class="sig-name descname"><span class="pre">POST</span> </span><span class="sig-name descname"><span class="pre">/api/auth/account/export/request</span></span><a class="headerlink" href="#post--api-auth-account-export-request" title="Lien permanent vers cette définition">#</a></dt>
|
||||
<dd><p>Demande d’export de données pour un utilisateur authentifié.</p>
|
||||
<p><strong>Exemple de requête</strong>:</p>
|
||||
<p><strong>Exemple de requête</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="nf">POST</span> <span class="nn">/auth/account/export/request</span> <span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">application/json</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
<p><strong>Exemple de réponse</strong>:</p>
|
||||
<p><strong>Exemple de réponse</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span> <span class="m">200</span> <span class="ne">OK</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">application/json</span>
|
||||
|
||||
@ -1492,12 +1492,12 @@
|
||||
<dt class="sig sig-object http" id="get--api-auth-account-export-(string-file_name)">
|
||||
<span class="sig-name descname"><span class="pre">GET</span> </span><span class="sig-name descname"><span class="pre">/api/auth/account/export/</span></span><span class="sig-paren">(</span><em class="property"><span class="pre">string:</span> </em><em class="sig-param"><span class="pre">file_name</span></em><span class="sig-paren">)</span><a class="headerlink" href="#get--api-auth-account-export-(string-file_name)" title="Lien permanent vers cette définition">#</a></dt>
|
||||
<dd><p>Télécharger une archive d’export de données</p>
|
||||
<p><strong>Exemple de requête</strong>:</p>
|
||||
<p><strong>Exemple de requête</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="nf">GET</span> <span class="nn">/auth/account/export/download/archive_rgjsR3fHr5Yp.zip</span> <span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">application/json</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
<p><strong>Exemple de réponse</strong>:</p>
|
||||
<p><strong>Exemple de réponse</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span> <span class="m">200</span> <span class="ne">OK</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">application/x-gzip</span>
|
||||
</pre></div>
|
||||
|
@ -235,12 +235,12 @@
|
||||
<dt class="sig sig-object http" id="get--api-config">
|
||||
<span class="sig-name descname"><span class="pre">GET</span> </span><span class="sig-name descname"><span class="pre">/api/config</span></span><a class="headerlink" href="#get--api-config" title="Lien permanent vers cette définition">#</a></dt>
|
||||
<dd><p>Obtenir la configuration de l’application.</p>
|
||||
<p><strong>Exemple de requête</strong>:</p>
|
||||
<p><strong>Exemple de requête</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="nf">GET</span> <span class="nn">/api/config</span> <span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">application/json</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
<p><strong>Exemple de réponse</strong>:</p>
|
||||
<p><strong>Exemple de réponse</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span> <span class="m">200</span> <span class="ne">OK</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">application/json</span>
|
||||
|
||||
@ -278,14 +278,14 @@
|
||||
<dt class="sig sig-object http" id="patch--api-config">
|
||||
<span class="sig-name descname"><span class="pre">PATCH</span> </span><span class="sig-name descname"><span class="pre">/api/config</span></span><a class="headerlink" href="#patch--api-config" title="Lien permanent vers cette définition">#</a></dt>
|
||||
<dd><p>Mettre à jour de la configuration de l’application.</p>
|
||||
<p>L’utilisateur authentifié doit avoir des droits d’administration</p>
|
||||
<p><strong>Scope</strong>: <code class="docutils literal notranslate"><span class="pre">application:write</span></code></p>
|
||||
<p><strong>Exemple de requête</strong>:</p>
|
||||
<p>L’utilisateur authentifié doit avoir des droits d’administration.</p>
|
||||
<p><strong>Scope</strong> : <code class="docutils literal notranslate"><span class="pre">application:write</span></code></p>
|
||||
<p><strong>Exemple de requête</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="nf">GET</span> <span class="nn">/api/config</span> <span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">application/json</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
<p><strong>Exemple de réponse</strong>:</p>
|
||||
<p><strong>Exemple de réponse</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span> <span class="m">200</span> <span class="ne">OK</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">application/json</span>
|
||||
|
||||
@ -349,12 +349,12 @@
|
||||
<dt class="sig sig-object http" id="get--api-ping">
|
||||
<span class="sig-name descname"><span class="pre">GET</span> </span><span class="sig-name descname"><span class="pre">/api/ping</span></span><a class="headerlink" href="#get--api-ping" title="Lien permanent vers cette définition">#</a></dt>
|
||||
<dd><p>point d’accès de contrôle</p>
|
||||
<p><strong>Exemple de requête</strong>:</p>
|
||||
<p><strong>Exemple de requête</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="nf">GET</span> <span class="nn">/api/ping</span> <span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">application/json</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
<p><strong>Exemple de réponse</strong>:</p>
|
||||
<p><strong>Exemple de réponse</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span> <span class="m">200</span> <span class="ne">OK</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">application/json</span>
|
||||
|
||||
|
@ -232,7 +232,7 @@
|
||||
<section id="api-documentation">
|
||||
<h1>Documentation de l’API<a class="headerlink" href="#api-documentation" title="Lien permanent vers cette rubrique">#</a></h1>
|
||||
<div class="toctree-wrapper compound">
|
||||
<p class="caption" role="heading"><span class="caption-text">Points d'accès</span></p>
|
||||
<p class="caption" role="heading"><span class="caption-text">Points d'accès :</span></p>
|
||||
<ul>
|
||||
<li class="toctree-l1"><a class="reference internal" href="auth.html">Authentification et compte</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="configuration.html">Configuration</a></li>
|
||||
|
@ -236,7 +236,7 @@
|
||||
<span class="sig-name descname"><span class="pre">GET</span> </span><span class="sig-name descname"><span class="pre">/api/oauth/apps</span></span><a class="headerlink" href="#get--api-oauth-apps" title="Lien permanent vers cette définition">#</a></dt>
|
||||
<dd><p>Obtenir les clients OAuth2 pour l’utilisateur authentifié avec pagination (5 clients/page).</p>
|
||||
<p>Ce point d’accès n’est accessible que par le client web FitTrackee client.</p>
|
||||
<p><strong>Exemple de requête</strong>:</p>
|
||||
<p><strong>Exemple de requête</strong> :</p>
|
||||
<ul class="simple">
|
||||
<li><p>sans paramètres :</p></li>
|
||||
</ul>
|
||||
@ -251,7 +251,7 @@
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">application/json</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
<p><strong>Exemple de réponse</strong>:</p>
|
||||
<p><strong>Exemple de réponse</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span> <span class="m">200</span> <span class="ne">SUCCESS</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">application/json</span>
|
||||
|
||||
@ -313,12 +313,12 @@
|
||||
<span class="sig-name descname"><span class="pre">POST</span> </span><span class="sig-name descname"><span class="pre">/api/oauth/apps</span></span><a class="headerlink" href="#post--api-oauth-apps" title="Lien permanent vers cette définition">#</a></dt>
|
||||
<dd><p>Créer un client OAuth2 pour l’utilisateur authentifié.</p>
|
||||
<p>Ce point d’accès n’est accessible que par le client web FitTrackee client.</p>
|
||||
<p><strong>Exemple de requête</strong>:</p>
|
||||
<p><strong>Exemple de requête</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="nf">POST</span> <span class="nn">/api/oauth/apps</span> <span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">application/json</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
<p><strong>Exemple de réponse</strong>:</p>
|
||||
<p><strong>Exemple de réponse</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span> <span class="m">200</span> <span class="ne">SUCCESS</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">application/json</span>
|
||||
|
||||
@ -377,12 +377,12 @@
|
||||
<span class="sig-name descname"><span class="pre">GET</span> </span><span class="sig-name descname"><span class="pre">/api/oauth/apps/</span></span><span class="sig-paren">(</span><em class="property"><span class="pre">string:</span> </em><em class="sig-param"><span class="pre">client_client_id</span></em><span class="sig-paren">)</span><a class="headerlink" href="#get--api-oauth-apps-(string-client_client_id)" title="Lien permanent vers cette définition">#</a></dt>
|
||||
<dd><p>Obtenir un client OAuth2 avec le “client_id”.</p>
|
||||
<p>Ce point d’accès n’est accessible que par le client web FitTrackee client.</p>
|
||||
<p><strong>Exemple de requête</strong>:</p>
|
||||
<p><strong>Exemple de requête</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="nf">GET</span> <span class="nn">/api/oauth/apps/o22a27s2aBPUoxJbxV3UjDOx</span> <span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">application/json</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
<p><strong>Exemple de réponse</strong>:</p>
|
||||
<p><strong>Exemple de réponses</strong> :</p>
|
||||
<ul class="simple">
|
||||
<li><p>success:</p></li>
|
||||
</ul>
|
||||
@ -451,12 +451,12 @@
|
||||
<span class="sig-name descname"><span class="pre">GET</span> </span><span class="sig-name descname"><span class="pre">/api/oauth/apps/</span></span><span class="sig-paren">(</span><em class="property"><span class="pre">int:</span> </em><em class="sig-param"><span class="pre">client_id</span></em><span class="sig-paren">)</span><span class="sig-name descname"><span class="pre">/by_id</span></span><a class="headerlink" href="#get--api-oauth-apps-(int-client_id)-by_id" title="Lien permanent vers cette définition">#</a></dt>
|
||||
<dd><p>Obtenir un client OAuth2 avec l’identifiant (entier).</p>
|
||||
<p>Ce point d’accès n’est accessible que par le client web FitTrackee client.</p>
|
||||
<p><strong>Exemple de requête</strong>:</p>
|
||||
<p><strong>Exemple de requête</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="nf">GET</span> <span class="nn">/api/oauth/apps/1/by_id</span> <span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">application/json</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
<p><strong>Exemple de réponse</strong>:</p>
|
||||
<p><strong>Exemple de réponses</strong> :</p>
|
||||
<ul class="simple">
|
||||
<li><p>success:</p></li>
|
||||
</ul>
|
||||
@ -525,12 +525,12 @@
|
||||
<span class="sig-name descname"><span class="pre">DELETE</span> </span><span class="sig-name descname"><span class="pre">/api/oauth/apps/</span></span><span class="sig-paren">(</span><em class="property"><span class="pre">int:</span> </em><em class="sig-param"><span class="pre">client_id</span></em><span class="sig-paren">)</span><a class="headerlink" href="#delete--api-oauth-apps-(int-client_id)" title="Lien permanent vers cette définition">#</a></dt>
|
||||
<dd><p>Delete an OAuth2 client (app).</p>
|
||||
<p>Ce point d’accès n’est accessible que par le client web FitTrackee client.</p>
|
||||
<p><strong>Exemple de requête</strong>:</p>
|
||||
<p><strong>Exemple de requête</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="nf">DELETE</span> <span class="nn">/api/oauth/apps/1</span> <span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">application/json</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
<p><strong>Exemple de réponse</strong>:</p>
|
||||
<p><strong>Exemple de réponse</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span> <span class="m">204</span> <span class="ne">NO CONTENT</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">application/json</span>
|
||||
</pre></div>
|
||||
@ -564,14 +564,14 @@
|
||||
<dl class="http post">
|
||||
<dt class="sig sig-object http" id="post--api-oauth-apps-(int-client_id)-revoke">
|
||||
<span class="sig-name descname"><span class="pre">POST</span> </span><span class="sig-name descname"><span class="pre">/api/oauth/apps/</span></span><span class="sig-paren">(</span><em class="property"><span class="pre">int:</span> </em><em class="sig-param"><span class="pre">client_id</span></em><span class="sig-paren">)</span><span class="sig-name descname"><span class="pre">/revoke</span></span><a class="headerlink" href="#post--api-oauth-apps-(int-client_id)-revoke" title="Lien permanent vers cette définition">#</a></dt>
|
||||
<dd><p>Révoquer tous les tokens associés à un client OAuth2</p>
|
||||
<dd><p>Révoquer tous les tokens associés à un client OAuth2.</p>
|
||||
<p>Ce point d’accès n’est accessible que par le client web FitTrackee client.</p>
|
||||
<p><strong>Exemple de requête</strong>:</p>
|
||||
<p><strong>Exemple de requête</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="nf">POST</span> <span class="nn">/api/oauth/apps/1/revoke</span> <span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">application/json</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
<p><strong>Exemple de réponse</strong>:</p>
|
||||
<p><strong>Exemple de réponse</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span> <span class="m">200</span> <span class="ne">SUCCESS</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">application/json</span>
|
||||
|
||||
@ -611,12 +611,12 @@
|
||||
<span class="sig-name descname"><span class="pre">POST</span> </span><span class="sig-name descname"><span class="pre">/api/oauth/authorize</span></span><a class="headerlink" href="#post--api-oauth-authorize" title="Lien permanent vers cette définition">#</a></dt>
|
||||
<dd><p>Autoriser un client OAuth2 (app). En cas de succès, il redirige vers l’URL de redirection du client avec le code pour émettre un jeton.</p>
|
||||
<p>Ce point d’accès n’est accessible que par le client web FitTrackee client.</p>
|
||||
<p><strong>Exemple de requête</strong>:</p>
|
||||
<p><strong>Exemple de requête</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="nf">POST</span> <span class="nn">/api/oauth/authorize</span> <span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">multipart/form-data</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
<p><strong>Exemple de réponse</strong>:</p>
|
||||
<p><strong>Exemple de réponse</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span> <span class="m">200</span> <span class="ne">SUCCESS</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">application/json</span>
|
||||
|
||||
@ -664,13 +664,13 @@
|
||||
<dl class="http post">
|
||||
<dt class="sig sig-object http" id="post--api-oauth-token">
|
||||
<span class="sig-name descname"><span class="pre">POST</span> </span><span class="sig-name descname"><span class="pre">/api/oauth/token</span></span><a class="headerlink" href="#post--api-oauth-token" title="Lien permanent vers cette définition">#</a></dt>
|
||||
<dd><p>Délivrer ou rafraîchir un jeton pour un client OAuth2 donné</p>
|
||||
<p><strong>Exemple de requête</strong>:</p>
|
||||
<dd><p>Délivrer ou rafraîchir un jeton pour un client OAuth2 donné.</p>
|
||||
<p><strong>Exemple de requête</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="nf">POST</span> <span class="nn">/api/oauth/token</span> <span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">multipart/form-data</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
<p><strong>Exemple de réponse</strong>:</p>
|
||||
<p><strong>Exemple de réponse</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span> <span class="m">200</span> <span class="ne">SUCCESS</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">application/json</span>
|
||||
|
||||
@ -713,13 +713,13 @@
|
||||
<dl class="http post">
|
||||
<dt class="sig sig-object http" id="post--api-oauth-revoke">
|
||||
<span class="sig-name descname"><span class="pre">POST</span> </span><span class="sig-name descname"><span class="pre">/api/oauth/revoke</span></span><a class="headerlink" href="#post--api-oauth-revoke" title="Lien permanent vers cette définition">#</a></dt>
|
||||
<dd><p>Révoquer un jeton pour un client OAuth2 donné</p>
|
||||
<p><strong>Exemple de requête</strong>:</p>
|
||||
<dd><p>Révoquer un jeton pour un client OAuth2 donné.</p>
|
||||
<p><strong>Exemple de requête</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="nf">POST</span> <span class="nn">/api/oauth/revoke</span> <span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">multipart/form-data</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
<p><strong>Exemple de réponse</strong>:</p>
|
||||
<p><strong>Exemple de réponse</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span> <span class="m">200</span> <span class="ne">SUCCESS</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">application/json</span>
|
||||
|
||||
|
@ -237,21 +237,21 @@
|
||||
<dd><p>Obtenir tous les records pour l’utilisateur authentifié.</p>
|
||||
<dl class="simple">
|
||||
<dt>Les types de records suivants sont disponibles :</dt><dd><ul class="simple">
|
||||
<li><p>vitesse moyenne (record_type: <code class="docutils literal notranslate"><span class="pre">AS</span></code>)</p></li>
|
||||
<li><p>distance la plus elevée (record_type: <code class="docutils literal notranslate"><span class="pre">FD</span></code>)</p></li>
|
||||
<li><p>dénivelé le plus élevé (record_type: <code class="docutils literal notranslate"><span class="pre">HA</span></code>)</p></li>
|
||||
<li><p>durée la plus longue (record_type: <code class="docutils literal notranslate"><span class="pre">LD</span></code>)</p></li>
|
||||
<li><p>vitesse maximale (record_type: <code class="docutils literal notranslate"><span class="pre">MS</span></code>)</p></li>
|
||||
<li><p>vitesse moyenne (record_type : <code class="docutils literal notranslate"><span class="pre">AS</span></code>)</p></li>
|
||||
<li><p>distance la plus elevée (record_type : <code class="docutils literal notranslate"><span class="pre">FD</span></code>)</p></li>
|
||||
<li><p>dénivelé le plus élevé (record_type : <code class="docutils literal notranslate"><span class="pre">HA</span></code>)</p></li>
|
||||
<li><p>durée la plus longue (record_type : <code class="docutils literal notranslate"><span class="pre">LD</span></code>)</p></li>
|
||||
<li><p>vitesse maximale (record_type : <code class="docutils literal notranslate"><span class="pre">MS</span></code>)</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
<p><strong>Scope</strong>: <code class="docutils literal notranslate"><span class="pre">workouts:read</span></code></p>
|
||||
<p><strong>Exemple de requête</strong>:</p>
|
||||
<p><strong>Scope</strong> : <code class="docutils literal notranslate"><span class="pre">workouts:read</span></code></p>
|
||||
<p><strong>Exemple de requête</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="nf">GET</span> <span class="nn">/api/records</span> <span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">application/json</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
<p><strong>Exemple de réponse</strong>:</p>
|
||||
<p><strong>Exemple de réponses</strong> :</p>
|
||||
<ul class="simple">
|
||||
<li><p>retournant des records</p></li>
|
||||
</ul>
|
||||
|
@ -235,15 +235,15 @@
|
||||
<dt class="sig sig-object http" id="get--api-sports">
|
||||
<span class="sig-name descname"><span class="pre">GET</span> </span><span class="sig-name descname"><span class="pre">/api/sports</span></span><a class="headerlink" href="#get--api-sports" title="Lien permanent vers cette définition">#</a></dt>
|
||||
<dd><p>Obtenir tous les sports</p>
|
||||
<p><strong>Scope</strong>: <code class="docutils literal notranslate"><span class="pre">workouts:read</span></code></p>
|
||||
<p><strong>Exemple de requête</strong>:</p>
|
||||
<p><strong>Scope</strong> : <code class="docutils literal notranslate"><span class="pre">workouts:read</span></code></p>
|
||||
<p><strong>Exemple de requête</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="nf">GET</span> <span class="nn">/api/sports</span> <span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">application/json</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
<p><strong>Exemple de réponse</strong>:</p>
|
||||
<p><strong>Exemple de réponse</strong> :</p>
|
||||
<ul class="simple">
|
||||
<li><p>pour un utilisateur non admin</p></li>
|
||||
<li><p>pour un utilisateur non admin :</p></li>
|
||||
</ul>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span> <span class="m">200</span> <span class="ne">OK</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">application/json</span>
|
||||
@ -306,7 +306,7 @@
|
||||
</pre></div>
|
||||
</div>
|
||||
<ul class="simple">
|
||||
<li><p>pour un administrateur</p></li>
|
||||
<li><p>pour un administrateur :</p></li>
|
||||
</ul>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span> <span class="m">200</span> <span class="ne">OK</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">application/json</span>
|
||||
@ -398,15 +398,15 @@
|
||||
<dt class="sig sig-object http" id="get--api-sports-(int-sport_id)">
|
||||
<span class="sig-name descname"><span class="pre">GET</span> </span><span class="sig-name descname"><span class="pre">/api/sports/</span></span><span class="sig-paren">(</span><em class="property"><span class="pre">int:</span> </em><em class="sig-param"><span class="pre">sport_id</span></em><span class="sig-paren">)</span><a class="headerlink" href="#get--api-sports-(int-sport_id)" title="Lien permanent vers cette définition">#</a></dt>
|
||||
<dd><p>Obtenir un sport</p>
|
||||
<p><strong>Scope</strong>: <code class="docutils literal notranslate"><span class="pre">workouts:read</span></code></p>
|
||||
<p><strong>Exemple de requête</strong>:</p>
|
||||
<p><strong>Scope</strong> : <code class="docutils literal notranslate"><span class="pre">workouts:read</span></code></p>
|
||||
<p><strong>Exemple de requête</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="nf">GET</span> <span class="nn">/api/sports/1</span> <span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">application/json</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
<p><strong>Exemple de réponse</strong>:</p>
|
||||
<p><strong>Exemple de réponse</strong> :</p>
|
||||
<ul class="simple">
|
||||
<li><p>succès pour un utilisateur non admin:</p></li>
|
||||
<li><p>succès pour un utilisateur non admin :</p></li>
|
||||
</ul>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span> <span class="m">200</span> <span class="ne">OK</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">application/json</span>
|
||||
@ -429,7 +429,7 @@
|
||||
</pre></div>
|
||||
</div>
|
||||
<ul class="simple">
|
||||
<li><p>succès pour un administrateur</p></li>
|
||||
<li><p>succès pour un administrateur :</p></li>
|
||||
</ul>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span> <span class="m">200</span> <span class="ne">OK</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">application/json</span>
|
||||
@ -495,15 +495,15 @@
|
||||
<dl class="http patch">
|
||||
<dt class="sig sig-object http" id="patch--api-sports-(int-sport_id)">
|
||||
<span class="sig-name descname"><span class="pre">PATCH</span> </span><span class="sig-name descname"><span class="pre">/api/sports/</span></span><span class="sig-paren">(</span><em class="property"><span class="pre">int:</span> </em><em class="sig-param"><span class="pre">sport_id</span></em><span class="sig-paren">)</span><a class="headerlink" href="#patch--api-sports-(int-sport_id)" title="Lien permanent vers cette définition">#</a></dt>
|
||||
<dd><p>Modifier un sport</p>
|
||||
<p>L’utilisateur authentifié doit avoir des droits d’administration</p>
|
||||
<p><strong>Scope</strong>: <code class="docutils literal notranslate"><span class="pre">workouts:write</span></code></p>
|
||||
<p><strong>Exemple de requête</strong>:</p>
|
||||
<dd><p>Modifier un sport.</p>
|
||||
<p>L’utilisateur authentifié doit avoir des droits d’administration.</p>
|
||||
<p><strong>Scope</strong> : <code class="docutils literal notranslate"><span class="pre">workouts:write</span></code></p>
|
||||
<p><strong>Exemple de requête</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="nf">PATCH</span> <span class="nn">/api/sports/1</span> <span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">application/json</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
<p><strong>Exemple de réponse</strong>:</p>
|
||||
<p><strong>Exemple de réponses</strong> :</p>
|
||||
<ul class="simple">
|
||||
<li><p>success:</p></li>
|
||||
</ul>
|
||||
|
@ -234,9 +234,9 @@
|
||||
<dl class="http get">
|
||||
<dt class="sig sig-object http" id="get--api-stats-(user_name)-by_time">
|
||||
<span class="sig-name descname"><span class="pre">GET</span> </span><span class="sig-name descname"><span class="pre">/api/stats/</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="pre">user_name</span></em><span class="sig-paren">)</span><span class="sig-name descname"><span class="pre">/by_time</span></span><a class="headerlink" href="#get--api-stats-(user_name)-by_time" title="Lien permanent vers cette définition">#</a></dt>
|
||||
<dd><p>Obtenir des statistiques sur les séances d’entraînement pour un utilisateur par durée</p>
|
||||
<p><strong>Scope</strong>: <code class="docutils literal notranslate"><span class="pre">workouts:read</span></code></p>
|
||||
<p><strong>Exemple de requêtes</strong>:</p>
|
||||
<dd><p>Obtenir des statistiques sur les séances d’entraînement pour un utilisateur par durée.</p>
|
||||
<p><strong>Scope</strong> : <code class="docutils literal notranslate"><span class="pre">workouts:read</span></code></p>
|
||||
<p><strong>Exemple de requêtes</strong> :</p>
|
||||
<ul class="simple">
|
||||
<li><p>sans paramètres :</p></li>
|
||||
</ul>
|
||||
@ -244,13 +244,13 @@
|
||||
</pre></div>
|
||||
</div>
|
||||
<ul class="simple">
|
||||
<li><p>avec des paramètres</p></li>
|
||||
<li><p>avec des paramètres :</p></li>
|
||||
</ul>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="nf">GET</span> <span class="nn">/api/stats/admin/by_time?from=2018-01-01&to=2018-06-30&time=week</span>
|
||||
<span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
<p><strong>Exemple de réponse</strong>:</p>
|
||||
<p><strong>Exemple de réponses</strong> :</p>
|
||||
<ul class="simple">
|
||||
<li><p>success:</p></li>
|
||||
</ul>
|
||||
@ -316,9 +316,9 @@
|
||||
</dd>
|
||||
<dt class="field-even">Paramètres de requête<span class="colon">:</span></dt>
|
||||
<dd class="field-even"><ul class="simple">
|
||||
<li><p><strong>from</strong> (<em>string</em>) – date de début (format: <code class="docutils literal notranslate"><span class="pre">%Y-%m-%d</span></code>)</p></li>
|
||||
<li><p><strong>to</strong> (<em>string</em>) – date de fin (format: <code class="docutils literal notranslate"><span class="pre">%Y-%m-%d</span></code>)</p></li>
|
||||
<li><p><strong>time</strong> (<em>string</em>) – période de temps : - <code class="docutils literal notranslate"><span class="pre">week</span></code>: semaine commençant le dimanche - <code class="docutils literal notranslate"><span class="pre">weekm</span></code>: semaine commençant le lundi - <code class="docutils literal notranslate"><span class="pre">month</span></code>: mois - <code class="docutils literal notranslate"><span class="pre">year</span></code>: année (default)</p></li>
|
||||
<li><p><strong>from</strong> (<em>string</em>) – date de début (format : <code class="docutils literal notranslate"><span class="pre">%Y-%m-%d</span></code>)</p></li>
|
||||
<li><p><strong>to</strong> (<em>string</em>) – date de fin (format : <code class="docutils literal notranslate"><span class="pre">%Y-%m-%d</span></code>)</p></li>
|
||||
<li><p><strong>time</strong> (<em>string</em>) – période de temps : - <code class="docutils literal notranslate"><span class="pre">week</span></code> : semaine commençant le dimanche - <code class="docutils literal notranslate"><span class="pre">weekm</span></code> : semaine commençant le lundi - <code class="docutils literal notranslate"><span class="pre">month</span></code> : mois - <code class="docutils literal notranslate"><span class="pre">year</span></code> : année (default)</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
<dt class="field-odd">En-têtes de requête<span class="colon">:</span></dt>
|
||||
@ -345,8 +345,8 @@
|
||||
<dt class="sig sig-object http" id="get--api-stats-(user_name)-by_sport">
|
||||
<span class="sig-name descname"><span class="pre">GET</span> </span><span class="sig-name descname"><span class="pre">/api/stats/</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="pre">user_name</span></em><span class="sig-paren">)</span><span class="sig-name descname"><span class="pre">/by_sport</span></span><a class="headerlink" href="#get--api-stats-(user_name)-by_sport" title="Lien permanent vers cette définition">#</a></dt>
|
||||
<dd><p>Obtenir les statistiques des séances pour un utilisateur par sport.</p>
|
||||
<p><strong>Scope</strong>: <code class="docutils literal notranslate"><span class="pre">workouts:read</span></code></p>
|
||||
<p><strong>Exemple de requêtes</strong>:</p>
|
||||
<p><strong>Scope</strong> : <code class="docutils literal notranslate"><span class="pre">workouts:read</span></code></p>
|
||||
<p><strong>Exemple de requêtes</strong> :</p>
|
||||
<ul class="simple">
|
||||
<li><p>without parameters (get stats for all sports with workouts):</p></li>
|
||||
</ul>
|
||||
@ -354,12 +354,12 @@
|
||||
</pre></div>
|
||||
</div>
|
||||
<ul class="simple">
|
||||
<li><p>avec l’identifiant du sport</p></li>
|
||||
<li><p>avec l’identifiant du sport :</p></li>
|
||||
</ul>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="nf">GET</span> <span class="nn">/api/stats/admin/by_sport?sport_id=1</span> <span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
<p><strong>Exemple de réponse</strong>:</p>
|
||||
<p><strong>Exemple de réponses</strong> :</p>
|
||||
<ul class="simple">
|
||||
<li><p>success:</p></li>
|
||||
</ul>
|
||||
@ -452,12 +452,12 @@
|
||||
<dt class="sig sig-object http" id="get--api-stats-all">
|
||||
<span class="sig-name descname"><span class="pre">GET</span> </span><span class="sig-name descname"><span class="pre">/api/stats/all</span></span><a class="headerlink" href="#get--api-stats-all" title="Lien permanent vers cette définition">#</a></dt>
|
||||
<dd><p>Obtenir toutes les statistiques de l’application.</p>
|
||||
<p><strong>Scope</strong>: <code class="docutils literal notranslate"><span class="pre">workouts:read</span></code></p>
|
||||
<p><strong>Exemple de requêtes</strong>:</p>
|
||||
<p><strong>Scope</strong> : <code class="docutils literal notranslate"><span class="pre">workouts:read</span></code></p>
|
||||
<p><strong>Exemple de requêtes</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="nf">GET</span> <span class="nn">/api/stats/all</span> <span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
<p><strong>Exemple de réponse</strong>:</p>
|
||||
<p><strong>Exemple de réponses</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span> <span class="m">200</span> <span class="ne">OK</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">application/json</span>
|
||||
|
||||
|
@ -236,8 +236,8 @@
|
||||
<span class="sig-name descname"><span class="pre">GET</span> </span><span class="sig-name descname"><span class="pre">/api/users</span></span><a class="headerlink" href="#get--api-users" title="Lien permanent vers cette définition">#</a></dt>
|
||||
<dd><p>Obtenir tous les utilisateurs (quel que soit le statut de leur compte), si l’utilisateur authentifié a des droits d’administration.</p>
|
||||
<p>Ne renvoie les préférences de l’utilisateur que pour l’utilisateur authentifié.</p>
|
||||
<p><strong>Scope</strong>: <code class="docutils literal notranslate"><span class="pre">users:read</span></code></p>
|
||||
<p><strong>Exemple de requête</strong>:</p>
|
||||
<p><strong>Scope</strong> : <code class="docutils literal notranslate"><span class="pre">users:read</span></code></p>
|
||||
<p><strong>Exemple de requête</strong> :</p>
|
||||
<ul class="simple">
|
||||
<li><p>sans paramètres :</p></li>
|
||||
</ul>
|
||||
@ -252,7 +252,7 @@
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">application/json</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
<p><strong>Exemple de réponse</strong>:</p>
|
||||
<p><strong>Exemple de réponse</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span> <span class="m">200</span> <span class="ne">OK</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">application/json</span>
|
||||
|
||||
@ -393,13 +393,13 @@
|
||||
<span class="sig-name descname"><span class="pre">GET</span> </span><span class="sig-name descname"><span class="pre">/api/users/</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="pre">user_name</span></em><span class="sig-paren">)</span><a class="headerlink" href="#get--api-users-(user_name)" title="Lien permanent vers cette définition">#</a></dt>
|
||||
<dd><p>Obtenir les information d’un utilisateur. Seul l’utilisateur disposant des droits d’administrateur peut obtenir les informations des autres utilisateurs.</p>
|
||||
<p>Ne renvoie les préférences de l’utilisateur que pour l’utilisateur authentifié.</p>
|
||||
<p><strong>Scope</strong>: <code class="docutils literal notranslate"><span class="pre">users:read</span></code></p>
|
||||
<p><strong>Exemple de requête</strong>:</p>
|
||||
<p><strong>Scope</strong> : <code class="docutils literal notranslate"><span class="pre">users:read</span></code></p>
|
||||
<p><strong>Exemple de requête</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="nf">GET</span> <span class="nn">/api/users/admin</span> <span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">application/json</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
<p><strong>Exemple de réponse</strong>:</p>
|
||||
<p><strong>Exemple de réponse</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span> <span class="m">200</span> <span class="ne">OK</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">application/json</span>
|
||||
|
||||
@ -515,12 +515,12 @@
|
||||
<dt class="sig sig-object http" id="get--api-users-(user_name)-picture">
|
||||
<span class="sig-name descname"><span class="pre">GET</span> </span><span class="sig-name descname"><span class="pre">/api/users/</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="pre">user_name</span></em><span class="sig-paren">)</span><span class="sig-name descname"><span class="pre">/picture</span></span><a class="headerlink" href="#get--api-users-(user_name)-picture" title="Lien permanent vers cette définition">#</a></dt>
|
||||
<dd><p>obtenir l’image de l’utilisateur</p>
|
||||
<p><strong>Exemple de requête</strong>:</p>
|
||||
<p><strong>Exemple de requête</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="nf">GET</span> <span class="nn">/api/users/admin/picture</span> <span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">application/json</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
<p><strong>Exemple de réponse</strong>:</p>
|
||||
<p><strong>Exemple de réponse</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span> <span class="m">200</span> <span class="ne">OK</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">image/jpeg</span>
|
||||
</pre></div>
|
||||
@ -555,13 +555,13 @@
|
||||
<li><p>activer le compte d’un utilisateur inactif</p></li>
|
||||
</ul>
|
||||
<p>Seul l’utilisateur ayant des droits d’administration peut modifier un autre utilisateur.</p>
|
||||
<p><strong>Scope</strong>: <code class="docutils literal notranslate"><span class="pre">users:write</span></code></p>
|
||||
<p><strong>Exemple de requête</strong>:</p>
|
||||
<p><strong>Scope</strong> : <code class="docutils literal notranslate"><span class="pre">users:write</span></code></p>
|
||||
<p><strong>Exemple de requête</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="nf">PATCH</span> <span class="nn">/api/users/<user_name></span> <span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">application/json</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
<p><strong>Exemple de réponse</strong>:</p>
|
||||
<p><strong>Exemple de réponse</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span> <span class="m">200</span> <span class="ne">OK</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">application/json</span>
|
||||
|
||||
@ -653,7 +653,7 @@
|
||||
<dt class="field-even">Objet JSON de requête<span class="colon">:</span></dt>
|
||||
<dd class="field-even"><ul class="simple">
|
||||
<li><p><strong>activate</strong> (<em>boolean</em>) – activer le compte utilisateur</p></li>
|
||||
<li><p><strong>admin</strong> (<em>boolean</em>) – l’utilisateur dispose-t-il de droits d’administration ?</p></li>
|
||||
<li><p><strong>admin</strong> (<em>boolean</em>) – l’utilisateur dispose-t-il de droits d’administration</p></li>
|
||||
<li><p><strong>new_email</strong> (<em>boolean</em>) – nouvelle adresse électronique de l’utilisateur</p></li>
|
||||
<li><p><strong>reset_password</strong> (<em>boolean</em>) – réinitialiser le mot de passe de l’utilisateur</p></li>
|
||||
</ul>
|
||||
@ -692,13 +692,13 @@
|
||||
<dd><p>Supprimer un compte utilisateur.</p>
|
||||
<p>Un utilisateur ne peut supprimer que son propre compte.</p>
|
||||
<p>Un administrateur peut supprimer tous les comptes sauf le sien s’il est le seul administrateur.</p>
|
||||
<p><strong>Scope</strong>: <code class="docutils literal notranslate"><span class="pre">users:write</span></code></p>
|
||||
<p><strong>Exemple de requête</strong>:</p>
|
||||
<p><strong>Scope</strong> : <code class="docutils literal notranslate"><span class="pre">users:write</span></code></p>
|
||||
<p><strong>Exemple de requête</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="nf">DELETE</span> <span class="nn">/api/users/john_doe</span> <span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">application/json</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
<p><strong>Exemple de réponse</strong>:</p>
|
||||
<p><strong>Exemple de réponse</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span> <span class="m">204</span> <span class="ne">NO CONTENT</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">application/json</span>
|
||||
</pre></div>
|
||||
|
@ -235,8 +235,8 @@
|
||||
<dt class="sig sig-object http" id="get--api-workouts">
|
||||
<span class="sig-name descname"><span class="pre">GET</span> </span><span class="sig-name descname"><span class="pre">/api/workouts</span></span><a class="headerlink" href="#get--api-workouts" title="Lien permanent vers cette définition">#</a></dt>
|
||||
<dd><p>Obtenir les séances de l’utilisateur authentifié.</p>
|
||||
<p><strong>Scope</strong>: <code class="docutils literal notranslate"><span class="pre">workouts:read</span></code></p>
|
||||
<p><strong>Exemple de requêtes</strong>:</p>
|
||||
<p><strong>Scope</strong> : <code class="docutils literal notranslate"><span class="pre">workouts:read</span></code></p>
|
||||
<p><strong>Exemple de requêtes</strong> :</p>
|
||||
<ul class="simple">
|
||||
<li><p>sans paramètres :</p></li>
|
||||
</ul>
|
||||
@ -249,7 +249,7 @@
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="nf">GET</span> <span class="nn">/api/workouts?from=2019-07-02&to=2019-07-31&sport_id=1</span> <span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
<p><strong>Exemple de réponse</strong>:</p>
|
||||
<p><strong>Exemple de réponses</strong> :</p>
|
||||
<ul class="simple">
|
||||
<li><p>renvoyant au moins une séance :</p></li>
|
||||
</ul>
|
||||
@ -361,12 +361,12 @@
|
||||
<li><p><strong>per_page</strong> (<em>integer</em>) – nombre d’entraînements par page (par défaut : 5, max : 100)</p></li>
|
||||
<li><p><strong>sport_id</strong> (<em>integer</em>) – identifiant du sport</p></li>
|
||||
<li><p><strong>title</strong> (<em>string</em>) – une partie (ou la totalité) du titre de la séance, la correspondance entre les titres ne tient pas compte des majuscules et des minuscules</p></li>
|
||||
<li><p><strong>from</strong> (<em>string</em>) – date de début (format: <code class="docutils literal notranslate"><span class="pre">%Y-%m-%d</span></code>)</p></li>
|
||||
<li><p><strong>to</strong> (<em>string</em>) – date de fin (format: <code class="docutils literal notranslate"><span class="pre">%Y-%m-%d</span></code>)</p></li>
|
||||
<li><p><strong>from</strong> (<em>string</em>) – date de début (format : <code class="docutils literal notranslate"><span class="pre">%Y-%m-%d</span></code>)</p></li>
|
||||
<li><p><strong>to</strong> (<em>string</em>) – date de fin (format : <code class="docutils literal notranslate"><span class="pre">%Y-%m-%d</span></code>)</p></li>
|
||||
<li><p><strong>distance_from</strong> (<em>float</em>) – distance minimale</p></li>
|
||||
<li><p><strong>distance_to</strong> (<em>float</em>) – distance maximale</p></li>
|
||||
<li><p><strong>duration_from</strong> (<em>string</em>) – durée minimale (format: <code class="docutils literal notranslate"><span class="pre">%H:%M</span></code>)</p></li>
|
||||
<li><p><strong>duration_to</strong> (<em>string</em>) – distance maximale (format: <code class="docutils literal notranslate"><span class="pre">%H:%M</span></code>)</p></li>
|
||||
<li><p><strong>duration_from</strong> (<em>string</em>) – durée minimale (format : <code class="docutils literal notranslate"><span class="pre">%H:%M</span></code>)</p></li>
|
||||
<li><p><strong>duration_to</strong> (<em>string</em>) – distance maximale (format : <code class="docutils literal notranslate"><span class="pre">%H:%M</span></code>)</p></li>
|
||||
<li><p><strong>ave_speed_from</strong> (<em>float</em>) – vitesse moyenne minimale</p></li>
|
||||
<li><p><strong>ave_speed_to</strong> (<em>float</em>) – vitesse moyenne maximale</p></li>
|
||||
<li><p><strong>max_speed_from</strong> (<em>float</em>) – vitesse max. minimale</p></li>
|
||||
@ -401,12 +401,12 @@
|
||||
<dt class="sig sig-object http" id="get--api-workouts-(string-workout_short_id)">
|
||||
<span class="sig-name descname"><span class="pre">GET</span> </span><span class="sig-name descname"><span class="pre">/api/workouts/</span></span><span class="sig-paren">(</span><em class="property"><span class="pre">string:</span> </em><em class="sig-param"><span class="pre">workout_short_id</span></em><span class="sig-paren">)</span><a class="headerlink" href="#get--api-workouts-(string-workout_short_id)" title="Lien permanent vers cette définition">#</a></dt>
|
||||
<dd><p>Obtenir une séance.</p>
|
||||
<p><strong>Scope</strong>: <code class="docutils literal notranslate"><span class="pre">workouts:read</span></code></p>
|
||||
<p><strong>Exemple de requête</strong>:</p>
|
||||
<p><strong>Scope</strong> : <code class="docutils literal notranslate"><span class="pre">workouts:read</span></code></p>
|
||||
<p><strong>Exemple de requête</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="nf">GET</span> <span class="nn">/api/workouts/kjxavSTUrJvoAh2wvCeGEF</span> <span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
<p><strong>Exemple de réponse</strong>:</p>
|
||||
<p><strong>Exemple de réponses</strong> :</p>
|
||||
<ul class="simple">
|
||||
<li><p>success:</p></li>
|
||||
</ul>
|
||||
@ -496,13 +496,13 @@
|
||||
<dt class="sig sig-object http" id="get--api-workouts-(string-workout_short_id)-gpx">
|
||||
<span class="sig-name descname"><span class="pre">GET</span> </span><span class="sig-name descname"><span class="pre">/api/workouts/</span></span><span class="sig-paren">(</span><em class="property"><span class="pre">string:</span> </em><em class="sig-param"><span class="pre">workout_short_id</span></em><span class="sig-paren">)</span><span class="sig-name descname"><span class="pre">/gpx</span></span><a class="headerlink" href="#get--api-workouts-(string-workout_short_id)-gpx" title="Lien permanent vers cette définition">#</a></dt>
|
||||
<dd><p>Obtenir un fichier gpx pour une séance affichée sur une carte avec Leaflet.</p>
|
||||
<p><strong>Scope</strong>: <code class="docutils literal notranslate"><span class="pre">workouts:read</span></code></p>
|
||||
<p><strong>Exemple de requête</strong>:</p>
|
||||
<p><strong>Scope</strong> : <code class="docutils literal notranslate"><span class="pre">workouts:read</span></code></p>
|
||||
<p><strong>Exemple de requête</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="nf">GET</span> <span class="nn">/api/workouts/kjxavSTUrJvoAh2wvCeGEF/gpx</span> <span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">application/json</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
<p><strong>Exemple de réponse</strong>:</p>
|
||||
<p><strong>Exemple de réponse</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span> <span class="m">200</span> <span class="ne">OK</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">application/json</span>
|
||||
|
||||
@ -549,14 +549,14 @@
|
||||
<dl class="http get">
|
||||
<dt class="sig sig-object http" id="get--api-workouts-(string-workout_short_id)-chart_data">
|
||||
<span class="sig-name descname"><span class="pre">GET</span> </span><span class="sig-name descname"><span class="pre">/api/workouts/</span></span><span class="sig-paren">(</span><em class="property"><span class="pre">string:</span> </em><em class="sig-param"><span class="pre">workout_short_id</span></em><span class="sig-paren">)</span><span class="sig-name descname"><span class="pre">/chart_data</span></span><a class="headerlink" href="#get--api-workouts-(string-workout_short_id)-chart_data" title="Lien permanent vers cette définition">#</a></dt>
|
||||
<dd><p>Récupérer les données d’une séance avec gpx pour les afficher avec Chart.js</p>
|
||||
<p><strong>Scope</strong>: <code class="docutils literal notranslate"><span class="pre">workouts:read</span></code></p>
|
||||
<p><strong>Exemple de requête</strong>:</p>
|
||||
<dd><p>Récupérer les données d’une séance avec gpx pour les afficher avec Chart.js.</p>
|
||||
<p><strong>Scope</strong> : <code class="docutils literal notranslate"><span class="pre">workouts:read</span></code></p>
|
||||
<p><strong>Exemple de requête</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="nf">GET</span> <span class="nn">/api/workouts/kjxavSTUrJvoAh2wvCeGEF/chart</span> <span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">application/json</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
<p><strong>Exemple de réponse</strong>:</p>
|
||||
<p><strong>Exemple de réponse</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span> <span class="m">200</span> <span class="ne">OK</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">application/json</span>
|
||||
|
||||
@ -622,14 +622,14 @@
|
||||
<dl class="http get">
|
||||
<dt class="sig sig-object http" id="get--api-workouts-(string-workout_short_id)-chart_data-segment-(int-segment_id)">
|
||||
<span class="sig-name descname"><span class="pre">GET</span> </span><span class="sig-name descname"><span class="pre">/api/workouts/</span></span><span class="sig-paren">(</span><em class="property"><span class="pre">string:</span> </em><em class="sig-param"><span class="pre">workout_short_id</span></em><span class="sig-paren">)</span><span class="sig-name descname"><span class="pre">/chart_data/segment/</span></span><span class="sig-paren">(</span><em class="property"><span class="pre">int:</span> </em><em class="sig-param"><span class="pre">segment_id</span></em><span class="sig-paren">)</span><a class="headerlink" href="#get--api-workouts-(string-workout_short_id)-chart_data-segment-(int-segment_id)" title="Lien permanent vers cette définition">#</a></dt>
|
||||
<dd><p>Récupérer les données d’une séance avec gpx pour les afficher avec Chart.js</p>
|
||||
<p><strong>Scope</strong>: <code class="docutils literal notranslate"><span class="pre">workouts:read</span></code></p>
|
||||
<p><strong>Exemple de requête</strong>:</p>
|
||||
<dd><p>Récupérer les données d’une séance avec gpx pour les afficher avec Chart.js.</p>
|
||||
<p><strong>Scope</strong> : <code class="docutils literal notranslate"><span class="pre">workouts:read</span></code></p>
|
||||
<p><strong>Exemple de requête</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="nf">GET</span> <span class="nn">/api/workouts/kjxavSTUrJvoAh2wvCeGEF/chart/segment/0</span> <span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">application/json</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
<p><strong>Exemple de réponse</strong>:</p>
|
||||
<p><strong>Exemple de réponse</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span> <span class="m">200</span> <span class="ne">OK</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">application/json</span>
|
||||
|
||||
@ -694,13 +694,13 @@
|
||||
<dt class="sig sig-object http" id="get--api-workouts-(string-workout_short_id)-gpx-segment-(int-segment_id)">
|
||||
<span class="sig-name descname"><span class="pre">GET</span> </span><span class="sig-name descname"><span class="pre">/api/workouts/</span></span><span class="sig-paren">(</span><em class="property"><span class="pre">string:</span> </em><em class="sig-param"><span class="pre">workout_short_id</span></em><span class="sig-paren">)</span><span class="sig-name descname"><span class="pre">/gpx/segment/</span></span><span class="sig-paren">(</span><em class="property"><span class="pre">int:</span> </em><em class="sig-param"><span class="pre">segment_id</span></em><span class="sig-paren">)</span><a class="headerlink" href="#get--api-workouts-(string-workout_short_id)-gpx-segment-(int-segment_id)" title="Lien permanent vers cette définition">#</a></dt>
|
||||
<dd><p>Obtenir un fichier gpx pour le segment d’une séance pour l’afficher sur la carte avec Leaflet.</p>
|
||||
<p><strong>Scope</strong>: <code class="docutils literal notranslate"><span class="pre">workouts:read</span></code></p>
|
||||
<p><strong>Exemple de requête</strong>:</p>
|
||||
<p><strong>Scope</strong> : <code class="docutils literal notranslate"><span class="pre">workouts:read</span></code></p>
|
||||
<p><strong>Exemple de requête</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="nf">GET</span> <span class="nn">/api/workouts/kjxavSTUrJvoAh2wvCeGEF/gpx/segment/0</span> <span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">application/json</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
<p><strong>Exemple de réponse</strong>:</p>
|
||||
<p><strong>Exemple de réponse</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span> <span class="m">200</span> <span class="ne">OK</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">application/json</span>
|
||||
|
||||
@ -746,12 +746,12 @@
|
||||
<dt class="sig sig-object http" id="get--api-workouts-map-(map_id)">
|
||||
<span class="sig-name descname"><span class="pre">GET</span> </span><span class="sig-name descname"><span class="pre">/api/workouts/map/</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="pre">map_id</span></em><span class="sig-paren">)</span><a class="headerlink" href="#get--api-workouts-map-(map_id)" title="Lien permanent vers cette définition">#</a></dt>
|
||||
<dd><p>Obtenir l’image de la carte pour les séances avec gpx.</p>
|
||||
<p><strong>Exemple de requête</strong>:</p>
|
||||
<p><strong>Exemple de requête</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="nf">GET</span> <span class="nn">/api/workouts/map/fa33f4d996844a5c73ecd1ae24456ab8?1563529507772</span>
|
||||
<span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
<p><strong>Exemple de réponse</strong>:</p>
|
||||
<p><strong>Exemple de réponse</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span> <span class="m">200</span> <span class="ne">OK</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">image/png</span>
|
||||
</pre></div>
|
||||
@ -782,11 +782,11 @@
|
||||
<dt class="sig sig-object http" id="get--api-workouts-map_tile-(s)-(z)-(x)-(y).png">
|
||||
<span class="sig-name descname"><span class="pre">GET</span> </span><span class="sig-name descname"><span class="pre">/api/workouts/map_tile/</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="pre">s</span></em><span class="sig-paren">)</span><span class="sig-name descname"><span class="pre">/</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="pre">z</span></em><span class="sig-paren">)</span><span class="sig-name descname"><span class="pre">/</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="pre">x</span></em><span class="sig-paren">)</span><span class="sig-name descname"><span class="pre">/</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="pre">y</span></em><span class="sig-paren">)</span><span class="sig-name descname"><span class="pre">.png</span></span><a class="headerlink" href="#get--api-workouts-map_tile-(s)-(z)-(x)-(y).png" title="Lien permanent vers cette définition">#</a></dt>
|
||||
<dd><p>Obtenir une tuile de la carte à partir du serveur de tuiles.</p>
|
||||
<p><strong>Exemple de requête</strong>:</p>
|
||||
<p><strong>Exemple de requête</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="nf">GET</span> <span class="nn">/api/workouts/map_tile/c/13/4109/2930.png</span> <span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
<p><strong>Exemple de réponse</strong>:</p>
|
||||
<p><strong>Exemple de réponse</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span> <span class="m">200</span> <span class="ne">OK</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">image/png</span>
|
||||
</pre></div>
|
||||
@ -801,19 +801,19 @@
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
<p>Les codes d’état sont des codes d’état renvoyés par le serveur de tuiles.</p>
|
||||
<p>Les codes d’état sont des codes d’état renvoyés par le serveur de tuiles</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="http get">
|
||||
<dt class="sig sig-object http" id="get--api-workouts-(string-workout_short_id)-gpx-download">
|
||||
<span class="sig-name descname"><span class="pre">GET</span> </span><span class="sig-name descname"><span class="pre">/api/workouts/</span></span><span class="sig-paren">(</span><em class="property"><span class="pre">string:</span> </em><em class="sig-param"><span class="pre">workout_short_id</span></em><span class="sig-paren">)</span><span class="sig-name descname"><span class="pre">/gpx/download</span></span><a class="headerlink" href="#get--api-workouts-(string-workout_short_id)-gpx-download" title="Lien permanent vers cette définition">#</a></dt>
|
||||
<dd><p>Télécharger le fichier gpx.</p>
|
||||
<p><strong>Scope</strong>: <code class="docutils literal notranslate"><span class="pre">workouts:read</span></code></p>
|
||||
<p><strong>Exemple de requête</strong>:</p>
|
||||
<p><strong>Scope</strong> : <code class="docutils literal notranslate"><span class="pre">workouts:read</span></code></p>
|
||||
<p><strong>Exemple de requête</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="nf">GET</span> <span class="nn">/api/workouts/kjxavSTUrJvoAh2wvCeGEF/gpx/download</span> <span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
<p><strong>Exemple de réponse</strong>:</p>
|
||||
<p><strong>Exemple de réponse</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span> <span class="m">200</span> <span class="ne">OK</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">application/gpx+xml</span>
|
||||
</pre></div>
|
||||
@ -847,13 +847,13 @@
|
||||
<dt class="sig sig-object http" id="post--api-workouts">
|
||||
<span class="sig-name descname"><span class="pre">POST</span> </span><span class="sig-name descname"><span class="pre">/api/workouts</span></span><a class="headerlink" href="#post--api-workouts" title="Lien permanent vers cette définition">#</a></dt>
|
||||
<dd><p>Créer une séance à partir d’un fichier gpx.</p>
|
||||
<p><strong>Scope</strong>: <code class="docutils literal notranslate"><span class="pre">workouts:write</span></code></p>
|
||||
<p><strong>Exemple de requête</strong>:</p>
|
||||
<p><strong>Scope</strong> : <code class="docutils literal notranslate"><span class="pre">workouts:write</span></code></p>
|
||||
<p><strong>Exemple de requête</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="nf">POST</span> <span class="nn">/api/workouts/</span> <span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">multipart/form-data</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
<p><strong>Exemple de réponse</strong>:</p>
|
||||
<p><strong>Exemple de réponse</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span> <span class="m">201</span> <span class="ne">CREATED</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">application/json</span>
|
||||
|
||||
@ -936,7 +936,7 @@
|
||||
<dt class="field-odd">Paramètres de la forme<span class="colon">:</span></dt>
|
||||
<dd class="field-odd"><ul class="simple">
|
||||
<li><p><strong>file</strong> – fichier gpx (extensions autorisées : .gpx, .zip)</p></li>
|
||||
<li><p><strong>data</strong> – l’identifiant du sport et les notes (exemple : <code class="docutils literal notranslate"><span class="pre">{"sport_id":</span> <span class="pre">1,</span> <span class="pre">"notes":</span> <span class="pre">""}</span></code>). Les guillemets doubles dans les notes doivent être échappés.</p></li>
|
||||
<li><p><strong>data</strong> – identifiant du sport et notes (exemple : <code class="docutils literal notranslate"><span class="pre">{"sport_id":</span> <span class="pre">1,</span> <span class="pre">"notes":</span> <span class="pre">""}</span></code>). Les guillemets doubles dans les notes doivent être échappés.</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
<dt class="field-even">En-têtes de requête<span class="colon">:</span></dt>
|
||||
@ -971,13 +971,13 @@
|
||||
<dt class="sig sig-object http" id="post--api-workouts-no_gpx">
|
||||
<span class="sig-name descname"><span class="pre">POST</span> </span><span class="sig-name descname"><span class="pre">/api/workouts/no_gpx</span></span><a class="headerlink" href="#post--api-workouts-no_gpx" title="Lien permanent vers cette définition">#</a></dt>
|
||||
<dd><p>Créer une séance sans fichier gpx.</p>
|
||||
<p><strong>Scope</strong>: <code class="docutils literal notranslate"><span class="pre">workouts:write</span></code></p>
|
||||
<p><strong>Exemple de requête</strong>:</p>
|
||||
<p><strong>Scope</strong> : <code class="docutils literal notranslate"><span class="pre">workouts:write</span></code></p>
|
||||
<p><strong>Exemple de requête</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="nf">POST</span> <span class="nn">/api/workouts/no_gpx</span> <span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">application/json</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
<p><strong>Exemple de réponse</strong>:</p>
|
||||
<p><strong>Exemple de réponse</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span> <span class="m">201</span> <span class="ne">CREATED</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">application/json</span>
|
||||
|
||||
@ -1067,7 +1067,7 @@ must be provided with descent)</p></li>
|
||||
<li><p><strong>notes</strong> (<em>string</em>) – notes (non obligatoire)</p></li>
|
||||
<li><p><strong>sport_id</strong> (<em>integer</em>) – identifiant du sport de la séance</p></li>
|
||||
<li><p><strong>title</strong> (<em>string</em>) – titre de la séance (non obligatoire)</p></li>
|
||||
<li><p><strong>workout_date</strong> (<em>string</em>) – date de la séance, dans le fuseau horaire de l’utilisateur (format: <code class="docutils literal notranslate"><span class="pre">%Y-%m-%d</span> <span class="pre">%H:%M</span></code>)</p></li>
|
||||
<li><p><strong>workout_date</strong> (<em>string</em>) – date de la séance, dans le fuseau horaire de l’utilisateur (format : <code class="docutils literal notranslate"><span class="pre">%Y-%m-%d</span> <span class="pre">%H:%M</span></code>)</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
<dt class="field-even">En-têtes de requête<span class="colon">:</span></dt>
|
||||
@ -1094,14 +1094,14 @@ must be provided with descent)</p></li>
|
||||
<dl class="http patch">
|
||||
<dt class="sig sig-object http" id="patch--api-workouts-(string-workout_short_id)">
|
||||
<span class="sig-name descname"><span class="pre">PATCH</span> </span><span class="sig-name descname"><span class="pre">/api/workouts/</span></span><span class="sig-paren">(</span><em class="property"><span class="pre">string:</span> </em><em class="sig-param"><span class="pre">workout_short_id</span></em><span class="sig-paren">)</span><a class="headerlink" href="#patch--api-workouts-(string-workout_short_id)" title="Lien permanent vers cette définition">#</a></dt>
|
||||
<dd><p>Mettre à jour une séance</p>
|
||||
<p><strong>Scope</strong>: <code class="docutils literal notranslate"><span class="pre">workouts:write</span></code></p>
|
||||
<p><strong>Exemple de requête</strong>:</p>
|
||||
<dd><p>Mettre à jour une séance.</p>
|
||||
<p><strong>Scope</strong> : <code class="docutils literal notranslate"><span class="pre">workouts:write</span></code></p>
|
||||
<p><strong>Exemple de requête</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="nf">PATCH</span> <span class="nn">/api/workouts/1</span> <span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">application/json</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
<p><strong>Exemple de réponse</strong>:</p>
|
||||
<p><strong>Exemple de réponse</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span> <span class="m">200</span> <span class="ne">OK</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">application/json</span>
|
||||
|
||||
@ -1195,7 +1195,7 @@ must be provided with descent)</p></li>
|
||||
<li><p><strong>notes</strong> (<em>string</em>) – notes</p></li>
|
||||
<li><p><strong>sport_id</strong> (<em>integer</em>) – identifiant du sport de la séance</p></li>
|
||||
<li><p><strong>title</strong> (<em>string</em>) – titre de la séance</p></li>
|
||||
<li><p><strong>workout_date</strong> (<em>string</em>) – date de la séance dans le fuseau horaire de l’utilisateur (format: <code class="docutils literal notranslate"><span class="pre">%Y-%m-%d</span> <span class="pre">%H:%M</span></code>) (seulement pour les séances sans gpx)</p></li>
|
||||
<li><p><strong>workout_date</strong> (<em>string</em>) – date de la séance dans le fuseau horaire de l’utilisateur (format : <code class="docutils literal notranslate"><span class="pre">%Y-%m-%d</span> <span class="pre">%H:%M</span></code>) (seulement pour les séances sans gpx)</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
<dt class="field-odd">En-têtes de requête<span class="colon">:</span></dt>
|
||||
@ -1223,14 +1223,14 @@ must be provided with descent)</p></li>
|
||||
<dl class="http delete">
|
||||
<dt class="sig sig-object http" id="delete--api-workouts-(string-workout_short_id)">
|
||||
<span class="sig-name descname"><span class="pre">DELETE</span> </span><span class="sig-name descname"><span class="pre">/api/workouts/</span></span><span class="sig-paren">(</span><em class="property"><span class="pre">string:</span> </em><em class="sig-param"><span class="pre">workout_short_id</span></em><span class="sig-paren">)</span><a class="headerlink" href="#delete--api-workouts-(string-workout_short_id)" title="Lien permanent vers cette définition">#</a></dt>
|
||||
<dd><p>Supprimer la séance</p>
|
||||
<p><strong>Scope</strong>: <code class="docutils literal notranslate"><span class="pre">workouts:write</span></code></p>
|
||||
<p><strong>Exemple de requête</strong>:</p>
|
||||
<dd><p>Supprimer la séance.</p>
|
||||
<p><strong>Scope</strong> : <code class="docutils literal notranslate"><span class="pre">workouts:write</span></code></p>
|
||||
<p><strong>Exemple de requête</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="nf">DELETE</span> <span class="nn">/api/workouts/kjxavSTUrJvoAh2wvCeGEF</span> <span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">application/json</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
<p><strong>Exemple de réponse</strong>:</p>
|
||||
<p><strong>Exemple de réponse</strong> :</p>
|
||||
<div class="highlight-http notranslate"><div class="highlight"><pre><span></span><span class="kr">HTTP</span><span class="o">/</span><span class="m">1.1</span> <span class="m">204</span> <span class="ne">NO CONTENT</span>
|
||||
<span class="na">Content-Type</span><span class="o">:</span> <span class="l">application/json</span>
|
||||
</pre></div>
|
||||
|
@ -269,7 +269,7 @@ Commands:
|
||||
<div class="versionadded">
|
||||
<p><span class="versionmodified added">Nouveau dans la version 0.6.5.</span></p>
|
||||
</div>
|
||||
<p>Appliquer les migrations</p>
|
||||
<p>Appliquer les migrations.</p>
|
||||
</section>
|
||||
</section>
|
||||
<section id="oauth2">
|
||||
@ -378,7 +378,7 @@ Commands:
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr class="row-even"><td><p><code class="docutils literal notranslate"><span class="pre">USERNAME</span></code></p></td>
|
||||
<td><p>Nom de l’utilisateur</p></td>
|
||||
<td><p>Nom de l’utilisateur.</p></td>
|
||||
</tr>
|
||||
<tr class="row-odd"><td><p><code class="docutils literal notranslate"><span class="pre">--email</span> <span class="pre">EMAIL</span></code></p></td>
|
||||
<td><p>Adresse électronique de l’utilisateur (obligatoire).</p></td>
|
||||
@ -434,7 +434,7 @@ Commands:
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr class="row-even"><td><p><code class="docutils literal notranslate"><span class="pre">USERNAME</span></code></p></td>
|
||||
<td><p>Nom de l’utilisateur</p></td>
|
||||
<td><p>Nom de l’utilisateur.</p></td>
|
||||
</tr>
|
||||
<tr class="row-odd"><td><p><code class="docutils literal notranslate"><span class="pre">--set-admin</span> <span class="pre">BOOLEAN</span></code></p></td>
|
||||
<td><p>Ajouter/supprimer des droits d’administration (lors de l’ajout de droits d’administration, le compte de l’utilisateur est également activé s’il ne l’est pas.</p></td>
|
||||
|
@ -241,7 +241,7 @@
|
||||
<h2>Séances<a class="headerlink" href="#workouts" title="Lien permanent vers cette rubrique">#</a></h2>
|
||||
<ul class="simple">
|
||||
<li><dl class="simple">
|
||||
<dt>14 sports sont pris en charge:</dt><dd><ul>
|
||||
<dt>14 sports sont pris en charge :</dt><dd><ul>
|
||||
<li><p>Vélo (Sport)</p></li>
|
||||
<li><p>Vélo (Transport)</p></li>
|
||||
<li><p>Vélo (Virtuel) (<em>nouveau dans la version 0.7.3</em>)</p></li>
|
||||
@ -261,7 +261,7 @@
|
||||
</dl>
|
||||
</li>
|
||||
<li><dl class="simple">
|
||||
<dt>(<em>nouveau dans la version in 0.5.0</em>) Le seuil de vitesse arrêté utilisé par <a class="reference external" href="https://github.com/tkrajina/gpxpy">gpxpy</a> n’est plus la valeur par défaut pour les sports suivants (0.1 km/h au lieu de 1 km/h):</dt><dd><ul>
|
||||
<dt>(<em>nouveau dans la version in 0.5.0</em>) Le seuil de vitesse arrêté utilisé par <a class="reference external" href="https://github.com/tkrajina/gpxpy">gpxpy</a> n’est plus la valeur par défaut pour les sports suivants (0.1 km/h au lieu de 1 km/h) :</dt><dd><ul>
|
||||
<li><p>Randonnée</p></li>
|
||||
<li><p>Alpinisme</p></li>
|
||||
<li><p>Ski (Randonnée)</p></li>
|
||||
@ -284,7 +284,7 @@
|
||||
<div class="admonition note">
|
||||
<p class="admonition-title">Note</p>
|
||||
<div class="line-block">
|
||||
<div class="line">Seuls les fichiers gpx avec l’heure sont pris en charge</div>
|
||||
<div class="line">Seuls les fichiers gpx avec l’heure sont pris en charge.</div>
|
||||
<div class="line">Les valeurs calculées peuvent différer de celles calculées par l’application qui a généré les fichiers gpx à l’origine, en particulier la vitesse maximale.</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -387,7 +387,7 @@
|
||||
<li><p>L’utilisateur peut définir la langue, le fuseau horaire et le premier jour de la semaine.</p></li>
|
||||
<li><p>L’utilisateur peut réinitialiser son mot de passe (<em>nouveau dans la version in 0.3.0</em>)</p></li>
|
||||
<li><p>Un utilisateur peut modifier son adresse électronique (<em>nouveau dans la version 0.6.0</em>)</p></li>
|
||||
<li><p>L’utilisateur peut choisir entre le système métrique et le système impérial pour la distance, l’affichage de l’altitude et de la vitesse (<em>nouveau dans la version 0.5.0</em>).</p></li>
|
||||
<li><p>L’utilisateur peut choisir entre le système métrique et le système impérial pour la distance, l’affichage de l’altitude et de la vitesse (<em>nouveau dans la version 0.5.0</em>)</p></li>
|
||||
<li><p>Un utilisateur peut choisir d’afficher ou cacher les records et le total de dénivelé positif sur le tableau de bord (<em>nouveau dans la version 0.6.11</em>)</p></li>
|
||||
<li><p>L’utilisateur peut choisir le format d’affichage des dates (<em>nouveau dans la version 0.7.3</em>)</p></li>
|
||||
<li><p>L’utilisateur peut choisir le point de départ de l’axe du graphique d’altitude : altitude zéro ou minimale. (<em>nouveau dans la version 0.7.15</em>)</p></li>
|
||||
@ -399,7 +399,7 @@
|
||||
</div>
|
||||
<ul class="simple">
|
||||
<li><dl class="simple">
|
||||
<dt>Un utilisateur peut définir des préférences en matière de sport (<em>nouveau dans la version 0.5.0</em>):</dt><dd><ul>
|
||||
<dt>Un utilisateur peut définir des préférences en matière de sport (<em>nouveau dans la version 0.5.0</em>) :</dt><dd><ul>
|
||||
<li><p>changer la couleur du sport (utilisée pour l’image du sport et les graphiques)</p></li>
|
||||
<li><p>modifier le seuil de vitesse d’arrêt (pour les prochains fichiers gpx ajoutés)</p></li>
|
||||
<li><p>désactiver/activer un sport.</p></li>
|
||||
@ -503,12 +503,12 @@
|
||||
<li><p>Espagnol (<em>nouveau dans la version 0.7.15</em>)</p></li>
|
||||
<li><p>Norvégien (Bokmål) (<em>nouveau dans la version 0.7.15</em>)</p></li>
|
||||
</ul>
|
||||
<p>Etat d’avancement de la traduction sur <a class="reference external" href="https://hosted.weblate.org/engage/fittrackee/">Weblate</a> (peut différer de la version publiée):</p>
|
||||
<p>Etat d’avancement de la traduction sur <a class="reference external" href="https://hosted.weblate.org/engage/fittrackee/">Weblate</a> (peut différer de la version publiée) :</p>
|
||||
<figure class="align-default">
|
||||
<img alt="https://hosted.weblate.org/widgets/fittrackee/-/multi-auto.svg" src="https://hosted.weblate.org/widgets/fittrackee/-/multi-auto.svg" /></figure>
|
||||
<div class="admonition note">
|
||||
<p class="admonition-title">Note</p>
|
||||
<p>Le polonais n’est pas encore disponible dans l’interface de <strong>FitTrackee</strong></p>
|
||||
<p>Le Polonais n’est pas encore disponible dans l’interface de <strong>FitTrackee</strong>.</p>
|
||||
</div>
|
||||
</section>
|
||||
<section id="screenshots">
|
||||
|
@ -286,7 +286,7 @@
|
||||
<div class="admonition note">
|
||||
<p class="admonition-title">Note</p>
|
||||
<div class="line-block">
|
||||
<div class="line">Si l’inscription des utilisateurs est activé, il est recommandé de configurer un fournisseur SMTP pour l’envoi des courriels et les demandes d’export de données</div>
|
||||
<div class="line">Si l’inscription des utilisateurs est activé, il est recommandé de configurer un fournisseur SMTP pour l’envoi des courriels et les demandes d’export de données.</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="admonition note">
|
||||
@ -310,7 +310,7 @@
|
||||
<dt class="sig sig-object std" id="envvar-FLASK_APP">
|
||||
<span class="sig-name descname"><span class="pre">FLASK_APP</span></span><a class="headerlink" href="#envvar-FLASK_APP" title="Lien permanent vers cette définition">#</a></dt>
|
||||
<dd><div class="line-block">
|
||||
<div class="line">Nom du module à importer au démarrage de Flask</div>
|
||||
<div class="line">Nom du module à importer au démarrage de Flask.</div>
|
||||
<div class="line"><code class="docutils literal notranslate"><span class="pre">FLASK_APP</span></code> doit contenir <code class="docutils literal notranslate"><span class="pre">$(PWD)/fittrackee/__main__.py</span></code> dans le cas de l’installation à partir des sources, sinon <code class="docutils literal notranslate"><span class="pre">fittrackee</span></code>.</div>
|
||||
</div>
|
||||
</dd></dl>
|
||||
@ -318,7 +318,7 @@
|
||||
<dl class="std envvar">
|
||||
<dt class="sig sig-object std" id="envvar-HOST">
|
||||
<span class="sig-name descname"><span class="pre">HOST</span></span><a class="headerlink" href="#envvar-HOST" title="Lien permanent vers cette définition">#</a></dt>
|
||||
<dd><p>Hôte <strong>FitTrackee</strong></p>
|
||||
<dd><p>Hôte <strong>FitTrackee</strong>.</p>
|
||||
<dl class="field-list simple">
|
||||
<dt class="field-odd">défaut<span class="colon">:</span></dt>
|
||||
<dd class="field-odd"><p>127.0.0.1</p>
|
||||
@ -329,7 +329,7 @@
|
||||
<dl class="std envvar">
|
||||
<dt class="sig sig-object std" id="envvar-PORT">
|
||||
<span class="sig-name descname"><span class="pre">PORT</span></span><a class="headerlink" href="#envvar-PORT" title="Lien permanent vers cette définition">#</a></dt>
|
||||
<dd><p>Port de l’application web <strong>FitTrackee</strong></p>
|
||||
<dd><p>Port de l’application web <strong>FitTrackee</strong>.</p>
|
||||
<dl class="field-list simple">
|
||||
<dt class="field-odd">défaut<span class="colon">:</span></dt>
|
||||
<dd class="field-odd"><p>5000</p>
|
||||
@ -340,7 +340,7 @@
|
||||
<dl class="std envvar">
|
||||
<dt class="sig sig-object std" id="envvar-APP_SETTINGS">
|
||||
<span class="sig-name descname"><span class="pre">APP_SETTINGS</span></span><a class="headerlink" href="#envvar-APP_SETTINGS" title="Lien permanent vers cette définition">#</a></dt>
|
||||
<dd><p>Configuration de <strong>FitTrackee</strong></p>
|
||||
<dd><p>Configuration de <strong>FitTrackee</strong>.</p>
|
||||
<dl class="field-list simple">
|
||||
<dt class="field-odd">défaut<span class="colon">:</span></dt>
|
||||
<dd class="field-odd"><p>fittrackee.config.ProductionConfig</p>
|
||||
@ -354,14 +354,14 @@
|
||||
<dd><p>clé secrète de <strong>FitTrackee</strong>, doit être initialisé sur un environnement de production.</p>
|
||||
<div class="admonition warning">
|
||||
<p class="admonition-title">Avertissement</p>
|
||||
<p>Utiliser une clé secrète forte. Cette clé est utilisée pour la génération des jetons JWT</p>
|
||||
<p>Utiliser une clé secrète forte. Cette clé est utilisée pour la génération des jetons JWT.</p>
|
||||
</div>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="std envvar">
|
||||
<dt class="sig sig-object std" id="envvar-APP_WORKERS">
|
||||
<span class="sig-name descname"><span class="pre">APP_WORKERS</span></span><a class="headerlink" href="#envvar-APP_WORKERS" title="Lien permanent vers cette définition">#</a></dt>
|
||||
<dd><p>Nombre de _workers_ lancés par <strong>Gunicorn</strong></p>
|
||||
<dd><p>Nombre de _workers_ lancés par <strong>Gunicorn</strong>.</p>
|
||||
<dl class="field-list simple">
|
||||
<dt class="field-odd">défaut<span class="colon">:</span></dt>
|
||||
<dd class="field-odd"><p>1</p>
|
||||
@ -393,7 +393,7 @@
|
||||
<div class="admonition danger">
|
||||
<p class="admonition-title">Danger</p>
|
||||
<div class="line-block">
|
||||
<div class="line">Dans le cas d’une installation avec PyPI, le répertoire sera localisé dans le répertoire de l’environnement virtuel Python si la variable n’est pas initialisée</div>
|
||||
<div class="line">Dans le cas d’une installation avec PyPI, le répertoire sera localisé dans le répertoire de l’environnement virtuel Python si la variable n’est pas initialisée.</div>
|
||||
</div>
|
||||
</div>
|
||||
</dd></dl>
|
||||
@ -608,8 +608,8 @@
|
||||
<p>Pour l’envoi des courriels, une valeur valide pour la variable <code class="docutils literal notranslate"><span class="pre">EMAIL_URL</span></code> doit être fourni :</p>
|
||||
<ul class="simple">
|
||||
<li><p>avec un SMTP server sans chiffrement : <code class="docutils literal notranslate"><span class="pre">smtp://username:password@smtp.example.com:25</span></code></p></li>
|
||||
<li><p>avec SSL: <code class="docutils literal notranslate"><span class="pre">smtp://username:password@smtp.example.com:465/?ssl=True</span></code></p></li>
|
||||
<li><p>avec STARTTLS: <code class="docutils literal notranslate"><span class="pre">smtp://username:password@smtp.example.com:587/?tls=True</span></code></p></li>
|
||||
<li><p>avec SSL : <code class="docutils literal notranslate"><span class="pre">smtp://username:password@smtp.example.com:465/?ssl=True</span></code></p></li>
|
||||
<li><p>avec STARTTLS : <code class="docutils literal notranslate"><span class="pre">smtp://username:password@smtp.example.com:587/?tls=True</span></code></p></li>
|
||||
</ul>
|
||||
<div class="admonition warning">
|
||||
<p class="admonition-title">Avertissement</p>
|
||||
@ -622,7 +622,7 @@
|
||||
<p><span class="versionmodified changed">Modifié dans la version 0.5.3.</span></p>
|
||||
</div>
|
||||
<div class="line-block">
|
||||
<div class="line">Les informations d’identification peuvent être omises: <code class="docutils literal notranslate"><span class="pre">smtp://smtp.example.com:25</span></code>.</div>
|
||||
<div class="line">Les informations d’identification peuvent être omises : <code class="docutils literal notranslate"><span class="pre">smtp://smtp.example.com:25</span></code>.</div>
|
||||
<div class="line">Si <code class="docutils literal notranslate"><span class="pre">:<port></span></code> est omis, the port par défaut est 25.</div>
|
||||
</div>
|
||||
<div class="admonition warning">
|
||||
@ -720,11 +720,11 @@ Commands:
|
||||
</div>
|
||||
<p>Les fournisseurs de données météo suivants sont pris en charge par <strong>FitTrackee</strong> :</p>
|
||||
<ul class="simple">
|
||||
<li><p><a class="reference external" href="https://www.visualcrossing.com">Visual Crossing</a> (<strong>note</strong>: les données historiques sont fournies sur une période d’une heure)</p></li>
|
||||
<li><p><a class="reference external" href="https://www.visualcrossing.com">Visual Crossing</a> (<strong>note</strong> : les données historiques sont fournies sur une période d’une heure)</p></li>
|
||||
</ul>
|
||||
<p>Pour configurer un fournisseur de données météo, initialiser les variables d’environnement suivantes :</p>
|
||||
<ul class="simple">
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">WEATHER_API_KEY</span></code>: clé d’API correspondant au fournisseur de données météo</p></li>
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">WEATHER_API_KEY</span></code> : clé d’API correspondant au fournisseur de données météo</p></li>
|
||||
</ul>
|
||||
<div class="versionchanged">
|
||||
<p><span class="versionmodified changed">Modifié dans la version 0.7.15.</span></p>
|
||||
@ -745,7 +745,7 @@ Commands:
|
||||
<div class="admonition note">
|
||||
<p class="admonition-title">Note</p>
|
||||
<div class="line-block">
|
||||
<div class="line">Méthode recommandée en production</div>
|
||||
<div class="line">Méthode recommandée en production.</div>
|
||||
</div>
|
||||
</div>
|
||||
<ul class="simple">
|
||||
@ -773,7 +773,7 @@ Commands:
|
||||
<ul class="simple">
|
||||
<li><p>Initialiser les variables d’environnement, cf. <a class="reference external" href="installation.html#environment-variables">Variables d’environnement</a></p></li>
|
||||
</ul>
|
||||
<p>Par exemple, copier et coller le fichier <code class="docutils literal notranslate"><span class="pre">.env</span></code> à partir de <code class="docutils literal notranslate"><span class="pre">.env.example</span></code> et activer le fichier</p>
|
||||
<p>Par exemple, copier et coller le fichier <code class="docutils literal notranslate"><span class="pre">.env</span></code> à partir de <code class="docutils literal notranslate"><span class="pre">.env.example</span></code> et activer le fichier.</p>
|
||||
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>$<span class="w"> </span>nano<span class="w"> </span>.env
|
||||
$<span class="w"> </span><span class="nb">source</span><span class="w"> </span>.env
|
||||
</pre></div>
|
||||
@ -791,7 +791,7 @@ $<span class="w"> </span><span class="nb">source</span><span class="w"> </span>.
|
||||
</pre></div>
|
||||
</div>
|
||||
<ul class="simple">
|
||||
<li><p>Démarrer les <em>workers</em> de la file d’attente des tâches si l’envoi des courriels est activé, avec l’interface de ligne de commandes de flask-dramatiq</p></li>
|
||||
<li><p>Démarrer les <em>workers</em> de la file d’attente des tâches si l’envoi des courriels est activé, avec l’interface de ligne de commandes de flask-dramatiq :</p></li>
|
||||
</ul>
|
||||
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>$<span class="w"> </span>flask<span class="w"> </span>worker<span class="w"> </span>--processes<span class="w"> </span><span class="m">2</span>
|
||||
</pre></div>
|
||||
@ -856,7 +856,7 @@ $<span class="w"> </span>make<span class="w"> </span>install-db
|
||||
</pre></div>
|
||||
</div>
|
||||
<ul class="simple">
|
||||
<li><p>Démarrer les <em>workers</em> dramatiq</p></li>
|
||||
<li><p>Démarrer les <em>workers</em> dramatiq :</p></li>
|
||||
</ul>
|
||||
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>$<span class="w"> </span>make<span class="w"> </span>run-workers
|
||||
</pre></div>
|
||||
@ -882,7 +882,7 @@ $<span class="w"> </span>make<span class="w"> </span>install-db
|
||||
</div>
|
||||
</div>
|
||||
<ul class="simple">
|
||||
<li><p>Télécharger la dernière version (à ce jour, la version v0.7.17):</p></li>
|
||||
<li><p>Télécharger la dernière version (à ce jour, la version v0.7.17) :</p></li>
|
||||
</ul>
|
||||
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>$<span class="w"> </span>wget<span class="w"> </span>https://github.com/SamR1/FitTrackee/archive/v0.7.17.tar.gz
|
||||
$<span class="w"> </span>tar<span class="w"> </span>-xzf<span class="w"> </span>v0.7.17.tar.gz
|
||||
@ -892,13 +892,13 @@ $<span class="w"> </span><span class="nb">cd</span><span class="w"> </span>FitTr
|
||||
</div>
|
||||
<ul class="simple">
|
||||
<li><p>Créer le fichier <strong>.env</strong> à partir de l’exemple et le mettre à jour (cf. <a class="reference external" href="installation.html#environment-variables">Variables d’environnement</a>).</p></li>
|
||||
<li><p>Installer l’environnement virtuel Python et tous les paquets nécessaires:</p></li>
|
||||
<li><p>Installer l’environnement virtuel Python et tous les paquets nécessaires :</p></li>
|
||||
</ul>
|
||||
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>$<span class="w"> </span>make<span class="w"> </span>install-python
|
||||
</pre></div>
|
||||
</div>
|
||||
<ul class="simple">
|
||||
<li><p>Initialiser la base de données (<strong>après avoir mis à jour</strong> <code class="docutils literal notranslate"><span class="pre">db/create.sql</span></code> <strong>pour changer les informations de connexion à la base de données</strong>):</p></li>
|
||||
<li><p>Initialiser la base de données (<strong>après avoir mis à jour</strong> <code class="docutils literal notranslate"><span class="pre">db/create.sql</span></code> <strong>pour changer les informations de connexion à la base de données</strong>) :</p></li>
|
||||
</ul>
|
||||
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>$<span class="w"> </span>make<span class="w"> </span>install-db
|
||||
</pre></div>
|
||||
@ -954,7 +954,7 @@ $<span class="w"> </span><span class="nb">source</span><span class="w"> </span>.
|
||||
</pre></div>
|
||||
</div>
|
||||
<ul class="simple">
|
||||
<li><p>Mettre à jour la base de données si nécessaire (voir le journal des changements pour les migrations)</p></li>
|
||||
<li><p>Mettre à jour la base de données si nécessaire (voir le journal des changements pour les migrations) :</p></li>
|
||||
</ul>
|
||||
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>$<span class="w"> </span>ftcli<span class="w"> </span>db<span class="w"> </span>upgrade
|
||||
</pre></div>
|
||||
@ -975,25 +975,25 @@ $<span class="w"> </span><span class="nb">source</span><span class="w"> </span>.
|
||||
</div>
|
||||
<ul class="simple">
|
||||
<li><p>Mettre à jour le fichier <strong>.env</strong> si nécessaire (cf. <a class="reference external" href="installation.html#environment-variables">Variables d’environnement</a>).</p></li>
|
||||
<li><p>Mettre à jour les paquets</p></li>
|
||||
<li><p>Mettre à jour les paquets :</p></li>
|
||||
</ul>
|
||||
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>$<span class="w"> </span>make<span class="w"> </span>install-dev
|
||||
</pre></div>
|
||||
</div>
|
||||
<ul class="simple">
|
||||
<li><p>Mettre à jour la base de données si nécessaire (voir le journal des changements pour les migrations)</p></li>
|
||||
<li><p>Mettre à jour la base de données si nécessaire (voir le journal des changements pour les migrations) :</p></li>
|
||||
</ul>
|
||||
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>$<span class="w"> </span>make<span class="w"> </span>upgrade-db
|
||||
</pre></div>
|
||||
</div>
|
||||
<ul class="simple">
|
||||
<li><p>Redémarrer le serveur</p></li>
|
||||
<li><p>Redémarrer le serveur :</p></li>
|
||||
</ul>
|
||||
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>$<span class="w"> </span>make<span class="w"> </span>serve
|
||||
</pre></div>
|
||||
</div>
|
||||
<ul class="simple">
|
||||
<li><p>Démarrer les <em>workers</em> dramatiq</p></li>
|
||||
<li><p>Démarrer les <em>workers</em> dramatiq :</p></li>
|
||||
</ul>
|
||||
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>$<span class="w"> </span>make<span class="w"> </span>run-workers
|
||||
</pre></div>
|
||||
@ -1014,13 +1014,13 @@ $<span class="w"> </span><span class="nb">cd</span><span class="w"> </span>FitTr
|
||||
</div>
|
||||
<ul class="simple">
|
||||
<li><p>Mettre à jour le fichier <strong>.env</strong> si nécessaire (cf. <a class="reference external" href="installation.html#environment-variables">Variables d’environnement</a>).</p></li>
|
||||
<li><p>Mettre à jour les paquets</p></li>
|
||||
<li><p>Mettre à jour les paquets :</p></li>
|
||||
</ul>
|
||||
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>$<span class="w"> </span>make<span class="w"> </span>install-dev
|
||||
</pre></div>
|
||||
</div>
|
||||
<ul class="simple">
|
||||
<li><p>Mettre à jour la base de données si nécessaire (voir le journal des changements pour les migrations)</p></li>
|
||||
<li><p>Mettre à jour la base de données si nécessaire (voir le journal des changements pour les migrations) :</p></li>
|
||||
</ul>
|
||||
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>$<span class="w"> </span>make<span class="w"> </span>upgrade-db
|
||||
</pre></div>
|
||||
@ -1041,9 +1041,9 @@ $<span class="w"> </span><span class="nb">cd</span><span class="w"> </span>FitTr
|
||||
<section id="deployment">
|
||||
<h2>Déploiement<a class="headerlink" href="#deployment" title="Lien permanent vers cette rubrique">#</a></h2>
|
||||
<p>Il y a plusieurs méthodes pour démarrer et servir l’application web <strong>FitTrackee</strong> et l’application de gestion de la file d’attente de tâches. Un des moyens est d’utiliser les services <strong>systemd</strong> et <strong>Nginx</strong> to proxy passer à <strong>Gunicorn</strong>.</p>
|
||||
<p>Exemples (à adapter selon la configuration de votre instance et votre système d’exploitation):</p>
|
||||
<p>Exemples (à adapter selon la configuration de votre instance et votre système d’exploitation) :</p>
|
||||
<ul class="simple">
|
||||
<li><p>pour l’application: <code class="docutils literal notranslate"><span class="pre">fittrackee.service</span></code></p></li>
|
||||
<li><p>pour l’application : <code class="docutils literal notranslate"><span class="pre">fittrackee.service</span></code></p></li>
|
||||
</ul>
|
||||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="p">[</span><span class="n">Unit</span><span class="p">]</span>
|
||||
<span class="n">Description</span><span class="o">=</span><span class="n">FitTrackee</span> <span class="n">service</span>
|
||||
@ -1089,7 +1089,7 @@ $<span class="w"> </span><span class="nb">cd</span><span class="w"> </span>FitTr
|
||||
<p>Plus d’informations sur le déploiement avec Gunicorn dans sa <a class="reference external" href="https://docs.gunicorn.org/en/stable/deploy.html">documentation</a>.</p>
|
||||
</div>
|
||||
<ul class="simple">
|
||||
<li><p>pour les <em>workers</em> de la file d’attente: <code class="docutils literal notranslate"><span class="pre">fittrackee_workers.service</span></code></p></li>
|
||||
<li><p>pour les <em>workers</em> de la file d’attente : <code class="docutils literal notranslate"><span class="pre">fittrackee_workers.service</span></code></p></li>
|
||||
</ul>
|
||||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="p">[</span><span class="n">Unit</span><span class="p">]</span>
|
||||
<span class="n">Description</span><span class="o">=</span><span class="n">FitTrackee</span> <span class="n">task</span> <span class="n">queue</span> <span class="n">service</span>
|
||||
@ -1172,7 +1172,7 @@ server {
|
||||
<div class="versionadded">
|
||||
<p><span class="versionmodified added">Nouveau dans la version 0.4.4.</span></p>
|
||||
</div>
|
||||
<p>A des fins d’évaluation, des fichiers Docker sont disponible, installant <strong>FitTrackee</strong> à partir des sources <strong>sources</strong>.</p>
|
||||
<p>A des fins d’évaluation, des fichiers Docker sont disponible, installant <strong>FitTrackee</strong> à partir des <strong>sources</strong>.</p>
|
||||
<ul class="simple">
|
||||
<li><p>Pour installer <strong>FitTrackee</strong> :</p></li>
|
||||
</ul>
|
||||
@ -1209,7 +1209,7 @@ $<span class="w"> </span>make<span class="w"> </span>docker-build
|
||||
</pre></div>
|
||||
</div>
|
||||
<ul class="simple">
|
||||
<li><p>pour démarrer <strong>Fittrackee</strong> (application et <em>workers</em> dramatiq):</p></li>
|
||||
<li><p>pour démarrer <strong>Fittrackee</strong> (application et <em>workers</em> dramatiq) :</p></li>
|
||||
</ul>
|
||||
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>$<span class="w"> </span>make<span class="w"> </span>docker-run-all
|
||||
</pre></div>
|
||||
@ -1233,7 +1233,7 @@ $<span class="w"> </span>make<span class="w"> </span>docker-build
|
||||
</pre></div>
|
||||
</div>
|
||||
<ul class="simple">
|
||||
<li><p>pour démarrer <strong>FitTrackee</strong> avec les outils de développement client:</p></li>
|
||||
<li><p>pour démarrer <strong>FitTrackee</strong> avec les outils de développement client :</p></li>
|
||||
</ul>
|
||||
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>$<span class="w"> </span>make<span class="w"> </span>docker-serve-client
|
||||
</pre></div>
|
||||
|
@ -248,8 +248,8 @@
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">profile:write</span></code> : accorde l’accès en écriture aux points d’entrée d’authentification/profil utilisateur,</p></li>
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">users:read</span></code> : accorde un accès en lecture aux points d’entrée des utilisateurs,</p></li>
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">users:write</span></code> : accorde un accès en écriture aux points d’entrée des utilisateurs,</p></li>
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">workouts:read</span></code>: accorde un accès en lecture aux points d’entrée associés aux séances,</p></li>
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">workouts:write</span></code>: accorde un accès en écriture aux points d’entrée associés aux séances,</p></li>
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">workouts:read</span></code> : accorde un accès en lecture aux points d’entrée associés aux séances,</p></li>
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">workouts:write</span></code> : accorde un accès en écriture aux points d’entrée associés aux séances.</p></li>
|
||||
</ul>
|
||||
</section>
|
||||
<section id="flow">
|
||||
@ -293,7 +293,7 @@
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">code_challenge_method</span></code> : méthode utilisée pour créer le challenge, par exemple « S256 »</p></li>
|
||||
</ul>
|
||||
<div class="line-block">
|
||||
<div class="line">Exemple pour PKCE:</div>
|
||||
<div class="line">Exemple pour PKCE :</div>
|
||||
<div class="line"><code class="docutils literal notranslate"><span class="pre">https://<FITTRACKEE_HOST>/profile/apps/authorize?response_type=code&client_id=<CLIENT_ID>&scope=profile%3Aread+workouts%3Awrite&state=<STATE>&code_challenge=<CODE_CHALLENGE>&code_challenge_method=S256</span></code></div>
|
||||
</div>
|
||||
</li>
|
||||
|
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -9,7 +9,7 @@ msgstr ""
|
||||
"Project-Id-Version: FitTrackee 0.7.17\n"
|
||||
"\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2023-06-21 19:44+0200\n"
|
||||
"POT-Creation-Date: 2023-06-24 08:20+0200\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
@ -425,10 +425,6 @@ msgstr ""
|
||||
msgid "Handle password reset request."
|
||||
msgstr ""
|
||||
|
||||
#: ../../<autoflask>:1
|
||||
msgid "If email sending is disabled, this endpoint is not available"
|
||||
msgstr ""
|
||||
|
||||
#: ../../<autoflask>:1
|
||||
msgid "``password reset request processed``"
|
||||
msgstr ""
|
||||
|
Binary file not shown.
@ -8,7 +8,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: FitTrackee 0.7.17\n"
|
||||
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
|
||||
"POT-Creation-Date: 2023-06-21 19:44+0200\n"
|
||||
"POT-Creation-Date: 2023-06-24 08:20+0200\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language: en\n"
|
||||
@ -445,10 +445,6 @@ msgstr ""
|
||||
msgid "Handle password reset request."
|
||||
msgstr ""
|
||||
|
||||
#: ../../<autoflask>:1
|
||||
msgid "If email sending is disabled, this endpoint is not available"
|
||||
msgstr ""
|
||||
|
||||
#: ../../<autoflask>:1
|
||||
msgid "``password reset request processed``"
|
||||
msgstr ""
|
||||
@ -5318,3 +5314,6 @@ msgstr ""
|
||||
#~ msgid "``workout created``"
|
||||
#~ msgstr ""
|
||||
|
||||
#~ msgid "If email sending is disabled, this endpoint is not available"
|
||||
#~ msgstr ""
|
||||
|
||||
|
Binary file not shown.
@ -8,7 +8,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: FitTrackee 0.7.17\n"
|
||||
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
|
||||
"POT-Creation-Date: 2023-06-21 19:44+0200\n"
|
||||
"POT-Creation-Date: 2023-06-24 08:20+0200\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language: fr\n"
|
||||
@ -37,11 +37,11 @@ msgstr ""
|
||||
|
||||
#: ../../<autoflask>:1
|
||||
msgid "**Example request**:"
|
||||
msgstr "**Exemple de requête**:"
|
||||
msgstr "**Exemple de requête** :"
|
||||
|
||||
#: ../../<autoflask>:1
|
||||
msgid "**Example responses**:"
|
||||
msgstr "**Exemple de réponse**:"
|
||||
msgstr "**Exemple de réponses** :"
|
||||
|
||||
#: ../../<autoflask>:1
|
||||
#, fuzzy
|
||||
@ -144,7 +144,7 @@ msgstr "Activer le compte utilisateur après l'inscription."
|
||||
|
||||
#: ../../<autoflask>:1
|
||||
msgid "**Example response**:"
|
||||
msgstr "**Exemple de réponse**:"
|
||||
msgstr "**Exemple de réponse** :"
|
||||
|
||||
#: ../../<autoflask>:1
|
||||
msgid "confirmation token"
|
||||
@ -174,7 +174,7 @@ msgstr ""
|
||||
|
||||
#: ../../<autoflask>:1
|
||||
msgid "User login."
|
||||
msgstr "Connexion de l'utilisateur"
|
||||
msgstr "Connexion de l'utilisateur."
|
||||
|
||||
#: ../../<autoflask>:1
|
||||
msgid "Only user with an active account can log in."
|
||||
@ -208,7 +208,7 @@ msgstr ""
|
||||
|
||||
#: ../../<autoflask>:1
|
||||
msgid "**Scope**: ``profile:read``"
|
||||
msgstr "**Scope**: ``profile:read``"
|
||||
msgstr "**Scope** : ``profile:read``"
|
||||
|
||||
#: ../../<autoflask>
|
||||
msgid "Request Headers"
|
||||
@ -242,7 +242,7 @@ msgstr "Modifier le profil de l'utilisateur authentifié."
|
||||
|
||||
#: ../../<autoflask>:1
|
||||
msgid "**Scope**: ``profile:write``"
|
||||
msgstr "**Scope**: ``profile:write``"
|
||||
msgstr "**Scope** : ``profile:write``"
|
||||
|
||||
#: ../../<autoflask>:1
|
||||
msgid "user first name"
|
||||
@ -250,7 +250,7 @@ msgstr "prénom de l'utilisateur"
|
||||
|
||||
#: ../../<autoflask>:1
|
||||
msgid "user last name"
|
||||
msgstr "nom de l'utilisateur"
|
||||
msgstr "nom de famille de l'utilisateur"
|
||||
|
||||
#: ../../<autoflask>:1
|
||||
msgid "user location"
|
||||
@ -263,7 +263,7 @@ msgstr "biographie de l'utilisateur"
|
||||
#: ../../<autoflask>:1
|
||||
#, python-format
|
||||
msgid "user birth date (format: ``%Y-%m-%d``)"
|
||||
msgstr "date de naissance de l'utilisateur (format: ``%Y-%m-%d``)"
|
||||
msgstr "date de naissance de l'utilisateur (format : ``%Y-%m-%d``)"
|
||||
|
||||
#: ../../<autoflask>:1
|
||||
msgid "``user profile updated``"
|
||||
@ -459,12 +459,6 @@ msgstr ""
|
||||
msgid "Handle password reset request."
|
||||
msgstr "Traiter les demandes de réinitialisation de mot de passe."
|
||||
|
||||
#: ../../<autoflask>:1
|
||||
msgid "If email sending is disabled, this endpoint is not available"
|
||||
msgstr ""
|
||||
"Si l'envoi de courriels est désactivé, ce point d'accès n'est pas "
|
||||
"disponible."
|
||||
|
||||
#: ../../<autoflask>:1
|
||||
msgid "``password reset request processed``"
|
||||
msgstr ""
|
||||
@ -483,7 +477,7 @@ msgstr "Modification de mot de passe"
|
||||
|
||||
#: ../../<autoflask>:1
|
||||
msgid "Email change:"
|
||||
msgstr "Changement d'adresse électronique"
|
||||
msgstr "Changement d'adresse électronique :"
|
||||
|
||||
#: ../../<autoflask>:1
|
||||
msgid "one to the current address to inform user"
|
||||
@ -619,7 +613,7 @@ msgstr "nom du fichier et sa taille (en octets) lorsque l'export est réussi"
|
||||
|
||||
#: ../../<autoflask>:1
|
||||
msgid "if a request exists:"
|
||||
msgstr "si une requête existe"
|
||||
msgstr "si une requête existe :"
|
||||
|
||||
#: ../../<autoflask>:1
|
||||
#, fuzzy
|
||||
@ -672,11 +666,11 @@ msgstr "Mettre à jour de la configuration de l'application."
|
||||
|
||||
#: ../../<autoflask>:1
|
||||
msgid "Authenticated user must be an admin."
|
||||
msgstr "L'utilisateur authentifié doit avoir des droits d'administration"
|
||||
msgstr "L'utilisateur authentifié doit avoir des droits d'administration."
|
||||
|
||||
#: ../../<autoflask>:1
|
||||
msgid "**Scope**: ``application:write``"
|
||||
msgstr "**Scope**: ``application:write``"
|
||||
msgstr "**Scope** : ``application:write``"
|
||||
|
||||
#: ../../<autoflask>:1
|
||||
msgid "instance information"
|
||||
@ -735,7 +729,7 @@ msgstr "point d'accès de contrôle"
|
||||
|
||||
#: ../source/api/index.rst:4
|
||||
msgid "Endpoints:"
|
||||
msgstr "Points d'accès"
|
||||
msgstr "Points d'accès :"
|
||||
|
||||
#: ../source/api/index.rst:2
|
||||
msgid "API documentation"
|
||||
@ -837,7 +831,7 @@ msgstr "Supprimer un client OAuth2"
|
||||
|
||||
#: ../../<autoflask>:1
|
||||
msgid "Revoke all tokens associated to an OAuth2 client (app)."
|
||||
msgstr "Révoquer tous les tokens associés à un client OAuth2 "
|
||||
msgstr "Révoquer tous les tokens associés à un client OAuth2."
|
||||
|
||||
#: ../../<autoflask>:1
|
||||
msgid ""
|
||||
@ -897,7 +891,7 @@ msgstr "erreurs renvoyées par la librairie Authlib"
|
||||
|
||||
#: ../../<autoflask>:1
|
||||
msgid "Issue or refresh token for a given OAuth2 client (app)."
|
||||
msgstr "Délivrer ou rafraîchir un jeton pour un client OAuth2 donné"
|
||||
msgstr "Délivrer ou rafraîchir un jeton pour un client OAuth2 donné."
|
||||
|
||||
#: ../../<autoflask>:1
|
||||
msgid "OAuth2 client secret"
|
||||
@ -928,7 +922,7 @@ msgstr "jeton de rafraîchissement (pour le rafraîchissement du jeton)"
|
||||
|
||||
#: ../../<autoflask>:1
|
||||
msgid "Revoke a token for a given OAuth2 client (app)."
|
||||
msgstr "Révoquer un jeton pour un client OAuth2 donné"
|
||||
msgstr "Révoquer un jeton pour un client OAuth2 donné."
|
||||
|
||||
#: ../../<autoflask>:1
|
||||
msgid "access token to revoke"
|
||||
@ -948,27 +942,27 @@ msgstr "Les types de records suivants sont disponibles :"
|
||||
|
||||
#: ../../<autoflask>:1
|
||||
msgid "average speed (record_type: ``AS``)"
|
||||
msgstr "vitesse moyenne (record_type: ``AS``)"
|
||||
msgstr "vitesse moyenne (record_type : ``AS``)"
|
||||
|
||||
#: ../../<autoflask>:1
|
||||
msgid "farthest distance (record_type: ``FD``)"
|
||||
msgstr "distance la plus elevée (record_type: ``FD``)"
|
||||
msgstr "distance la plus elevée (record_type : ``FD``)"
|
||||
|
||||
#: ../../<autoflask>:1
|
||||
msgid "highest ascent (record_type: ``HA``)"
|
||||
msgstr "dénivelé le plus élevé (record_type: ``HA``)"
|
||||
msgstr "dénivelé le plus élevé (record_type : ``HA``)"
|
||||
|
||||
#: ../../<autoflask>:1
|
||||
msgid "longest duration (record_type: ``LD``)"
|
||||
msgstr "durée la plus longue (record_type: ``LD``)"
|
||||
msgstr "durée la plus longue (record_type : ``LD``)"
|
||||
|
||||
#: ../../<autoflask>:1
|
||||
msgid "maximum speed (record_type: ``MS``)"
|
||||
msgstr "vitesse maximale (record_type: ``MS``)"
|
||||
msgstr "vitesse maximale (record_type : ``MS``)"
|
||||
|
||||
#: ../../<autoflask>:1
|
||||
msgid "**Scope**: ``workouts:read``"
|
||||
msgstr "**Scope**: ``workouts:read``"
|
||||
msgstr "**Scope** : ``workouts:read``"
|
||||
|
||||
#: ../../<autoflask>:1
|
||||
msgid "returning records"
|
||||
@ -988,11 +982,11 @@ msgstr "Obtenir tous les sports"
|
||||
|
||||
#: ../../<autoflask>:1
|
||||
msgid "for non admin user:"
|
||||
msgstr "pour un utilisateur non admin"
|
||||
msgstr "pour un utilisateur non admin :"
|
||||
|
||||
#: ../../<autoflask>:1
|
||||
msgid "for admin user:"
|
||||
msgstr "pour un administrateur"
|
||||
msgstr "pour un administrateur :"
|
||||
|
||||
#: ../../<autoflask>:1
|
||||
msgid "Get a sport"
|
||||
@ -1000,11 +994,11 @@ msgstr "Obtenir un sport"
|
||||
|
||||
#: ../../<autoflask>:1
|
||||
msgid "success for non admin user:"
|
||||
msgstr "succès pour un utilisateur non admin:"
|
||||
msgstr "succès pour un utilisateur non admin :"
|
||||
|
||||
#: ../../<autoflask>:1
|
||||
msgid "success for admin user:"
|
||||
msgstr "succès pour un administrateur"
|
||||
msgstr "succès pour un administrateur :"
|
||||
|
||||
#: ../../<autoflask>:1
|
||||
msgid "sport not found:"
|
||||
@ -1016,11 +1010,11 @@ msgstr ""
|
||||
|
||||
#: ../../<autoflask>:1
|
||||
msgid "Update a sport."
|
||||
msgstr "Modifier un sport"
|
||||
msgstr "Modifier un sport."
|
||||
|
||||
#: ../../<autoflask>:1
|
||||
msgid "**Scope**: ``workouts:write``"
|
||||
msgstr "**Scope**: ``workouts:write``"
|
||||
msgstr "**Scope** : ``workouts:write``"
|
||||
|
||||
#: ../../<autoflask>:1
|
||||
msgid "sport active status"
|
||||
@ -1038,15 +1032,15 @@ msgstr "Statistiques"
|
||||
msgid "Get workouts statistics for a user by time."
|
||||
msgstr ""
|
||||
"Obtenir des statistiques sur les séances d'entraînement pour un "
|
||||
"utilisateur par durée"
|
||||
"utilisateur par durée."
|
||||
|
||||
#: ../../<autoflask>:1
|
||||
msgid "**Example requests**:"
|
||||
msgstr "**Exemple de requêtes**:"
|
||||
msgstr "**Exemple de requêtes** :"
|
||||
|
||||
#: ../../<autoflask>:1
|
||||
msgid "with parameters:"
|
||||
msgstr "avec des paramètres"
|
||||
msgstr "avec des paramètres :"
|
||||
|
||||
#: ../../<autoflask>:1
|
||||
msgid "no workouts:"
|
||||
@ -1059,20 +1053,20 @@ msgstr "nom d'utilisateur"
|
||||
#: ../../<autoflask>:1
|
||||
#, python-format
|
||||
msgid "start date (format: ``%Y-%m-%d``)"
|
||||
msgstr "date de début (format: ``%Y-%m-%d``)"
|
||||
msgstr "date de début (format : ``%Y-%m-%d``)"
|
||||
|
||||
#: ../../<autoflask>:1
|
||||
#, python-format
|
||||
msgid "end date (format: ``%Y-%m-%d``)"
|
||||
msgstr "date de fin (format: ``%Y-%m-%d``)"
|
||||
msgstr "date de fin (format : ``%Y-%m-%d``)"
|
||||
|
||||
#: ../../<autoflask>:1
|
||||
msgid ""
|
||||
"time frame: - ``week``: week starting Sunday - ``weekm``: week starting "
|
||||
"Monday - ``month``: month - ``year``: year (default)"
|
||||
msgstr ""
|
||||
"période de temps : - ``week``: semaine commençant le dimanche - "
|
||||
"``weekm``: semaine commençant le lundi - ``month``: mois - ``year``: "
|
||||
"période de temps : - ``week`` : semaine commençant le dimanche - "
|
||||
"``weekm`` : semaine commençant le lundi - ``month`` : mois - ``year`` : "
|
||||
"année (default)"
|
||||
|
||||
#: ../../<autoflask>:1
|
||||
@ -1081,19 +1075,19 @@ msgstr "période de temps :"
|
||||
|
||||
#: ../../<autoflask>:1
|
||||
msgid "``week``: week starting Sunday"
|
||||
msgstr "``week``: semaine commençant le dimanche"
|
||||
msgstr "``week`` : semaine commençant le dimanche"
|
||||
|
||||
#: ../../<autoflask>:1
|
||||
msgid "``weekm``: week starting Monday"
|
||||
msgstr "``weekm``: semaine commençant le lundi"
|
||||
msgstr "``weekm`` : semaine commençant le lundi"
|
||||
|
||||
#: ../../<autoflask>:1
|
||||
msgid "``month``: month"
|
||||
msgstr "``month``: mois"
|
||||
msgstr "``month`` : mois"
|
||||
|
||||
#: ../../<autoflask>:1
|
||||
msgid "``year``: year (default)"
|
||||
msgstr "``year``: année (default)"
|
||||
msgstr "``year`` : année (default)"
|
||||
|
||||
#: ../../<autoflask>:1
|
||||
msgid "``user does not exist``"
|
||||
@ -1112,7 +1106,7 @@ msgstr ""
|
||||
|
||||
#: ../../<autoflask>:1
|
||||
msgid "with sport id:"
|
||||
msgstr "avec l'identifiant du sport"
|
||||
msgstr "avec l'identifiant du sport :"
|
||||
|
||||
#: ../../<autoflask>:1
|
||||
msgid "- ``user does not exist`` - ``sport does not exist``"
|
||||
@ -1142,7 +1136,7 @@ msgstr ""
|
||||
|
||||
#: ../../<autoflask>:1
|
||||
msgid "**Scope**: ``users:read``"
|
||||
msgstr "**Scope**: ``users:read``"
|
||||
msgstr "**Scope** : ``users:read``"
|
||||
|
||||
#: ../../<autoflask>:1
|
||||
msgid "with some query parameters:"
|
||||
@ -1238,7 +1232,7 @@ msgstr ""
|
||||
|
||||
#: ../../<autoflask>:1
|
||||
msgid "**Scope**: ``users:write``"
|
||||
msgstr "**Scope**: ``users:write``"
|
||||
msgstr "**Scope** : ``users:write``"
|
||||
|
||||
#: ../../<autoflask>:1
|
||||
msgid "activate user account"
|
||||
@ -1246,7 +1240,7 @@ msgstr "activer le compte utilisateur"
|
||||
|
||||
#: ../../<autoflask>:1
|
||||
msgid "does the user have administrator rights"
|
||||
msgstr "l'utilisateur dispose-t-il de droits d'administration ?"
|
||||
msgstr "l'utilisateur dispose-t-il de droits d'administration"
|
||||
|
||||
#: ../../<autoflask>:1
|
||||
msgid "new user email"
|
||||
@ -1336,11 +1330,11 @@ msgstr "distance maximale"
|
||||
|
||||
#: ../../<autoflask>:1
|
||||
msgid "minimal duration (format: ``%H:%M``)"
|
||||
msgstr "durée minimale (format: ``%H:%M``)"
|
||||
msgstr "durée minimale (format : ``%H:%M``)"
|
||||
|
||||
#: ../../<autoflask>:1
|
||||
msgid "maximal distance (format: ``%H:%M``)"
|
||||
msgstr "distance maximale (format: ``%H:%M``)"
|
||||
msgstr "distance maximale (format : ``%H:%M``)"
|
||||
|
||||
#: ../../<autoflask>:1
|
||||
msgid "minimal average speed"
|
||||
@ -1402,7 +1396,7 @@ msgstr ""
|
||||
msgid "Get chart data from a workout gpx file, to display it with Chart.js."
|
||||
msgstr ""
|
||||
"Récupérer les données d'une séance avec gpx pour les afficher avec "
|
||||
"Chart.js"
|
||||
"Chart.js."
|
||||
|
||||
#: ../../<autoflask>:1
|
||||
msgid "segment id"
|
||||
@ -1448,7 +1442,7 @@ msgstr "index de la tuile sur l'axe y de la carte"
|
||||
|
||||
#: ../../<autoflask>:1
|
||||
msgid "Status codes are status codes returned by tile server"
|
||||
msgstr "Les codes d'état sont des codes d'état renvoyés par le serveur de tuiles."
|
||||
msgstr "Les codes d'état sont des codes d'état renvoyés par le serveur de tuiles"
|
||||
|
||||
#: ../../<autoflask>:1
|
||||
msgid "Download gpx file."
|
||||
@ -1475,9 +1469,8 @@ msgid ""
|
||||
"sport id and notes (example: ``{\"sport_id\": 1, \"notes\": \"\"}``). "
|
||||
"Double quotes in notes must be escaped."
|
||||
msgstr ""
|
||||
"l'identifiant du sport et les notes (exemple : ``{\"sport_id\": 1, "
|
||||
"\"notes\": \"\"}``). Les guillemets doubles dans les notes doivent être "
|
||||
"échappés."
|
||||
"identifiant du sport et notes (exemple : ``{\"sport_id\": 1, \"notes\": "
|
||||
"\"\"}``). Les guillemets doubles dans les notes doivent être échappés."
|
||||
|
||||
#: ../../<autoflask>:1
|
||||
msgid "workout created"
|
||||
@ -1520,12 +1513,12 @@ msgstr "titre de la séance (non obligatoire)"
|
||||
#, python-format
|
||||
msgid "workout date, in user timezone (format: ``%Y-%m-%d %H:%M``)"
|
||||
msgstr ""
|
||||
"date de la séance, dans le fuseau horaire de l'utilisateur (format: "
|
||||
"date de la séance, dans le fuseau horaire de l'utilisateur (format : "
|
||||
"``%Y-%m-%d %H:%M``)"
|
||||
|
||||
#: ../../<autoflask>:1
|
||||
msgid "Update a workout."
|
||||
msgstr "Mettre à jour une séance"
|
||||
msgstr "Mettre à jour une séance."
|
||||
|
||||
#: ../../<autoflask>:1
|
||||
msgid ""
|
||||
@ -1565,7 +1558,7 @@ msgid ""
|
||||
"workout date in user timezone (format: ``%Y-%m-%d %H:%M``) (only for "
|
||||
"workout without gpx)"
|
||||
msgstr ""
|
||||
"date de la séance dans le fuseau horaire de l'utilisateur (format: "
|
||||
"date de la séance dans le fuseau horaire de l'utilisateur (format : "
|
||||
"``%Y-%m-%d %H:%M``) (seulement pour les séances sans gpx)"
|
||||
|
||||
#: ../../<autoflask>:1
|
||||
@ -1574,7 +1567,7 @@ msgstr "séance mise à jour"
|
||||
|
||||
#: ../../<autoflask>:1
|
||||
msgid "Delete a workout."
|
||||
msgstr "Supprimer la séance"
|
||||
msgstr "Supprimer la séance."
|
||||
|
||||
#: ../../<autoflask>:1
|
||||
msgid "workout deleted"
|
||||
@ -3296,7 +3289,7 @@ msgstr "``ftcli db upgrade``"
|
||||
|
||||
#: ../source/cli.rst:42
|
||||
msgid "Apply migrations."
|
||||
msgstr "Appliquer les migrations"
|
||||
msgstr "Appliquer les migrations."
|
||||
|
||||
#: ../source/cli.rst:49
|
||||
msgid "``ftcli oauth2 clean``"
|
||||
@ -3374,7 +3367,7 @@ msgstr "``USERNAME``"
|
||||
|
||||
#: ../source/cli.rst:122 ../source/cli.rst:162
|
||||
msgid "Username."
|
||||
msgstr "Nom de l'utilisateur"
|
||||
msgstr "Nom de l'utilisateur."
|
||||
|
||||
#: ../source/cli.rst:123
|
||||
msgid "``--email EMAIL``"
|
||||
@ -3501,7 +3494,7 @@ msgstr ""
|
||||
|
||||
#: ../source/features.rst:27
|
||||
msgid "14 sports are supported:"
|
||||
msgstr "14 sports sont pris en charge:"
|
||||
msgstr "14 sports sont pris en charge :"
|
||||
|
||||
#: ../source/features.rst:17
|
||||
msgid "Cycling (Virtual) (*new in 0.7.3*)"
|
||||
@ -3543,7 +3536,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"(*nouveau dans la version in 0.5.0*) Le seuil de vitesse arrêté utilisé "
|
||||
"par `gpxpy <https://github.com/tkrajina/gpxpy>`_ n'est plus la valeur par"
|
||||
" défaut pour les sports suivants (0.1 km/h au lieu de 1 km/h):"
|
||||
" défaut pour les sports suivants (0.1 km/h au lieu de 1 km/h) :"
|
||||
|
||||
#: ../source/features.rst:31
|
||||
msgid "Mountaineering"
|
||||
@ -3587,7 +3580,7 @@ msgstr ""
|
||||
|
||||
#: ../source/features.rst
|
||||
msgid "Only gpx files with time are supported."
|
||||
msgstr "Seuls les fichiers gpx avec l'heure sont pris en charge"
|
||||
msgstr "Seuls les fichiers gpx avec l'heure sont pris en charge."
|
||||
|
||||
#: ../source/features.rst
|
||||
msgid ""
|
||||
@ -3820,15 +3813,15 @@ msgid ""
|
||||
msgstr ""
|
||||
"L'utilisateur peut choisir entre le système métrique et le système "
|
||||
"impérial pour la distance, l'affichage de l'altitude et de la vitesse "
|
||||
"(*nouveau dans la version 0.5.0*)."
|
||||
"(*nouveau dans la version 0.5.0*)"
|
||||
|
||||
#: ../source/features.rst:107
|
||||
msgid ""
|
||||
"A user can choose to display or hide ascent records and total on "
|
||||
"Dashboard (*new in 0.6.11*)"
|
||||
msgstr ""
|
||||
"Un utilisateur peut choisir d'afficher ou cacher les records et le total"
|
||||
" de dénivelé positif sur le tableau de bord (*nouveau dans la version "
|
||||
"Un utilisateur peut choisir d'afficher ou cacher les records et le total "
|
||||
"de dénivelé positif sur le tableau de bord (*nouveau dans la version "
|
||||
"0.6.11*)"
|
||||
|
||||
#: ../source/features.rst:108
|
||||
@ -3866,7 +3859,7 @@ msgstr ""
|
||||
msgid "A user can set sport preferences (*new in 0.5.0*):"
|
||||
msgstr ""
|
||||
"Un utilisateur peut définir des préférences en matière de sport (*nouveau"
|
||||
" dans la version 0.5.0*):"
|
||||
" dans la version 0.5.0*) :"
|
||||
|
||||
#: ../source/features.rst:116
|
||||
msgid "change sport color (used for sport image and charts)"
|
||||
@ -4151,11 +4144,13 @@ msgid ""
|
||||
msgstr ""
|
||||
"Etat d'avancement de la traduction sur `Weblate "
|
||||
"<https://hosted.weblate.org/engage/fittrackee/>`__ (peut différer de la "
|
||||
"version publiée):"
|
||||
"version publiée) :"
|
||||
|
||||
#: ../source/features.rst:211
|
||||
msgid "Polish is not yet available in **FitTrackee** interface."
|
||||
msgstr "Le polonais n'est pas encore disponible dans l'interface de **FitTrackee**"
|
||||
msgstr ""
|
||||
"Le Polonais n'est pas encore disponible dans l'interface de "
|
||||
"**FitTrackee**."
|
||||
|
||||
#: ../source/features.rst:214
|
||||
msgid "Screenshots"
|
||||
@ -4434,7 +4429,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Si l'inscription des utilisateurs est activé, il est recommandé de "
|
||||
"configurer un fournisseur SMTP pour l'envoi des courriels et les demandes"
|
||||
" d'export de données"
|
||||
" d'export de données."
|
||||
|
||||
#: ../source/installation.rst
|
||||
msgid ""
|
||||
@ -4475,7 +4470,7 @@ msgstr ""
|
||||
|
||||
#: ../source/installation.rst:57
|
||||
msgid "Name of the module to import at flask run."
|
||||
msgstr "Nom du module à importer au démarrage de Flask"
|
||||
msgstr "Nom du module à importer au démarrage de Flask."
|
||||
|
||||
#: ../source/installation.rst:58
|
||||
msgid ""
|
||||
@ -4487,7 +4482,7 @@ msgstr ""
|
||||
|
||||
#: ../source/installation.rst:63
|
||||
msgid "**FitTrackee** host."
|
||||
msgstr "Hôte **FitTrackee** "
|
||||
msgstr "Hôte **FitTrackee**."
|
||||
|
||||
#: ../source/installation.rst
|
||||
msgid "default"
|
||||
@ -4499,7 +4494,7 @@ msgstr "127.0.0.1"
|
||||
|
||||
#: ../source/installation.rst:70
|
||||
msgid "**FitTrackee** port."
|
||||
msgstr "Port de l'application web **FitTrackee**"
|
||||
msgstr "Port de l'application web **FitTrackee**."
|
||||
|
||||
#: ../source/installation.rst:72
|
||||
msgid "5000"
|
||||
@ -4507,7 +4502,7 @@ msgstr "5000"
|
||||
|
||||
#: ../source/installation.rst:77
|
||||
msgid "**FitTrackee** configuration."
|
||||
msgstr "Configuration de **FitTrackee**"
|
||||
msgstr "Configuration de **FitTrackee**."
|
||||
|
||||
#: ../source/installation.rst:79
|
||||
msgid "fittrackee.config.ProductionConfig"
|
||||
@ -4523,11 +4518,11 @@ msgstr ""
|
||||
msgid "Use a strong secret key. This key is used in JWT generation."
|
||||
msgstr ""
|
||||
"Utiliser une clé secrète forte. Cette clé est utilisée pour la génération"
|
||||
" des jetons JWT"
|
||||
" des jetons JWT."
|
||||
|
||||
#: ../source/installation.rst:91
|
||||
msgid "Number of workers spawned by **Gunicorn**."
|
||||
msgstr "Nombre de _workers_ lancés par **Gunicorn**"
|
||||
msgstr "Nombre de _workers_ lancés par **Gunicorn**."
|
||||
|
||||
#: ../source/installation.rst:93
|
||||
msgid "1"
|
||||
@ -4556,7 +4551,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Dans le cas d'une installation avec PyPI, le répertoire sera localisé "
|
||||
"dans le répertoire de l'environnement virtuel Python si la variable n'est"
|
||||
" pas initialisée"
|
||||
" pas initialisée."
|
||||
|
||||
#: ../source/installation.rst:117
|
||||
msgid ""
|
||||
@ -4783,11 +4778,13 @@ msgstr ""
|
||||
|
||||
#: ../source/installation.rst:257
|
||||
msgid "with SSL: ``smtp://username:password@smtp.example.com:465/?ssl=True``"
|
||||
msgstr "avec SSL: ``smtp://username:password@smtp.example.com:465/?ssl=True``"
|
||||
msgstr "avec SSL : ``smtp://username:password@smtp.example.com:465/?ssl=True``"
|
||||
|
||||
#: ../source/installation.rst:258
|
||||
msgid "with STARTTLS: ``smtp://username:password@smtp.example.com:587/?tls=True``"
|
||||
msgstr "avec STARTTLS: ``smtp://username:password@smtp.example.com:587/?tls=True``"
|
||||
msgstr ""
|
||||
"avec STARTTLS : "
|
||||
"``smtp://username:password@smtp.example.com:587/?tls=True``"
|
||||
|
||||
#: ../source/installation.rst
|
||||
#, fuzzy
|
||||
@ -4799,7 +4796,7 @@ msgstr ""
|
||||
#: ../source/installation.rst:266
|
||||
msgid "Credentials can be omitted: ``smtp://smtp.example.com:25``."
|
||||
msgstr ""
|
||||
"Les informations d'identification peuvent être omises: "
|
||||
"Les informations d'identification peuvent être omises : "
|
||||
"``smtp://smtp.example.com:25``."
|
||||
|
||||
#: ../source/installation.rst:267
|
||||
@ -5026,7 +5023,7 @@ msgid ""
|
||||
"`Visual Crossing <https://www.visualcrossing.com>`__ (**note**: "
|
||||
"historical data are provided on hourly period)"
|
||||
msgstr ""
|
||||
"`Visual Crossing <https://www.visualcrossing.com>`__ (**note**: les "
|
||||
"`Visual Crossing <https://www.visualcrossing.com>`__ (**note** : les "
|
||||
"données historiques sont fournies sur une période d'une heure)"
|
||||
|
||||
#: ../source/installation.rst:360
|
||||
@ -5038,7 +5035,7 @@ msgstr ""
|
||||
#: ../source/installation.rst:362
|
||||
msgid "``WEATHER_API_KEY``: the key to the corresponding weather provider"
|
||||
msgstr ""
|
||||
"``WEATHER_API_KEY``: clé d'API correspondant au fournisseur de données "
|
||||
"``WEATHER_API_KEY`` : clé d'API correspondant au fournisseur de données "
|
||||
"météo"
|
||||
|
||||
#: ../source/installation.rst:367
|
||||
@ -5063,7 +5060,7 @@ msgstr "A partir de PyPI"
|
||||
|
||||
#: ../source/installation.rst
|
||||
msgid "Recommended way on production."
|
||||
msgstr "Méthode recommandée en production"
|
||||
msgstr "Méthode recommandée en production."
|
||||
|
||||
#: ../source/installation.rst:382
|
||||
msgid "Create and activate a virtualenv"
|
||||
@ -5103,7 +5100,7 @@ msgid ""
|
||||
"source the file."
|
||||
msgstr ""
|
||||
"Par exemple, copier et coller le fichier ``.env`` à partir de "
|
||||
"``.env.example`` et activer le fichier"
|
||||
"``.env.example`` et activer le fichier."
|
||||
|
||||
#: ../source/installation.rst:412
|
||||
msgid "Initialize database schema"
|
||||
@ -5120,7 +5117,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Démarrer les *workers* de la file d'attente des tâches si l'envoi des "
|
||||
"courriels est activé, avec l'interface de ligne de commandes de flask-"
|
||||
"dramatiq"
|
||||
"dramatiq :"
|
||||
|
||||
#: ../source/installation.rst
|
||||
msgid ""
|
||||
@ -5202,7 +5199,7 @@ msgstr "Démarrer le serveur et le client :"
|
||||
|
||||
#: ../source/installation.rst:485 ../source/installation.rst:621
|
||||
msgid "Run dramatiq workers:"
|
||||
msgstr "Démarrer les *workers* dramatiq"
|
||||
msgstr "Démarrer les *workers* dramatiq :"
|
||||
|
||||
#: ../source/installation.rst:491
|
||||
msgid "Open http://localhost:3000 and register"
|
||||
@ -5220,11 +5217,11 @@ msgstr ""
|
||||
|
||||
#: ../source/installation.rst:508
|
||||
msgid "Download the last release (for now, it is the release v0.7.17):"
|
||||
msgstr "Télécharger la dernière version (à ce jour, la version v0.7.17):"
|
||||
msgstr "Télécharger la dernière version (à ce jour, la version v0.7.17) :"
|
||||
|
||||
#: ../source/installation.rst:520
|
||||
msgid "Install Python virtualenv and all related packages:"
|
||||
msgstr "Installer l'environnement virtuel Python et tous les paquets nécessaires:"
|
||||
msgstr "Installer l'environnement virtuel Python et tous les paquets nécessaires :"
|
||||
|
||||
#: ../source/installation.rst:526
|
||||
msgid ""
|
||||
@ -5233,7 +5230,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Initialiser la base de données (**après avoir mis à jour** "
|
||||
"``db/create.sql`` **pour changer les informations de connexion à la base "
|
||||
"de données**):"
|
||||
"de données**) :"
|
||||
|
||||
#: ../source/installation.rst:533
|
||||
msgid "Start the server and dramatiq workers:"
|
||||
@ -5281,14 +5278,14 @@ msgstr "Mettre à jour avec pip"
|
||||
msgid ""
|
||||
"Update environment variables if needed and source environment variables "
|
||||
"file"
|
||||
msgstr "Mettre à jour les variables d'environnements si nécessaire et les activer "
|
||||
msgstr "Mettre à jour les variables d'environnements si nécessaire et les activer"
|
||||
|
||||
#: ../source/installation.rst:580 ../source/installation.rst:609
|
||||
#: ../source/installation.rst:651
|
||||
msgid "Upgrade database if needed (see changelog for migrations):"
|
||||
msgstr ""
|
||||
"Mettre à jour la base de données si nécessaire (voir le journal des "
|
||||
"changements pour les migrations)"
|
||||
"changements pour les migrations) :"
|
||||
|
||||
#: ../source/installation.rst:586
|
||||
msgid ""
|
||||
@ -5312,11 +5309,11 @@ msgstr ""
|
||||
|
||||
#: ../source/installation.rst:603 ../source/installation.rst:645
|
||||
msgid "Upgrade packages:"
|
||||
msgstr "Mettre à jour les paquets"
|
||||
msgstr "Mettre à jour les paquets :"
|
||||
|
||||
#: ../source/installation.rst:615
|
||||
msgid "Restart the server:"
|
||||
msgstr "Redémarrer le serveur"
|
||||
msgstr "Redémarrer le serveur :"
|
||||
|
||||
#: ../source/installation.rst:628
|
||||
msgid "Prod environment"
|
||||
@ -5363,11 +5360,11 @@ msgid ""
|
||||
" system):"
|
||||
msgstr ""
|
||||
"Exemples (à adapter selon la configuration de votre instance et votre "
|
||||
"système d'exploitation):"
|
||||
"système d'exploitation) :"
|
||||
|
||||
#: ../source/installation.rst:675
|
||||
msgid "for application: ``fittrackee.service``"
|
||||
msgstr "pour l'application: ``fittrackee.service``"
|
||||
msgstr "pour l'application : ``fittrackee.service``"
|
||||
|
||||
#: ../source/installation.rst:715
|
||||
msgid ""
|
||||
@ -5390,7 +5387,7 @@ msgstr ""
|
||||
|
||||
#: ../source/installation.rst:720
|
||||
msgid "for task queue workers: ``fittrackee_workers.service``"
|
||||
msgstr "pour les *workers* de la file d'attente: ``fittrackee_workers.service``"
|
||||
msgstr "pour les *workers* de la file d'attente : ``fittrackee_workers.service``"
|
||||
|
||||
#: ../source/installation.rst:755
|
||||
msgid "**Nginx** configuration:"
|
||||
@ -5416,7 +5413,7 @@ msgid ""
|
||||
"**FitTrackee** from **sources**."
|
||||
msgstr ""
|
||||
"A des fins d'évaluation, des fichiers Docker sont disponible, installant "
|
||||
"**FitTrackee** à partir des sources **sources**."
|
||||
"**FitTrackee** à partir des **sources**."
|
||||
|
||||
#: ../source/installation.rst:806
|
||||
msgid "To install **FitTrackee**:"
|
||||
@ -5444,7 +5441,7 @@ msgstr "Pour arrêter **Fittrackee** :"
|
||||
|
||||
#: ../source/installation.rst:840
|
||||
msgid "To start **Fittrackee** (application and dramatiq workers):"
|
||||
msgstr "pour démarrer **Fittrackee** (application et *workers* dramatiq):"
|
||||
msgstr "pour démarrer **Fittrackee** (application et *workers* dramatiq) :"
|
||||
|
||||
#: ../source/installation.rst:847
|
||||
msgid "To run shell inside **Fittrackee** container:"
|
||||
@ -5460,7 +5457,7 @@ msgstr "une étape additionnelle est nécessaire pour installer `fittrackee_clie
|
||||
|
||||
#: ../source/installation.rst:865
|
||||
msgid "to start **FitTrackee** with client dev tools:"
|
||||
msgstr "pour démarrer **FitTrackee** avec les outils de développement client:"
|
||||
msgstr "pour démarrer **FitTrackee** avec les outils de développement client :"
|
||||
|
||||
#: ../source/installation.rst:871
|
||||
msgid "Open http://localhost:3000"
|
||||
@ -5558,7 +5555,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"``application:write`` : permet d'accéder en écriture à la configuration "
|
||||
"de l'application (uniquement pour les utilisateurs ayant des droits "
|
||||
"d'administration), "
|
||||
"d'administration),"
|
||||
|
||||
#: ../source/oauth.rst:29
|
||||
msgid "``profile:read``: grants read access to auth endpoints,"
|
||||
@ -5587,14 +5584,14 @@ msgstr ""
|
||||
#: ../source/oauth.rst:33
|
||||
msgid "``workouts:read``: grants read access to workouts-related endpoints,"
|
||||
msgstr ""
|
||||
"``workouts:read``: accorde un accès en lecture aux points d'entrée "
|
||||
"``workouts:read`` : accorde un accès en lecture aux points d'entrée "
|
||||
"associés aux séances,"
|
||||
|
||||
#: ../source/oauth.rst:34
|
||||
msgid "``workouts:write``: grants write access to workouts-related endpoints."
|
||||
msgstr ""
|
||||
"``workouts:write``: accorde un accès en écriture aux points d'entrée "
|
||||
"associés aux séances,"
|
||||
"``workouts:write`` : accorde un accès en écriture aux points d'entrée "
|
||||
"associés aux séances."
|
||||
|
||||
#: ../source/oauth.rst:38
|
||||
msgid "Flow"
|
||||
@ -5693,7 +5690,7 @@ msgstr ""
|
||||
|
||||
#: ../source/oauth.rst
|
||||
msgid "Example for PKCE:"
|
||||
msgstr "Exemple pour PKCE:"
|
||||
msgstr "Exemple pour PKCE :"
|
||||
|
||||
#: ../source/oauth.rst
|
||||
msgid "``https://<FITTRACKEE_HOST>/profile/apps/authorize?response_type=code&client_id=<CLIENT_ID>&scope=profile%3Aread+workouts%3Awrite&state=<STATE>&code_challenge=<CODE_CHALLENGE>&code_challenge_method=S256``"
|
||||
@ -5916,3 +5913,9 @@ msgstr "Dépannage"
|
||||
#~ msgid "``workout created``"
|
||||
#~ msgstr "séance créée"
|
||||
|
||||
#~ msgid "If email sending is disabled, this endpoint is not available"
|
||||
#~ msgstr ""
|
||||
#~ "Si l'envoi de courriels est désactivé,"
|
||||
#~ " ce point d'accès n'est pas "
|
||||
#~ "disponible."
|
||||
|
||||
|
@ -1253,7 +1253,7 @@ def request_password_reset() -> Union[Dict, HttpResponse]:
|
||||
"""
|
||||
Handle password reset request.
|
||||
|
||||
If email sending is disabled, this endpoint is not available
|
||||
If email sending is disabled, this endpoint is not available.
|
||||
|
||||
**Example request**:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user