Skip to content
Snippets Groups Projects
Commit 2d28de55 authored by vincent.steinman's avatar vincent.steinman
Browse files

stat route API

parent 48d0cdb7
Branches
Tags
1 merge request!1Documentation
......@@ -34,4 +34,11 @@ Voici le schéma des données :
Dans le backend, on a décidé d'utiliser le wrapper `promised-sqlite3`. Il fonctionne autour du module `sqlite3` et permet l'usage des promesses pour sqlite3. Cela nous permet de gérer facilement les retours de la base de données, sans avoir à se soucier de la synchrone.
Pour gérer
\ No newline at end of file
Pour gérer les appels à la base de donnée, nous avons créer une API
- User
- f
- Question
- Answers
- Category
- Login
\ No newline at end of file
<mxfile host="65bd71144e">
<diagram id="YQ82JMaFKs9fSYfRQdZt" name="Page-1">
<mxGraphModel dx="656" dy="450" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="850" pageHeight="1100" math="0" shadow="0">
<root>
<mxCell id="0"/>
<mxCell id="1" parent="0"/>
<mxCell id="6" value="Users" style="swimlane;fontStyle=0;childLayout=stackLayout;horizontal=1;startSize=26;fillColor=none;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=1;marginBottom=0;html=1;" vertex="1" parent="1">
<mxGeometry x="80" y="40" width="180" height="130" as="geometry"/>
</mxCell>
<mxCell id="7" value="&lt;b&gt;&lt;u&gt;id&lt;/u&gt;&amp;nbsp; &lt;u&gt;integer&lt;/u&gt; &lt;u&gt;autoincrement&lt;/u&gt;&lt;/b&gt;" style="text;strokeColor=none;fillColor=none;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;whiteSpace=wrap;html=1;" vertex="1" parent="6">
<mxGeometry y="26" width="180" height="26" as="geometry"/>
</mxCell>
<mxCell id="8" value="username text unique" style="text;strokeColor=none;fillColor=none;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;whiteSpace=wrap;html=1;" vertex="1" parent="6">
<mxGeometry y="52" width="180" height="26" as="geometry"/>
</mxCell>
<mxCell id="9" value="password text" style="text;strokeColor=none;fillColor=none;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;whiteSpace=wrap;html=1;" vertex="1" parent="6">
<mxGeometry y="78" width="180" height="26" as="geometry"/>
</mxCell>
<mxCell id="12" value="admin boolean" style="text;strokeColor=none;fillColor=none;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;whiteSpace=wrap;html=1;" vertex="1" parent="6">
<mxGeometry y="104" width="180" height="26" as="geometry"/>
</mxCell>
<mxCell id="38" style="edgeStyle=none;html=1;exitX=0.5;exitY=0;exitDx=0;exitDy=0;entryX=0.5;entryY=0.998;entryDx=0;entryDy=0;entryPerimeter=0;fontColor=#FFFFFF;startArrow=none;startFill=0;endArrow=none;endFill=0;" edge="1" parent="1" source="13" target="30">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="13" value="Questions" style="swimlane;fontStyle=0;childLayout=stackLayout;horizontal=1;startSize=26;fillColor=none;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=1;marginBottom=0;html=1;" vertex="1" parent="1">
<mxGeometry x="330" y="226" width="200" height="140" as="geometry"/>
</mxCell>
<mxCell id="14" value="&lt;b&gt;&lt;u&gt;id&lt;/u&gt;&amp;nbsp; &lt;u&gt;integer&lt;/u&gt; &lt;u&gt;autoincrement&lt;/u&gt;&lt;/b&gt;" style="text;strokeColor=none;fillColor=none;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;whiteSpace=wrap;html=1;" vertex="1" parent="13">
<mxGeometry y="26" width="200" height="26" as="geometry"/>
</mxCell>
<mxCell id="15" value="question text unique" style="text;strokeColor=none;fillColor=none;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;whiteSpace=wrap;html=1;" vertex="1" parent="13">
<mxGeometry y="52" width="200" height="26" as="geometry"/>
</mxCell>
<mxCell id="16" value="category text" style="text;strokeColor=none;fillColor=none;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;whiteSpace=wrap;html=1;" vertex="1" parent="13">
<mxGeometry y="78" width="200" height="26" as="geometry"/>
</mxCell>
<mxCell id="19" value="" style="line;strokeWidth=2;html=1;" vertex="1" parent="13">
<mxGeometry y="104" width="200" height="10" as="geometry"/>
</mxCell>
<mxCell id="18" value="Ref: category&amp;nbsp;&lt;span style=&quot;font-family: sans-serif; font-size: 14px;&quot;&gt;⊆ Categories.title&lt;/span&gt;" style="text;strokeColor=none;fillColor=none;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;whiteSpace=wrap;html=1;" vertex="1" parent="13">
<mxGeometry y="114" width="200" height="26" as="geometry"/>
</mxCell>
<mxCell id="20" value="Answers" style="swimlane;fontStyle=0;childLayout=stackLayout;horizontal=1;startSize=26;fillColor=none;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=1;marginBottom=0;html=1;" vertex="1" parent="1">
<mxGeometry x="80" y="200" width="200" height="166" as="geometry"/>
</mxCell>
<mxCell id="21" value="&lt;b&gt;&lt;u&gt;id&lt;/u&gt;&amp;nbsp; &lt;u&gt;integer&lt;/u&gt; &lt;u&gt;autoincrement&lt;/u&gt;&lt;/b&gt;" style="text;strokeColor=none;fillColor=none;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;whiteSpace=wrap;html=1;" vertex="1" parent="20">
<mxGeometry y="26" width="200" height="26" as="geometry"/>
</mxCell>
<mxCell id="22" value="text_answer text" style="text;strokeColor=none;fillColor=none;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;whiteSpace=wrap;html=1;" vertex="1" parent="20">
<mxGeometry y="52" width="200" height="26" as="geometry"/>
</mxCell>
<mxCell id="23" value="id_question integer" style="text;strokeColor=none;fillColor=none;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;whiteSpace=wrap;html=1;" vertex="1" parent="20">
<mxGeometry y="78" width="200" height="26" as="geometry"/>
</mxCell>
<mxCell id="26" value="correct boolean" style="text;strokeColor=none;fillColor=none;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;whiteSpace=wrap;html=1;" vertex="1" parent="20">
<mxGeometry y="104" width="200" height="26" as="geometry"/>
</mxCell>
<mxCell id="24" value="" style="line;strokeWidth=2;html=1;" vertex="1" parent="20">
<mxGeometry y="130" width="200" height="10" as="geometry"/>
</mxCell>
<mxCell id="25" value="Ref: id_question&amp;nbsp;&lt;span style=&quot;font-family: sans-serif; font-size: 14px;&quot;&gt;⊆ Questions.id&lt;/span&gt;" style="text;strokeColor=none;fillColor=none;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;whiteSpace=wrap;html=1;" vertex="1" parent="20">
<mxGeometry y="140" width="200" height="26" as="geometry"/>
</mxCell>
<mxCell id="28" style="edgeStyle=none;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;fontColor=#FFFFFF;endArrow=none;endFill=0;startArrow=none;startFill=0;" edge="1" parent="1" source="23" target="15">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="29" value="Categories" style="swimlane;fontStyle=0;childLayout=stackLayout;horizontal=1;startSize=26;fillColor=none;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=1;marginBottom=0;html=1;" vertex="1" parent="1">
<mxGeometry x="340" y="100" width="180" height="52" as="geometry"/>
</mxCell>
<mxCell id="30" value="&lt;b&gt;&lt;u&gt;title&lt;/u&gt;&amp;nbsp;&amp;nbsp;&lt;u&gt;text&lt;/u&gt; &lt;u&gt;unique&lt;/u&gt;&lt;/b&gt;" style="text;strokeColor=none;fillColor=none;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;whiteSpace=wrap;html=1;" vertex="1" parent="29">
<mxGeometry y="26" width="180" height="26" as="geometry"/>
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment