diff --git a/microservices/auth/src/studentHellQCM.postman_collection.json b/microservices/auth/src/studentHellQCM.postman_collection.json deleted file mode 100644 index 8a76529e979aced816a8047a002c6057638259f7..0000000000000000000000000000000000000000 --- a/microservices/auth/src/studentHellQCM.postman_collection.json +++ /dev/null @@ -1,1452 +0,0 @@ -{ - "info": { - "_postman_id": "5622b838-4f43-42a6-b1a7-f78459643158", - "name": "Architecture web : QCM (Student Hell)", - "description": "API permettant la gestion de QCMs", - "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", - "_exporter_id": "12262300" - }, - "item": [ - { - "name": "/results", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "GET", - "header": [], - "url": { - "raw": "http://0.0.0.0:30992/results/1", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "results", - "1" - ] - }, - "description": "Retoune le résultat pour le QCM donné" - }, - "response": [] - }, - { - "name": "/response", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "POST", - "header": [ - { - "key": "Cache-Control", - "value": "no-cache", - "name": "cache-control", - "type": "text" - }, - { - "key": "Postman-Token", - "value": "<calculated when request is sent>", - "name": "postman-token", - "type": "text" - }, - { - "key": "Content-Type", - "value": "multipart/form-data; boundary=<calculated when request is sent>", - "name": "content-type", - "type": "text", - "disabled": true - }, - { - "key": "Content-Length", - "value": "<calculated when request is sent>", - "name": "content-length", - "type": "text" - }, - { - "key": "Host", - "value": "<calculated when request is sent>", - "name": "host", - "type": "text" - }, - { - "key": "User-Agent", - "value": "PostmanRuntime/7.32.1", - "name": "user-agent", - "type": "text" - }, - { - "key": "Accept", - "value": "*/*", - "name": "accept", - "type": "text" - }, - { - "key": "Accept-Encoding", - "value": "gzip, deflate, br", - "name": "accept-encoding", - "type": "text" - }, - { - "key": "Connection", - "value": "keep-alive", - "name": "connection", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "body": { - "mode": "raw", - "raw": "{\"idQuestion\": 1,\"idChoix\": 2,\"idUser\": 959}", - "options": { - "raw": { - "language": "text" - } - } - }, - "url": { - "raw": "http://0.0.0.0:30992/response", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "response" - ] - }, - "description": "Ajoute une nouvelle réponse" - }, - "response": [] - }, - { - "name": "/response", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "DELETE", - "header": [ - { - "key": "Cache-Control", - "value": "no-cache", - "name": "cache-control", - "type": "text" - }, - { - "key": "Postman-Token", - "value": "<calculated when request is sent>", - "name": "postman-token", - "type": "text" - }, - { - "key": "Content-Type", - "value": "text/plain", - "name": "content-type", - "type": "text" - }, - { - "key": "Content-Length", - "value": "<calculated when request is sent>", - "name": "content-length", - "type": "text" - }, - { - "key": "Host", - "value": "<calculated when request is sent>", - "name": "host", - "type": "text" - }, - { - "key": "User-Agent", - "value": "PostmanRuntime/7.32.1", - "name": "user-agent", - "type": "text" - }, - { - "key": "Accept", - "value": "*/*", - "name": "accept", - "type": "text" - }, - { - "key": "Accept-Encoding", - "value": "gzip, deflate, br", - "name": "accept-encoding", - "type": "text" - }, - { - "key": "Connection", - "value": "keep-alive", - "name": "connection", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "url": { - "raw": "http://0.0.0.0:30992/response/3", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "response", - "3" - ] - }, - "description": "Supprime une réponse" - }, - "response": [] - }, - { - "name": "/created_QCMs", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Authorization", - "value": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "name": "authorization", - "type": "text" - }, - { - "key": "Cache-Control", - "value": "no-cache", - "name": "cache-control", - "type": "text" - }, - { - "key": "Postman-Token", - "value": "<calculated when request is sent>", - "name": "postman-token", - "type": "text" - }, - { - "key": "Host", - "value": "<calculated when request is sent>", - "name": "host", - "type": "text" - }, - { - "key": "User-Agent", - "value": "PostmanRuntime/7.32.1", - "name": "user-agent", - "type": "text" - }, - { - "key": "Accept", - "value": "*/*", - "name": "accept", - "type": "text" - }, - { - "key": "Accept-Encoding", - "value": "gzip, deflate, br", - "name": "accept-encoding", - "type": "text" - }, - { - "key": "Connection", - "value": "keep-alive", - "name": "connection", - "type": "text" - } - ], - "body": { - "mode": "formdata", - "formdata": [] - }, - "url": { - "raw": "http://0.0.0.0:30992/created_QCMs/959", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "created_QCMs", - "959" - ] - }, - "description": "Récupère les QCM créés par un utilisateur" - }, - "response": [] - }, - { - "name": "/realised_QCMs", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "GET", - "header": [], - "url": { - "raw": "http://0.0.0.0:30992/realised_QCMs/959", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "realised_QCMs", - "959" - ] - }, - "description": "Récupère les QCM qu'un utilisateur a effectués" - }, - "response": [] - }, - { - "name": "/responses_QCM", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "GET", - "header": [], - "url": { - "raw": "http://0.0.0.0:30992/responses_QCM/8/959", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "responses_QCM", - "8", - "959" - ] - }, - "description": "Récupère les réponses d'un utilisateur à un QCM" - }, - "response": [] - }, - { - "name": "/examen_QCM", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "GET", - "header": [], - "url": { - "raw": "http://0.0.0.0:30992/examen_QCM/8", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "examen_QCM", - "8" - ] - }, - "description": "Récupère un QCM sans renvoyer les réponses correctes" - }, - "response": [] - }, - { - "name": "/terminer", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "PUT", - "header": [], - "body": { - "mode": "raw", - "raw": "", - "options": { - "raw": { - "language": "text" - } - } - }, - "url": { - "raw": "http://0.0.0.0:30992/terminer/959/1", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "terminer", - "959", - "1" - ] - }, - "description": "Termine le QCM d'un utilisateur" - }, - "response": [] - }, - { - "name": "/numeric_response", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "POST", - "header": [ - { - "key": "Cache-Control", - "value": "no-cache", - "name": "cache-control", - "type": "text" - }, - { - "key": "Postman-Token", - "value": "<calculated when request is sent>", - "name": "postman-token", - "type": "text" - }, - { - "key": "Content-Type", - "value": "text/plain", - "name": "content-type", - "type": "text", - "disabled": true - }, - { - "key": "Content-Length", - "value": "<calculated when request is sent>", - "name": "content-length", - "type": "text" - }, - { - "key": "Host", - "value": "<calculated when request is sent>", - "name": "host", - "type": "text" - }, - { - "key": "User-Agent", - "value": "PostmanRuntime/7.32.1", - "name": "user-agent", - "type": "text" - }, - { - "key": "Accept", - "value": "*/*", - "name": "accept", - "type": "text" - }, - { - "key": "Accept-Encoding", - "value": "gzip, deflate, br", - "name": "accept-encoding", - "type": "text" - }, - { - "key": "Connection", - "value": "keep-alive", - "name": "connection", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "body": { - "mode": "raw", - "raw": "{\"idQuestion\": 2,\"answer\": 10,\"idUser\": 959}", - "options": { - "raw": { - "language": "text" - } - } - }, - "url": { - "raw": "http://0.0.0.0:30992/numeric_response", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "numeric_response" - ] - }, - "description": "Ajoute une réponse de type numérique d'un utilisateur" - }, - "response": [] - }, - { - "name": "/numeric_response", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "DELETE", - "header": [], - "url": { - "raw": "http://0.0.0.0:30992/numeric_response/5", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "numeric_response", - "5" - ] - }, - "description": "Supprime une réponse de type numérique d'un utilisateur" - }, - "response": [] - }, - { - "name": "/question", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "DELETE", - "header": [], - "url": { - "raw": "http://0.0.0.0:30992/question/9", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "question", - "9" - ] - }, - "description": "Supprime une question" - }, - "response": [] - }, - { - "name": "/infos_QCM", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "GET", - "header": [], - "url": { - "raw": "http://0.0.0.0:30992/infos_QCM/14", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "infos_QCM", - "14" - ] - }, - "description": "Récupère toutes les informations d'un QCM" - }, - "response": [] - }, - { - "name": "/QCM", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "PUT", - "header": [ - { - "key": "Cache-Control", - "value": "no-cache", - "name": "cache-control", - "type": "text" - }, - { - "key": "Postman-Token", - "value": "<calculated when request is sent>", - "name": "postman-token", - "type": "text" - }, - { - "key": "Content-Length", - "value": "0", - "name": "content-length", - "type": "text" - }, - { - "key": "Host", - "value": "<calculated when request is sent>", - "name": "host", - "type": "text" - }, - { - "key": "User-Agent", - "value": "PostmanRuntime/7.32.1", - "name": "user-agent", - "type": "text" - }, - { - "key": "Accept", - "value": "*/*", - "name": "accept", - "type": "text" - }, - { - "key": "Accept-Encoding", - "value": "gzip, deflate, br", - "name": "accept-encoding", - "type": "text" - }, - { - "key": "Connection", - "value": "keep-alive", - "name": "connection", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"qcm\": {\"nomQcm\": \"SBD 2\", \"randomQuestion\": true, \"tempsMax\": 15000, \"idQcm\": 14}\n}", - "options": { - "raw": { - "language": "text" - } - } - }, - "url": { - "raw": "http://0.0.0.0:30992/QCM", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "QCM" - ] - }, - "description": "Met à jour les informations du QCM" - }, - "response": [] - }, - { - "name": "/feedback", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "PUT", - "header": [ - { - "key": "Cache-Control", - "value": "no-cache", - "name": "cache-control", - "type": "text" - }, - { - "key": "Postman-Token", - "value": "<calculated when request is sent>", - "name": "postman-token", - "type": "text" - }, - { - "key": "Content-Length", - "value": "0", - "name": "content-length", - "type": "text" - }, - { - "key": "Host", - "value": "<calculated when request is sent>", - "name": "host", - "type": "text" - }, - { - "key": "User-Agent", - "value": "PostmanRuntime/7.32.1", - "name": "user-agent", - "type": "text" - }, - { - "key": "Accept", - "value": "*/*", - "name": "accept", - "type": "text" - }, - { - "key": "Accept-Encoding", - "value": "gzip, deflate, br", - "name": "accept-encoding", - "type": "text" - }, - { - "key": "Connection", - "value": "keep-alive", - "name": "connection", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "body": { - "mode": "raw", - "raw": "{\"idQCM\": 8, \"idUser\": 975, \"note\": 4.5, \"feedback\": \"Assez bien\"}", - "options": { - "raw": { - "language": "text" - } - } - }, - "url": { - "raw": "http://0.0.0.0:30992/feedback", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "feedback" - ] - }, - "description": "Met à jour le feedback et la note d'un utilisateur pour un QCM" - }, - "response": [] - }, - { - "name": "/QCM", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "POST", - "header": [ - { - "key": "Cache-Control", - "value": "no-cache", - "name": "cache-control", - "type": "text" - }, - { - "key": "Postman-Token", - "value": "<calculated when request is sent>", - "name": "postman-token", - "type": "text" - }, - { - "key": "Content-Length", - "value": "0", - "name": "content-length", - "type": "text" - }, - { - "key": "Host", - "value": "<calculated when request is sent>", - "name": "host", - "type": "text" - }, - { - "key": "User-Agent", - "value": "PostmanRuntime/7.32.1", - "name": "user-agent", - "type": "text" - }, - { - "key": "Accept", - "value": "*/*", - "name": "accept", - "type": "text" - }, - { - "key": "Accept-Encoding", - "value": "gzip, deflate, br", - "name": "accept-encoding", - "type": "text" - }, - { - "key": "Connection", - "value": "keep-alive", - "name": "connection", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "body": { - "mode": "raw", - "raw": "{\"qcm\": {\"nomQcm\": \"Archi web\", \"randomQuestion\": false, \"tempsMax\": 1000}, \"idUser\": 959}", - "options": { - "raw": { - "language": "text" - } - } - }, - "url": { - "raw": "http://0.0.0.0:30992/QCM", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "QCM" - ] - }, - "description": "Créé un QCM" - }, - "response": [] - }, - { - "name": "/numeric_question", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "POST", - "header": [ - { - "key": "Cache-Control", - "value": "no-cache", - "name": "cache-control", - "type": "text" - }, - { - "key": "Postman-Token", - "value": "<calculated when request is sent>", - "name": "postman-token", - "type": "text" - }, - { - "key": "Content-Length", - "value": "0", - "name": "content-length", - "type": "text" - }, - { - "key": "Host", - "value": "<calculated when request is sent>", - "name": "host", - "type": "text" - }, - { - "key": "User-Agent", - "value": "PostmanRuntime/7.32.1", - "name": "user-agent", - "type": "text" - }, - { - "key": "Accept", - "value": "*/*", - "name": "accept", - "type": "text" - }, - { - "key": "Accept-Encoding", - "value": "gzip, deflate, br", - "name": "accept-encoding", - "type": "text" - }, - { - "key": "Connection", - "value": "keep-alive", - "name": "connection", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "body": { - "mode": "raw", - "raw": "{\"question\": {\"question\": \"Combien font 10*5 ?\", \"nbPtsNegatif\": 2, \"nbPtsPositif\": 10, \"valNum\": 50, \"position\": 1}, \"idUser\": 959, \"idQcm\": 14}", - "options": { - "raw": { - "language": "text" - } - } - }, - "url": { - "raw": "http://0.0.0.0:30992/numeric_question", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "numeric_question" - ] - }, - "description": "Ajoute une question de type numérique à un QCM" - }, - "response": [] - }, - { - "name": "/text_question", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "POST", - "header": [ - { - "key": "Cache-Control", - "value": "no-cache", - "name": "cache-control", - "type": "text" - }, - { - "key": "Postman-Token", - "value": "<calculated when request is sent>", - "name": "postman-token", - "type": "text" - }, - { - "key": "Content-Length", - "value": "0", - "name": "content-length", - "type": "text" - }, - { - "key": "Host", - "value": "<calculated when request is sent>", - "name": "host", - "type": "text" - }, - { - "key": "User-Agent", - "value": "PostmanRuntime/7.32.1", - "name": "user-agent", - "type": "text" - }, - { - "key": "Accept", - "value": "*/*", - "name": "accept", - "type": "text" - }, - { - "key": "Accept-Encoding", - "value": "gzip, deflate, br", - "name": "accept-encoding", - "type": "text" - }, - { - "key": "Connection", - "value": "keep-alive", - "name": "connection", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "body": { - "mode": "raw", - "raw": "{\"question\": {\"question\": \"Quel mois est-on ?\", \"nbPtsNegatif\": 2, \"nbPtsPositif\": 10, \"isMultiple\": false, \"position\": 2, \"randomOrder\": true, \"choix\": [{\"text\": \"Juin\", \"isCorrect\": true}, {\"text\": \"Juillet\", \"isCorrect\": false}]}, \"idQcm\": 14}", - "options": { - "raw": { - "language": "text" - } - } - }, - "url": { - "raw": "http://0.0.0.0:30992/text_question", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "text_question" - ] - }, - "description": "Ajoute un question de type texte à un QCM" - }, - "response": [] - }, - { - "name": "/true_false_question", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "POST", - "header": [ - { - "key": "Cache-Control", - "value": "no-cache", - "name": "cache-control", - "type": "text" - }, - { - "key": "Postman-Token", - "value": "<calculated when request is sent>", - "name": "postman-token", - "type": "text" - }, - { - "key": "Content-Length", - "value": "0", - "name": "content-length", - "type": "text" - }, - { - "key": "Host", - "value": "<calculated when request is sent>", - "name": "host", - "type": "text" - }, - { - "key": "User-Agent", - "value": "PostmanRuntime/7.32.1", - "name": "user-agent", - "type": "text" - }, - { - "key": "Accept", - "value": "*/*", - "name": "accept", - "type": "text" - }, - { - "key": "Accept-Encoding", - "value": "gzip, deflate, br", - "name": "accept-encoding", - "type": "text" - }, - { - "key": "Connection", - "value": "keep-alive", - "name": "connection", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "body": { - "mode": "raw", - "raw": "{\"question\": {\"question\": \"Quel mois est-on ?\", \"nbPtsNegatif\": 2, \"nbPtsPositif\": 10, \"isVraiFaux\": true, \"valVraiFaux\": true, \"position\": 2, \"randomOrder\": false}, \"idQcm\": 14}", - "options": { - "raw": { - "language": "text" - } - } - }, - "url": { - "raw": "http://0.0.0.0:30992/true_false_question", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "true_false_question" - ] - }, - "description": "Ajoute une question de type Vrai/Faux à un QCM" - }, - "response": [] - }, - { - "name": "/join", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "POST", - "header": [ - { - "key": "Cache-Control", - "value": "no-cache", - "name": "cache-control", - "type": "text" - }, - { - "key": "Postman-Token", - "value": "<calculated when request is sent>", - "name": "postman-token", - "type": "text" - }, - { - "key": "Content-Length", - "value": "0", - "name": "content-length", - "type": "text" - }, - { - "key": "Host", - "value": "<calculated when request is sent>", - "name": "host", - "type": "text" - }, - { - "key": "User-Agent", - "value": "PostmanRuntime/7.32.1", - "name": "user-agent", - "type": "text" - }, - { - "key": "Accept", - "value": "*/*", - "name": "accept", - "type": "text" - }, - { - "key": "Accept-Encoding", - "value": "gzip, deflate, br", - "name": "accept-encoding", - "type": "text" - }, - { - "key": "Connection", - "value": "keep-alive", - "name": "connection", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "body": { - "mode": "raw", - "raw": "{\"codeAcces\": 4398, \"idQCM\": 13, \"idUser\": 959}", - "options": { - "raw": { - "language": "text" - } - } - }, - "url": { - "raw": "http://0.0.0.0:30992/join", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "join" - ] - }, - "description": "Rejoint un QCM" - }, - "response": [] - }, - { - "name": "/auth/jwt", - "request": { - "auth": { - "type": "noauth" - }, - "method": "POST", - "header": [ - { - "key": "Cache-Control", - "value": "no-cache", - "name": "cache-control", - "type": "text" - }, - { - "key": "Postman-Token", - "value": "<calculated when request is sent>", - "name": "postman-token", - "type": "text" - }, - { - "key": "Content-Type", - "value": "text/plain", - "name": "content-type", - "type": "text" - }, - { - "key": "Content-Length", - "value": "<calculated when request is sent>", - "name": "content-length", - "type": "text" - }, - { - "key": "Host", - "value": "<calculated when request is sent>", - "name": "host", - "type": "text" - }, - { - "key": "User-Agent", - "value": "PostmanRuntime/7.32.1", - "name": "user-agent", - "type": "text" - }, - { - "key": "Accept", - "value": "*/*", - "name": "accept", - "type": "text" - }, - { - "key": "Accept-Encoding", - "value": "gzip, deflate, br", - "name": "accept-encoding", - "type": "text" - }, - { - "key": "Connection", - "value": "keep-alive", - "name": "connection", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "body": { - "mode": "raw", - "raw": "{ \"code\": 185fb9517156af142f481ffbb5c75857080cd4b01a48aa65373804e23ed63d5f }", - "options": { - "raw": { - "language": "text" - } - } - }, - "url": { - "raw": "http://0.0.0.0:30992/auth/jwt", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "auth", - "jwt" - ] - }, - "description": "Récupère les informations de l'utilisateur depuis gitlab et génère le token JWT" - }, - "response": [] - } - ] -} \ No newline at end of file diff --git a/microservices/correction_qcm/src/studentHellQCM.postman_collection.json b/microservices/correction_qcm/src/studentHellQCM.postman_collection.json deleted file mode 100644 index 8a76529e979aced816a8047a002c6057638259f7..0000000000000000000000000000000000000000 --- a/microservices/correction_qcm/src/studentHellQCM.postman_collection.json +++ /dev/null @@ -1,1452 +0,0 @@ -{ - "info": { - "_postman_id": "5622b838-4f43-42a6-b1a7-f78459643158", - "name": "Architecture web : QCM (Student Hell)", - "description": "API permettant la gestion de QCMs", - "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", - "_exporter_id": "12262300" - }, - "item": [ - { - "name": "/results", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "GET", - "header": [], - "url": { - "raw": "http://0.0.0.0:30992/results/1", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "results", - "1" - ] - }, - "description": "Retoune le résultat pour le QCM donné" - }, - "response": [] - }, - { - "name": "/response", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "POST", - "header": [ - { - "key": "Cache-Control", - "value": "no-cache", - "name": "cache-control", - "type": "text" - }, - { - "key": "Postman-Token", - "value": "<calculated when request is sent>", - "name": "postman-token", - "type": "text" - }, - { - "key": "Content-Type", - "value": "multipart/form-data; boundary=<calculated when request is sent>", - "name": "content-type", - "type": "text", - "disabled": true - }, - { - "key": "Content-Length", - "value": "<calculated when request is sent>", - "name": "content-length", - "type": "text" - }, - { - "key": "Host", - "value": "<calculated when request is sent>", - "name": "host", - "type": "text" - }, - { - "key": "User-Agent", - "value": "PostmanRuntime/7.32.1", - "name": "user-agent", - "type": "text" - }, - { - "key": "Accept", - "value": "*/*", - "name": "accept", - "type": "text" - }, - { - "key": "Accept-Encoding", - "value": "gzip, deflate, br", - "name": "accept-encoding", - "type": "text" - }, - { - "key": "Connection", - "value": "keep-alive", - "name": "connection", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "body": { - "mode": "raw", - "raw": "{\"idQuestion\": 1,\"idChoix\": 2,\"idUser\": 959}", - "options": { - "raw": { - "language": "text" - } - } - }, - "url": { - "raw": "http://0.0.0.0:30992/response", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "response" - ] - }, - "description": "Ajoute une nouvelle réponse" - }, - "response": [] - }, - { - "name": "/response", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "DELETE", - "header": [ - { - "key": "Cache-Control", - "value": "no-cache", - "name": "cache-control", - "type": "text" - }, - { - "key": "Postman-Token", - "value": "<calculated when request is sent>", - "name": "postman-token", - "type": "text" - }, - { - "key": "Content-Type", - "value": "text/plain", - "name": "content-type", - "type": "text" - }, - { - "key": "Content-Length", - "value": "<calculated when request is sent>", - "name": "content-length", - "type": "text" - }, - { - "key": "Host", - "value": "<calculated when request is sent>", - "name": "host", - "type": "text" - }, - { - "key": "User-Agent", - "value": "PostmanRuntime/7.32.1", - "name": "user-agent", - "type": "text" - }, - { - "key": "Accept", - "value": "*/*", - "name": "accept", - "type": "text" - }, - { - "key": "Accept-Encoding", - "value": "gzip, deflate, br", - "name": "accept-encoding", - "type": "text" - }, - { - "key": "Connection", - "value": "keep-alive", - "name": "connection", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "url": { - "raw": "http://0.0.0.0:30992/response/3", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "response", - "3" - ] - }, - "description": "Supprime une réponse" - }, - "response": [] - }, - { - "name": "/created_QCMs", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Authorization", - "value": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "name": "authorization", - "type": "text" - }, - { - "key": "Cache-Control", - "value": "no-cache", - "name": "cache-control", - "type": "text" - }, - { - "key": "Postman-Token", - "value": "<calculated when request is sent>", - "name": "postman-token", - "type": "text" - }, - { - "key": "Host", - "value": "<calculated when request is sent>", - "name": "host", - "type": "text" - }, - { - "key": "User-Agent", - "value": "PostmanRuntime/7.32.1", - "name": "user-agent", - "type": "text" - }, - { - "key": "Accept", - "value": "*/*", - "name": "accept", - "type": "text" - }, - { - "key": "Accept-Encoding", - "value": "gzip, deflate, br", - "name": "accept-encoding", - "type": "text" - }, - { - "key": "Connection", - "value": "keep-alive", - "name": "connection", - "type": "text" - } - ], - "body": { - "mode": "formdata", - "formdata": [] - }, - "url": { - "raw": "http://0.0.0.0:30992/created_QCMs/959", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "created_QCMs", - "959" - ] - }, - "description": "Récupère les QCM créés par un utilisateur" - }, - "response": [] - }, - { - "name": "/realised_QCMs", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "GET", - "header": [], - "url": { - "raw": "http://0.0.0.0:30992/realised_QCMs/959", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "realised_QCMs", - "959" - ] - }, - "description": "Récupère les QCM qu'un utilisateur a effectués" - }, - "response": [] - }, - { - "name": "/responses_QCM", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "GET", - "header": [], - "url": { - "raw": "http://0.0.0.0:30992/responses_QCM/8/959", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "responses_QCM", - "8", - "959" - ] - }, - "description": "Récupère les réponses d'un utilisateur à un QCM" - }, - "response": [] - }, - { - "name": "/examen_QCM", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "GET", - "header": [], - "url": { - "raw": "http://0.0.0.0:30992/examen_QCM/8", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "examen_QCM", - "8" - ] - }, - "description": "Récupère un QCM sans renvoyer les réponses correctes" - }, - "response": [] - }, - { - "name": "/terminer", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "PUT", - "header": [], - "body": { - "mode": "raw", - "raw": "", - "options": { - "raw": { - "language": "text" - } - } - }, - "url": { - "raw": "http://0.0.0.0:30992/terminer/959/1", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "terminer", - "959", - "1" - ] - }, - "description": "Termine le QCM d'un utilisateur" - }, - "response": [] - }, - { - "name": "/numeric_response", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "POST", - "header": [ - { - "key": "Cache-Control", - "value": "no-cache", - "name": "cache-control", - "type": "text" - }, - { - "key": "Postman-Token", - "value": "<calculated when request is sent>", - "name": "postman-token", - "type": "text" - }, - { - "key": "Content-Type", - "value": "text/plain", - "name": "content-type", - "type": "text", - "disabled": true - }, - { - "key": "Content-Length", - "value": "<calculated when request is sent>", - "name": "content-length", - "type": "text" - }, - { - "key": "Host", - "value": "<calculated when request is sent>", - "name": "host", - "type": "text" - }, - { - "key": "User-Agent", - "value": "PostmanRuntime/7.32.1", - "name": "user-agent", - "type": "text" - }, - { - "key": "Accept", - "value": "*/*", - "name": "accept", - "type": "text" - }, - { - "key": "Accept-Encoding", - "value": "gzip, deflate, br", - "name": "accept-encoding", - "type": "text" - }, - { - "key": "Connection", - "value": "keep-alive", - "name": "connection", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "body": { - "mode": "raw", - "raw": "{\"idQuestion\": 2,\"answer\": 10,\"idUser\": 959}", - "options": { - "raw": { - "language": "text" - } - } - }, - "url": { - "raw": "http://0.0.0.0:30992/numeric_response", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "numeric_response" - ] - }, - "description": "Ajoute une réponse de type numérique d'un utilisateur" - }, - "response": [] - }, - { - "name": "/numeric_response", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "DELETE", - "header": [], - "url": { - "raw": "http://0.0.0.0:30992/numeric_response/5", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "numeric_response", - "5" - ] - }, - "description": "Supprime une réponse de type numérique d'un utilisateur" - }, - "response": [] - }, - { - "name": "/question", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "DELETE", - "header": [], - "url": { - "raw": "http://0.0.0.0:30992/question/9", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "question", - "9" - ] - }, - "description": "Supprime une question" - }, - "response": [] - }, - { - "name": "/infos_QCM", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "GET", - "header": [], - "url": { - "raw": "http://0.0.0.0:30992/infos_QCM/14", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "infos_QCM", - "14" - ] - }, - "description": "Récupère toutes les informations d'un QCM" - }, - "response": [] - }, - { - "name": "/QCM", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "PUT", - "header": [ - { - "key": "Cache-Control", - "value": "no-cache", - "name": "cache-control", - "type": "text" - }, - { - "key": "Postman-Token", - "value": "<calculated when request is sent>", - "name": "postman-token", - "type": "text" - }, - { - "key": "Content-Length", - "value": "0", - "name": "content-length", - "type": "text" - }, - { - "key": "Host", - "value": "<calculated when request is sent>", - "name": "host", - "type": "text" - }, - { - "key": "User-Agent", - "value": "PostmanRuntime/7.32.1", - "name": "user-agent", - "type": "text" - }, - { - "key": "Accept", - "value": "*/*", - "name": "accept", - "type": "text" - }, - { - "key": "Accept-Encoding", - "value": "gzip, deflate, br", - "name": "accept-encoding", - "type": "text" - }, - { - "key": "Connection", - "value": "keep-alive", - "name": "connection", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"qcm\": {\"nomQcm\": \"SBD 2\", \"randomQuestion\": true, \"tempsMax\": 15000, \"idQcm\": 14}\n}", - "options": { - "raw": { - "language": "text" - } - } - }, - "url": { - "raw": "http://0.0.0.0:30992/QCM", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "QCM" - ] - }, - "description": "Met à jour les informations du QCM" - }, - "response": [] - }, - { - "name": "/feedback", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "PUT", - "header": [ - { - "key": "Cache-Control", - "value": "no-cache", - "name": "cache-control", - "type": "text" - }, - { - "key": "Postman-Token", - "value": "<calculated when request is sent>", - "name": "postman-token", - "type": "text" - }, - { - "key": "Content-Length", - "value": "0", - "name": "content-length", - "type": "text" - }, - { - "key": "Host", - "value": "<calculated when request is sent>", - "name": "host", - "type": "text" - }, - { - "key": "User-Agent", - "value": "PostmanRuntime/7.32.1", - "name": "user-agent", - "type": "text" - }, - { - "key": "Accept", - "value": "*/*", - "name": "accept", - "type": "text" - }, - { - "key": "Accept-Encoding", - "value": "gzip, deflate, br", - "name": "accept-encoding", - "type": "text" - }, - { - "key": "Connection", - "value": "keep-alive", - "name": "connection", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "body": { - "mode": "raw", - "raw": "{\"idQCM\": 8, \"idUser\": 975, \"note\": 4.5, \"feedback\": \"Assez bien\"}", - "options": { - "raw": { - "language": "text" - } - } - }, - "url": { - "raw": "http://0.0.0.0:30992/feedback", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "feedback" - ] - }, - "description": "Met à jour le feedback et la note d'un utilisateur pour un QCM" - }, - "response": [] - }, - { - "name": "/QCM", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "POST", - "header": [ - { - "key": "Cache-Control", - "value": "no-cache", - "name": "cache-control", - "type": "text" - }, - { - "key": "Postman-Token", - "value": "<calculated when request is sent>", - "name": "postman-token", - "type": "text" - }, - { - "key": "Content-Length", - "value": "0", - "name": "content-length", - "type": "text" - }, - { - "key": "Host", - "value": "<calculated when request is sent>", - "name": "host", - "type": "text" - }, - { - "key": "User-Agent", - "value": "PostmanRuntime/7.32.1", - "name": "user-agent", - "type": "text" - }, - { - "key": "Accept", - "value": "*/*", - "name": "accept", - "type": "text" - }, - { - "key": "Accept-Encoding", - "value": "gzip, deflate, br", - "name": "accept-encoding", - "type": "text" - }, - { - "key": "Connection", - "value": "keep-alive", - "name": "connection", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "body": { - "mode": "raw", - "raw": "{\"qcm\": {\"nomQcm\": \"Archi web\", \"randomQuestion\": false, \"tempsMax\": 1000}, \"idUser\": 959}", - "options": { - "raw": { - "language": "text" - } - } - }, - "url": { - "raw": "http://0.0.0.0:30992/QCM", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "QCM" - ] - }, - "description": "Créé un QCM" - }, - "response": [] - }, - { - "name": "/numeric_question", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "POST", - "header": [ - { - "key": "Cache-Control", - "value": "no-cache", - "name": "cache-control", - "type": "text" - }, - { - "key": "Postman-Token", - "value": "<calculated when request is sent>", - "name": "postman-token", - "type": "text" - }, - { - "key": "Content-Length", - "value": "0", - "name": "content-length", - "type": "text" - }, - { - "key": "Host", - "value": "<calculated when request is sent>", - "name": "host", - "type": "text" - }, - { - "key": "User-Agent", - "value": "PostmanRuntime/7.32.1", - "name": "user-agent", - "type": "text" - }, - { - "key": "Accept", - "value": "*/*", - "name": "accept", - "type": "text" - }, - { - "key": "Accept-Encoding", - "value": "gzip, deflate, br", - "name": "accept-encoding", - "type": "text" - }, - { - "key": "Connection", - "value": "keep-alive", - "name": "connection", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "body": { - "mode": "raw", - "raw": "{\"question\": {\"question\": \"Combien font 10*5 ?\", \"nbPtsNegatif\": 2, \"nbPtsPositif\": 10, \"valNum\": 50, \"position\": 1}, \"idUser\": 959, \"idQcm\": 14}", - "options": { - "raw": { - "language": "text" - } - } - }, - "url": { - "raw": "http://0.0.0.0:30992/numeric_question", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "numeric_question" - ] - }, - "description": "Ajoute une question de type numérique à un QCM" - }, - "response": [] - }, - { - "name": "/text_question", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "POST", - "header": [ - { - "key": "Cache-Control", - "value": "no-cache", - "name": "cache-control", - "type": "text" - }, - { - "key": "Postman-Token", - "value": "<calculated when request is sent>", - "name": "postman-token", - "type": "text" - }, - { - "key": "Content-Length", - "value": "0", - "name": "content-length", - "type": "text" - }, - { - "key": "Host", - "value": "<calculated when request is sent>", - "name": "host", - "type": "text" - }, - { - "key": "User-Agent", - "value": "PostmanRuntime/7.32.1", - "name": "user-agent", - "type": "text" - }, - { - "key": "Accept", - "value": "*/*", - "name": "accept", - "type": "text" - }, - { - "key": "Accept-Encoding", - "value": "gzip, deflate, br", - "name": "accept-encoding", - "type": "text" - }, - { - "key": "Connection", - "value": "keep-alive", - "name": "connection", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "body": { - "mode": "raw", - "raw": "{\"question\": {\"question\": \"Quel mois est-on ?\", \"nbPtsNegatif\": 2, \"nbPtsPositif\": 10, \"isMultiple\": false, \"position\": 2, \"randomOrder\": true, \"choix\": [{\"text\": \"Juin\", \"isCorrect\": true}, {\"text\": \"Juillet\", \"isCorrect\": false}]}, \"idQcm\": 14}", - "options": { - "raw": { - "language": "text" - } - } - }, - "url": { - "raw": "http://0.0.0.0:30992/text_question", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "text_question" - ] - }, - "description": "Ajoute un question de type texte à un QCM" - }, - "response": [] - }, - { - "name": "/true_false_question", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "POST", - "header": [ - { - "key": "Cache-Control", - "value": "no-cache", - "name": "cache-control", - "type": "text" - }, - { - "key": "Postman-Token", - "value": "<calculated when request is sent>", - "name": "postman-token", - "type": "text" - }, - { - "key": "Content-Length", - "value": "0", - "name": "content-length", - "type": "text" - }, - { - "key": "Host", - "value": "<calculated when request is sent>", - "name": "host", - "type": "text" - }, - { - "key": "User-Agent", - "value": "PostmanRuntime/7.32.1", - "name": "user-agent", - "type": "text" - }, - { - "key": "Accept", - "value": "*/*", - "name": "accept", - "type": "text" - }, - { - "key": "Accept-Encoding", - "value": "gzip, deflate, br", - "name": "accept-encoding", - "type": "text" - }, - { - "key": "Connection", - "value": "keep-alive", - "name": "connection", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "body": { - "mode": "raw", - "raw": "{\"question\": {\"question\": \"Quel mois est-on ?\", \"nbPtsNegatif\": 2, \"nbPtsPositif\": 10, \"isVraiFaux\": true, \"valVraiFaux\": true, \"position\": 2, \"randomOrder\": false}, \"idQcm\": 14}", - "options": { - "raw": { - "language": "text" - } - } - }, - "url": { - "raw": "http://0.0.0.0:30992/true_false_question", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "true_false_question" - ] - }, - "description": "Ajoute une question de type Vrai/Faux à un QCM" - }, - "response": [] - }, - { - "name": "/join", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "POST", - "header": [ - { - "key": "Cache-Control", - "value": "no-cache", - "name": "cache-control", - "type": "text" - }, - { - "key": "Postman-Token", - "value": "<calculated when request is sent>", - "name": "postman-token", - "type": "text" - }, - { - "key": "Content-Length", - "value": "0", - "name": "content-length", - "type": "text" - }, - { - "key": "Host", - "value": "<calculated when request is sent>", - "name": "host", - "type": "text" - }, - { - "key": "User-Agent", - "value": "PostmanRuntime/7.32.1", - "name": "user-agent", - "type": "text" - }, - { - "key": "Accept", - "value": "*/*", - "name": "accept", - "type": "text" - }, - { - "key": "Accept-Encoding", - "value": "gzip, deflate, br", - "name": "accept-encoding", - "type": "text" - }, - { - "key": "Connection", - "value": "keep-alive", - "name": "connection", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "body": { - "mode": "raw", - "raw": "{\"codeAcces\": 4398, \"idQCM\": 13, \"idUser\": 959}", - "options": { - "raw": { - "language": "text" - } - } - }, - "url": { - "raw": "http://0.0.0.0:30992/join", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "join" - ] - }, - "description": "Rejoint un QCM" - }, - "response": [] - }, - { - "name": "/auth/jwt", - "request": { - "auth": { - "type": "noauth" - }, - "method": "POST", - "header": [ - { - "key": "Cache-Control", - "value": "no-cache", - "name": "cache-control", - "type": "text" - }, - { - "key": "Postman-Token", - "value": "<calculated when request is sent>", - "name": "postman-token", - "type": "text" - }, - { - "key": "Content-Type", - "value": "text/plain", - "name": "content-type", - "type": "text" - }, - { - "key": "Content-Length", - "value": "<calculated when request is sent>", - "name": "content-length", - "type": "text" - }, - { - "key": "Host", - "value": "<calculated when request is sent>", - "name": "host", - "type": "text" - }, - { - "key": "User-Agent", - "value": "PostmanRuntime/7.32.1", - "name": "user-agent", - "type": "text" - }, - { - "key": "Accept", - "value": "*/*", - "name": "accept", - "type": "text" - }, - { - "key": "Accept-Encoding", - "value": "gzip, deflate, br", - "name": "accept-encoding", - "type": "text" - }, - { - "key": "Connection", - "value": "keep-alive", - "name": "connection", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "body": { - "mode": "raw", - "raw": "{ \"code\": 185fb9517156af142f481ffbb5c75857080cd4b01a48aa65373804e23ed63d5f }", - "options": { - "raw": { - "language": "text" - } - } - }, - "url": { - "raw": "http://0.0.0.0:30992/auth/jwt", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "auth", - "jwt" - ] - }, - "description": "Récupère les informations de l'utilisateur depuis gitlab et génère le token JWT" - }, - "response": [] - } - ] -} \ No newline at end of file diff --git a/microservices/creation_qcm/src/studentHellQCM.postman_collection.json b/microservices/creation_qcm/src/studentHellQCM.postman_collection.json deleted file mode 100644 index 8a76529e979aced816a8047a002c6057638259f7..0000000000000000000000000000000000000000 --- a/microservices/creation_qcm/src/studentHellQCM.postman_collection.json +++ /dev/null @@ -1,1452 +0,0 @@ -{ - "info": { - "_postman_id": "5622b838-4f43-42a6-b1a7-f78459643158", - "name": "Architecture web : QCM (Student Hell)", - "description": "API permettant la gestion de QCMs", - "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", - "_exporter_id": "12262300" - }, - "item": [ - { - "name": "/results", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "GET", - "header": [], - "url": { - "raw": "http://0.0.0.0:30992/results/1", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "results", - "1" - ] - }, - "description": "Retoune le résultat pour le QCM donné" - }, - "response": [] - }, - { - "name": "/response", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "POST", - "header": [ - { - "key": "Cache-Control", - "value": "no-cache", - "name": "cache-control", - "type": "text" - }, - { - "key": "Postman-Token", - "value": "<calculated when request is sent>", - "name": "postman-token", - "type": "text" - }, - { - "key": "Content-Type", - "value": "multipart/form-data; boundary=<calculated when request is sent>", - "name": "content-type", - "type": "text", - "disabled": true - }, - { - "key": "Content-Length", - "value": "<calculated when request is sent>", - "name": "content-length", - "type": "text" - }, - { - "key": "Host", - "value": "<calculated when request is sent>", - "name": "host", - "type": "text" - }, - { - "key": "User-Agent", - "value": "PostmanRuntime/7.32.1", - "name": "user-agent", - "type": "text" - }, - { - "key": "Accept", - "value": "*/*", - "name": "accept", - "type": "text" - }, - { - "key": "Accept-Encoding", - "value": "gzip, deflate, br", - "name": "accept-encoding", - "type": "text" - }, - { - "key": "Connection", - "value": "keep-alive", - "name": "connection", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "body": { - "mode": "raw", - "raw": "{\"idQuestion\": 1,\"idChoix\": 2,\"idUser\": 959}", - "options": { - "raw": { - "language": "text" - } - } - }, - "url": { - "raw": "http://0.0.0.0:30992/response", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "response" - ] - }, - "description": "Ajoute une nouvelle réponse" - }, - "response": [] - }, - { - "name": "/response", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "DELETE", - "header": [ - { - "key": "Cache-Control", - "value": "no-cache", - "name": "cache-control", - "type": "text" - }, - { - "key": "Postman-Token", - "value": "<calculated when request is sent>", - "name": "postman-token", - "type": "text" - }, - { - "key": "Content-Type", - "value": "text/plain", - "name": "content-type", - "type": "text" - }, - { - "key": "Content-Length", - "value": "<calculated when request is sent>", - "name": "content-length", - "type": "text" - }, - { - "key": "Host", - "value": "<calculated when request is sent>", - "name": "host", - "type": "text" - }, - { - "key": "User-Agent", - "value": "PostmanRuntime/7.32.1", - "name": "user-agent", - "type": "text" - }, - { - "key": "Accept", - "value": "*/*", - "name": "accept", - "type": "text" - }, - { - "key": "Accept-Encoding", - "value": "gzip, deflate, br", - "name": "accept-encoding", - "type": "text" - }, - { - "key": "Connection", - "value": "keep-alive", - "name": "connection", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "url": { - "raw": "http://0.0.0.0:30992/response/3", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "response", - "3" - ] - }, - "description": "Supprime une réponse" - }, - "response": [] - }, - { - "name": "/created_QCMs", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Authorization", - "value": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "name": "authorization", - "type": "text" - }, - { - "key": "Cache-Control", - "value": "no-cache", - "name": "cache-control", - "type": "text" - }, - { - "key": "Postman-Token", - "value": "<calculated when request is sent>", - "name": "postman-token", - "type": "text" - }, - { - "key": "Host", - "value": "<calculated when request is sent>", - "name": "host", - "type": "text" - }, - { - "key": "User-Agent", - "value": "PostmanRuntime/7.32.1", - "name": "user-agent", - "type": "text" - }, - { - "key": "Accept", - "value": "*/*", - "name": "accept", - "type": "text" - }, - { - "key": "Accept-Encoding", - "value": "gzip, deflate, br", - "name": "accept-encoding", - "type": "text" - }, - { - "key": "Connection", - "value": "keep-alive", - "name": "connection", - "type": "text" - } - ], - "body": { - "mode": "formdata", - "formdata": [] - }, - "url": { - "raw": "http://0.0.0.0:30992/created_QCMs/959", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "created_QCMs", - "959" - ] - }, - "description": "Récupère les QCM créés par un utilisateur" - }, - "response": [] - }, - { - "name": "/realised_QCMs", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "GET", - "header": [], - "url": { - "raw": "http://0.0.0.0:30992/realised_QCMs/959", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "realised_QCMs", - "959" - ] - }, - "description": "Récupère les QCM qu'un utilisateur a effectués" - }, - "response": [] - }, - { - "name": "/responses_QCM", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "GET", - "header": [], - "url": { - "raw": "http://0.0.0.0:30992/responses_QCM/8/959", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "responses_QCM", - "8", - "959" - ] - }, - "description": "Récupère les réponses d'un utilisateur à un QCM" - }, - "response": [] - }, - { - "name": "/examen_QCM", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "GET", - "header": [], - "url": { - "raw": "http://0.0.0.0:30992/examen_QCM/8", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "examen_QCM", - "8" - ] - }, - "description": "Récupère un QCM sans renvoyer les réponses correctes" - }, - "response": [] - }, - { - "name": "/terminer", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "PUT", - "header": [], - "body": { - "mode": "raw", - "raw": "", - "options": { - "raw": { - "language": "text" - } - } - }, - "url": { - "raw": "http://0.0.0.0:30992/terminer/959/1", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "terminer", - "959", - "1" - ] - }, - "description": "Termine le QCM d'un utilisateur" - }, - "response": [] - }, - { - "name": "/numeric_response", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "POST", - "header": [ - { - "key": "Cache-Control", - "value": "no-cache", - "name": "cache-control", - "type": "text" - }, - { - "key": "Postman-Token", - "value": "<calculated when request is sent>", - "name": "postman-token", - "type": "text" - }, - { - "key": "Content-Type", - "value": "text/plain", - "name": "content-type", - "type": "text", - "disabled": true - }, - { - "key": "Content-Length", - "value": "<calculated when request is sent>", - "name": "content-length", - "type": "text" - }, - { - "key": "Host", - "value": "<calculated when request is sent>", - "name": "host", - "type": "text" - }, - { - "key": "User-Agent", - "value": "PostmanRuntime/7.32.1", - "name": "user-agent", - "type": "text" - }, - { - "key": "Accept", - "value": "*/*", - "name": "accept", - "type": "text" - }, - { - "key": "Accept-Encoding", - "value": "gzip, deflate, br", - "name": "accept-encoding", - "type": "text" - }, - { - "key": "Connection", - "value": "keep-alive", - "name": "connection", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "body": { - "mode": "raw", - "raw": "{\"idQuestion\": 2,\"answer\": 10,\"idUser\": 959}", - "options": { - "raw": { - "language": "text" - } - } - }, - "url": { - "raw": "http://0.0.0.0:30992/numeric_response", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "numeric_response" - ] - }, - "description": "Ajoute une réponse de type numérique d'un utilisateur" - }, - "response": [] - }, - { - "name": "/numeric_response", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "DELETE", - "header": [], - "url": { - "raw": "http://0.0.0.0:30992/numeric_response/5", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "numeric_response", - "5" - ] - }, - "description": "Supprime une réponse de type numérique d'un utilisateur" - }, - "response": [] - }, - { - "name": "/question", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "DELETE", - "header": [], - "url": { - "raw": "http://0.0.0.0:30992/question/9", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "question", - "9" - ] - }, - "description": "Supprime une question" - }, - "response": [] - }, - { - "name": "/infos_QCM", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "GET", - "header": [], - "url": { - "raw": "http://0.0.0.0:30992/infos_QCM/14", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "infos_QCM", - "14" - ] - }, - "description": "Récupère toutes les informations d'un QCM" - }, - "response": [] - }, - { - "name": "/QCM", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "PUT", - "header": [ - { - "key": "Cache-Control", - "value": "no-cache", - "name": "cache-control", - "type": "text" - }, - { - "key": "Postman-Token", - "value": "<calculated when request is sent>", - "name": "postman-token", - "type": "text" - }, - { - "key": "Content-Length", - "value": "0", - "name": "content-length", - "type": "text" - }, - { - "key": "Host", - "value": "<calculated when request is sent>", - "name": "host", - "type": "text" - }, - { - "key": "User-Agent", - "value": "PostmanRuntime/7.32.1", - "name": "user-agent", - "type": "text" - }, - { - "key": "Accept", - "value": "*/*", - "name": "accept", - "type": "text" - }, - { - "key": "Accept-Encoding", - "value": "gzip, deflate, br", - "name": "accept-encoding", - "type": "text" - }, - { - "key": "Connection", - "value": "keep-alive", - "name": "connection", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"qcm\": {\"nomQcm\": \"SBD 2\", \"randomQuestion\": true, \"tempsMax\": 15000, \"idQcm\": 14}\n}", - "options": { - "raw": { - "language": "text" - } - } - }, - "url": { - "raw": "http://0.0.0.0:30992/QCM", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "QCM" - ] - }, - "description": "Met à jour les informations du QCM" - }, - "response": [] - }, - { - "name": "/feedback", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "PUT", - "header": [ - { - "key": "Cache-Control", - "value": "no-cache", - "name": "cache-control", - "type": "text" - }, - { - "key": "Postman-Token", - "value": "<calculated when request is sent>", - "name": "postman-token", - "type": "text" - }, - { - "key": "Content-Length", - "value": "0", - "name": "content-length", - "type": "text" - }, - { - "key": "Host", - "value": "<calculated when request is sent>", - "name": "host", - "type": "text" - }, - { - "key": "User-Agent", - "value": "PostmanRuntime/7.32.1", - "name": "user-agent", - "type": "text" - }, - { - "key": "Accept", - "value": "*/*", - "name": "accept", - "type": "text" - }, - { - "key": "Accept-Encoding", - "value": "gzip, deflate, br", - "name": "accept-encoding", - "type": "text" - }, - { - "key": "Connection", - "value": "keep-alive", - "name": "connection", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "body": { - "mode": "raw", - "raw": "{\"idQCM\": 8, \"idUser\": 975, \"note\": 4.5, \"feedback\": \"Assez bien\"}", - "options": { - "raw": { - "language": "text" - } - } - }, - "url": { - "raw": "http://0.0.0.0:30992/feedback", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "feedback" - ] - }, - "description": "Met à jour le feedback et la note d'un utilisateur pour un QCM" - }, - "response": [] - }, - { - "name": "/QCM", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "POST", - "header": [ - { - "key": "Cache-Control", - "value": "no-cache", - "name": "cache-control", - "type": "text" - }, - { - "key": "Postman-Token", - "value": "<calculated when request is sent>", - "name": "postman-token", - "type": "text" - }, - { - "key": "Content-Length", - "value": "0", - "name": "content-length", - "type": "text" - }, - { - "key": "Host", - "value": "<calculated when request is sent>", - "name": "host", - "type": "text" - }, - { - "key": "User-Agent", - "value": "PostmanRuntime/7.32.1", - "name": "user-agent", - "type": "text" - }, - { - "key": "Accept", - "value": "*/*", - "name": "accept", - "type": "text" - }, - { - "key": "Accept-Encoding", - "value": "gzip, deflate, br", - "name": "accept-encoding", - "type": "text" - }, - { - "key": "Connection", - "value": "keep-alive", - "name": "connection", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "body": { - "mode": "raw", - "raw": "{\"qcm\": {\"nomQcm\": \"Archi web\", \"randomQuestion\": false, \"tempsMax\": 1000}, \"idUser\": 959}", - "options": { - "raw": { - "language": "text" - } - } - }, - "url": { - "raw": "http://0.0.0.0:30992/QCM", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "QCM" - ] - }, - "description": "Créé un QCM" - }, - "response": [] - }, - { - "name": "/numeric_question", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "POST", - "header": [ - { - "key": "Cache-Control", - "value": "no-cache", - "name": "cache-control", - "type": "text" - }, - { - "key": "Postman-Token", - "value": "<calculated when request is sent>", - "name": "postman-token", - "type": "text" - }, - { - "key": "Content-Length", - "value": "0", - "name": "content-length", - "type": "text" - }, - { - "key": "Host", - "value": "<calculated when request is sent>", - "name": "host", - "type": "text" - }, - { - "key": "User-Agent", - "value": "PostmanRuntime/7.32.1", - "name": "user-agent", - "type": "text" - }, - { - "key": "Accept", - "value": "*/*", - "name": "accept", - "type": "text" - }, - { - "key": "Accept-Encoding", - "value": "gzip, deflate, br", - "name": "accept-encoding", - "type": "text" - }, - { - "key": "Connection", - "value": "keep-alive", - "name": "connection", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "body": { - "mode": "raw", - "raw": "{\"question\": {\"question\": \"Combien font 10*5 ?\", \"nbPtsNegatif\": 2, \"nbPtsPositif\": 10, \"valNum\": 50, \"position\": 1}, \"idUser\": 959, \"idQcm\": 14}", - "options": { - "raw": { - "language": "text" - } - } - }, - "url": { - "raw": "http://0.0.0.0:30992/numeric_question", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "numeric_question" - ] - }, - "description": "Ajoute une question de type numérique à un QCM" - }, - "response": [] - }, - { - "name": "/text_question", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "POST", - "header": [ - { - "key": "Cache-Control", - "value": "no-cache", - "name": "cache-control", - "type": "text" - }, - { - "key": "Postman-Token", - "value": "<calculated when request is sent>", - "name": "postman-token", - "type": "text" - }, - { - "key": "Content-Length", - "value": "0", - "name": "content-length", - "type": "text" - }, - { - "key": "Host", - "value": "<calculated when request is sent>", - "name": "host", - "type": "text" - }, - { - "key": "User-Agent", - "value": "PostmanRuntime/7.32.1", - "name": "user-agent", - "type": "text" - }, - { - "key": "Accept", - "value": "*/*", - "name": "accept", - "type": "text" - }, - { - "key": "Accept-Encoding", - "value": "gzip, deflate, br", - "name": "accept-encoding", - "type": "text" - }, - { - "key": "Connection", - "value": "keep-alive", - "name": "connection", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "body": { - "mode": "raw", - "raw": "{\"question\": {\"question\": \"Quel mois est-on ?\", \"nbPtsNegatif\": 2, \"nbPtsPositif\": 10, \"isMultiple\": false, \"position\": 2, \"randomOrder\": true, \"choix\": [{\"text\": \"Juin\", \"isCorrect\": true}, {\"text\": \"Juillet\", \"isCorrect\": false}]}, \"idQcm\": 14}", - "options": { - "raw": { - "language": "text" - } - } - }, - "url": { - "raw": "http://0.0.0.0:30992/text_question", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "text_question" - ] - }, - "description": "Ajoute un question de type texte à un QCM" - }, - "response": [] - }, - { - "name": "/true_false_question", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "POST", - "header": [ - { - "key": "Cache-Control", - "value": "no-cache", - "name": "cache-control", - "type": "text" - }, - { - "key": "Postman-Token", - "value": "<calculated when request is sent>", - "name": "postman-token", - "type": "text" - }, - { - "key": "Content-Length", - "value": "0", - "name": "content-length", - "type": "text" - }, - { - "key": "Host", - "value": "<calculated when request is sent>", - "name": "host", - "type": "text" - }, - { - "key": "User-Agent", - "value": "PostmanRuntime/7.32.1", - "name": "user-agent", - "type": "text" - }, - { - "key": "Accept", - "value": "*/*", - "name": "accept", - "type": "text" - }, - { - "key": "Accept-Encoding", - "value": "gzip, deflate, br", - "name": "accept-encoding", - "type": "text" - }, - { - "key": "Connection", - "value": "keep-alive", - "name": "connection", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "body": { - "mode": "raw", - "raw": "{\"question\": {\"question\": \"Quel mois est-on ?\", \"nbPtsNegatif\": 2, \"nbPtsPositif\": 10, \"isVraiFaux\": true, \"valVraiFaux\": true, \"position\": 2, \"randomOrder\": false}, \"idQcm\": 14}", - "options": { - "raw": { - "language": "text" - } - } - }, - "url": { - "raw": "http://0.0.0.0:30992/true_false_question", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "true_false_question" - ] - }, - "description": "Ajoute une question de type Vrai/Faux à un QCM" - }, - "response": [] - }, - { - "name": "/join", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "POST", - "header": [ - { - "key": "Cache-Control", - "value": "no-cache", - "name": "cache-control", - "type": "text" - }, - { - "key": "Postman-Token", - "value": "<calculated when request is sent>", - "name": "postman-token", - "type": "text" - }, - { - "key": "Content-Length", - "value": "0", - "name": "content-length", - "type": "text" - }, - { - "key": "Host", - "value": "<calculated when request is sent>", - "name": "host", - "type": "text" - }, - { - "key": "User-Agent", - "value": "PostmanRuntime/7.32.1", - "name": "user-agent", - "type": "text" - }, - { - "key": "Accept", - "value": "*/*", - "name": "accept", - "type": "text" - }, - { - "key": "Accept-Encoding", - "value": "gzip, deflate, br", - "name": "accept-encoding", - "type": "text" - }, - { - "key": "Connection", - "value": "keep-alive", - "name": "connection", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "body": { - "mode": "raw", - "raw": "{\"codeAcces\": 4398, \"idQCM\": 13, \"idUser\": 959}", - "options": { - "raw": { - "language": "text" - } - } - }, - "url": { - "raw": "http://0.0.0.0:30992/join", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "join" - ] - }, - "description": "Rejoint un QCM" - }, - "response": [] - }, - { - "name": "/auth/jwt", - "request": { - "auth": { - "type": "noauth" - }, - "method": "POST", - "header": [ - { - "key": "Cache-Control", - "value": "no-cache", - "name": "cache-control", - "type": "text" - }, - { - "key": "Postman-Token", - "value": "<calculated when request is sent>", - "name": "postman-token", - "type": "text" - }, - { - "key": "Content-Type", - "value": "text/plain", - "name": "content-type", - "type": "text" - }, - { - "key": "Content-Length", - "value": "<calculated when request is sent>", - "name": "content-length", - "type": "text" - }, - { - "key": "Host", - "value": "<calculated when request is sent>", - "name": "host", - "type": "text" - }, - { - "key": "User-Agent", - "value": "PostmanRuntime/7.32.1", - "name": "user-agent", - "type": "text" - }, - { - "key": "Accept", - "value": "*/*", - "name": "accept", - "type": "text" - }, - { - "key": "Accept-Encoding", - "value": "gzip, deflate, br", - "name": "accept-encoding", - "type": "text" - }, - { - "key": "Connection", - "value": "keep-alive", - "name": "connection", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "body": { - "mode": "raw", - "raw": "{ \"code\": 185fb9517156af142f481ffbb5c75857080cd4b01a48aa65373804e23ed63d5f }", - "options": { - "raw": { - "language": "text" - } - } - }, - "url": { - "raw": "http://0.0.0.0:30992/auth/jwt", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "auth", - "jwt" - ] - }, - "description": "Récupère les informations de l'utilisateur depuis gitlab et génère le token JWT" - }, - "response": [] - } - ] -} \ No newline at end of file diff --git a/microservices/helloworld/src/studentHellQCM.postman_collection.json b/microservices/helloworld/src/studentHellQCM.postman_collection.json deleted file mode 100644 index 8a76529e979aced816a8047a002c6057638259f7..0000000000000000000000000000000000000000 --- a/microservices/helloworld/src/studentHellQCM.postman_collection.json +++ /dev/null @@ -1,1452 +0,0 @@ -{ - "info": { - "_postman_id": "5622b838-4f43-42a6-b1a7-f78459643158", - "name": "Architecture web : QCM (Student Hell)", - "description": "API permettant la gestion de QCMs", - "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", - "_exporter_id": "12262300" - }, - "item": [ - { - "name": "/results", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "GET", - "header": [], - "url": { - "raw": "http://0.0.0.0:30992/results/1", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "results", - "1" - ] - }, - "description": "Retoune le résultat pour le QCM donné" - }, - "response": [] - }, - { - "name": "/response", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "POST", - "header": [ - { - "key": "Cache-Control", - "value": "no-cache", - "name": "cache-control", - "type": "text" - }, - { - "key": "Postman-Token", - "value": "<calculated when request is sent>", - "name": "postman-token", - "type": "text" - }, - { - "key": "Content-Type", - "value": "multipart/form-data; boundary=<calculated when request is sent>", - "name": "content-type", - "type": "text", - "disabled": true - }, - { - "key": "Content-Length", - "value": "<calculated when request is sent>", - "name": "content-length", - "type": "text" - }, - { - "key": "Host", - "value": "<calculated when request is sent>", - "name": "host", - "type": "text" - }, - { - "key": "User-Agent", - "value": "PostmanRuntime/7.32.1", - "name": "user-agent", - "type": "text" - }, - { - "key": "Accept", - "value": "*/*", - "name": "accept", - "type": "text" - }, - { - "key": "Accept-Encoding", - "value": "gzip, deflate, br", - "name": "accept-encoding", - "type": "text" - }, - { - "key": "Connection", - "value": "keep-alive", - "name": "connection", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "body": { - "mode": "raw", - "raw": "{\"idQuestion\": 1,\"idChoix\": 2,\"idUser\": 959}", - "options": { - "raw": { - "language": "text" - } - } - }, - "url": { - "raw": "http://0.0.0.0:30992/response", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "response" - ] - }, - "description": "Ajoute une nouvelle réponse" - }, - "response": [] - }, - { - "name": "/response", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "DELETE", - "header": [ - { - "key": "Cache-Control", - "value": "no-cache", - "name": "cache-control", - "type": "text" - }, - { - "key": "Postman-Token", - "value": "<calculated when request is sent>", - "name": "postman-token", - "type": "text" - }, - { - "key": "Content-Type", - "value": "text/plain", - "name": "content-type", - "type": "text" - }, - { - "key": "Content-Length", - "value": "<calculated when request is sent>", - "name": "content-length", - "type": "text" - }, - { - "key": "Host", - "value": "<calculated when request is sent>", - "name": "host", - "type": "text" - }, - { - "key": "User-Agent", - "value": "PostmanRuntime/7.32.1", - "name": "user-agent", - "type": "text" - }, - { - "key": "Accept", - "value": "*/*", - "name": "accept", - "type": "text" - }, - { - "key": "Accept-Encoding", - "value": "gzip, deflate, br", - "name": "accept-encoding", - "type": "text" - }, - { - "key": "Connection", - "value": "keep-alive", - "name": "connection", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "url": { - "raw": "http://0.0.0.0:30992/response/3", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "response", - "3" - ] - }, - "description": "Supprime une réponse" - }, - "response": [] - }, - { - "name": "/created_QCMs", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Authorization", - "value": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "name": "authorization", - "type": "text" - }, - { - "key": "Cache-Control", - "value": "no-cache", - "name": "cache-control", - "type": "text" - }, - { - "key": "Postman-Token", - "value": "<calculated when request is sent>", - "name": "postman-token", - "type": "text" - }, - { - "key": "Host", - "value": "<calculated when request is sent>", - "name": "host", - "type": "text" - }, - { - "key": "User-Agent", - "value": "PostmanRuntime/7.32.1", - "name": "user-agent", - "type": "text" - }, - { - "key": "Accept", - "value": "*/*", - "name": "accept", - "type": "text" - }, - { - "key": "Accept-Encoding", - "value": "gzip, deflate, br", - "name": "accept-encoding", - "type": "text" - }, - { - "key": "Connection", - "value": "keep-alive", - "name": "connection", - "type": "text" - } - ], - "body": { - "mode": "formdata", - "formdata": [] - }, - "url": { - "raw": "http://0.0.0.0:30992/created_QCMs/959", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "created_QCMs", - "959" - ] - }, - "description": "Récupère les QCM créés par un utilisateur" - }, - "response": [] - }, - { - "name": "/realised_QCMs", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "GET", - "header": [], - "url": { - "raw": "http://0.0.0.0:30992/realised_QCMs/959", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "realised_QCMs", - "959" - ] - }, - "description": "Récupère les QCM qu'un utilisateur a effectués" - }, - "response": [] - }, - { - "name": "/responses_QCM", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "GET", - "header": [], - "url": { - "raw": "http://0.0.0.0:30992/responses_QCM/8/959", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "responses_QCM", - "8", - "959" - ] - }, - "description": "Récupère les réponses d'un utilisateur à un QCM" - }, - "response": [] - }, - { - "name": "/examen_QCM", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "GET", - "header": [], - "url": { - "raw": "http://0.0.0.0:30992/examen_QCM/8", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "examen_QCM", - "8" - ] - }, - "description": "Récupère un QCM sans renvoyer les réponses correctes" - }, - "response": [] - }, - { - "name": "/terminer", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "PUT", - "header": [], - "body": { - "mode": "raw", - "raw": "", - "options": { - "raw": { - "language": "text" - } - } - }, - "url": { - "raw": "http://0.0.0.0:30992/terminer/959/1", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "terminer", - "959", - "1" - ] - }, - "description": "Termine le QCM d'un utilisateur" - }, - "response": [] - }, - { - "name": "/numeric_response", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "POST", - "header": [ - { - "key": "Cache-Control", - "value": "no-cache", - "name": "cache-control", - "type": "text" - }, - { - "key": "Postman-Token", - "value": "<calculated when request is sent>", - "name": "postman-token", - "type": "text" - }, - { - "key": "Content-Type", - "value": "text/plain", - "name": "content-type", - "type": "text", - "disabled": true - }, - { - "key": "Content-Length", - "value": "<calculated when request is sent>", - "name": "content-length", - "type": "text" - }, - { - "key": "Host", - "value": "<calculated when request is sent>", - "name": "host", - "type": "text" - }, - { - "key": "User-Agent", - "value": "PostmanRuntime/7.32.1", - "name": "user-agent", - "type": "text" - }, - { - "key": "Accept", - "value": "*/*", - "name": "accept", - "type": "text" - }, - { - "key": "Accept-Encoding", - "value": "gzip, deflate, br", - "name": "accept-encoding", - "type": "text" - }, - { - "key": "Connection", - "value": "keep-alive", - "name": "connection", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "body": { - "mode": "raw", - "raw": "{\"idQuestion\": 2,\"answer\": 10,\"idUser\": 959}", - "options": { - "raw": { - "language": "text" - } - } - }, - "url": { - "raw": "http://0.0.0.0:30992/numeric_response", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "numeric_response" - ] - }, - "description": "Ajoute une réponse de type numérique d'un utilisateur" - }, - "response": [] - }, - { - "name": "/numeric_response", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "DELETE", - "header": [], - "url": { - "raw": "http://0.0.0.0:30992/numeric_response/5", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "numeric_response", - "5" - ] - }, - "description": "Supprime une réponse de type numérique d'un utilisateur" - }, - "response": [] - }, - { - "name": "/question", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "DELETE", - "header": [], - "url": { - "raw": "http://0.0.0.0:30992/question/9", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "question", - "9" - ] - }, - "description": "Supprime une question" - }, - "response": [] - }, - { - "name": "/infos_QCM", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "GET", - "header": [], - "url": { - "raw": "http://0.0.0.0:30992/infos_QCM/14", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "infos_QCM", - "14" - ] - }, - "description": "Récupère toutes les informations d'un QCM" - }, - "response": [] - }, - { - "name": "/QCM", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "PUT", - "header": [ - { - "key": "Cache-Control", - "value": "no-cache", - "name": "cache-control", - "type": "text" - }, - { - "key": "Postman-Token", - "value": "<calculated when request is sent>", - "name": "postman-token", - "type": "text" - }, - { - "key": "Content-Length", - "value": "0", - "name": "content-length", - "type": "text" - }, - { - "key": "Host", - "value": "<calculated when request is sent>", - "name": "host", - "type": "text" - }, - { - "key": "User-Agent", - "value": "PostmanRuntime/7.32.1", - "name": "user-agent", - "type": "text" - }, - { - "key": "Accept", - "value": "*/*", - "name": "accept", - "type": "text" - }, - { - "key": "Accept-Encoding", - "value": "gzip, deflate, br", - "name": "accept-encoding", - "type": "text" - }, - { - "key": "Connection", - "value": "keep-alive", - "name": "connection", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"qcm\": {\"nomQcm\": \"SBD 2\", \"randomQuestion\": true, \"tempsMax\": 15000, \"idQcm\": 14}\n}", - "options": { - "raw": { - "language": "text" - } - } - }, - "url": { - "raw": "http://0.0.0.0:30992/QCM", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "QCM" - ] - }, - "description": "Met à jour les informations du QCM" - }, - "response": [] - }, - { - "name": "/feedback", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "PUT", - "header": [ - { - "key": "Cache-Control", - "value": "no-cache", - "name": "cache-control", - "type": "text" - }, - { - "key": "Postman-Token", - "value": "<calculated when request is sent>", - "name": "postman-token", - "type": "text" - }, - { - "key": "Content-Length", - "value": "0", - "name": "content-length", - "type": "text" - }, - { - "key": "Host", - "value": "<calculated when request is sent>", - "name": "host", - "type": "text" - }, - { - "key": "User-Agent", - "value": "PostmanRuntime/7.32.1", - "name": "user-agent", - "type": "text" - }, - { - "key": "Accept", - "value": "*/*", - "name": "accept", - "type": "text" - }, - { - "key": "Accept-Encoding", - "value": "gzip, deflate, br", - "name": "accept-encoding", - "type": "text" - }, - { - "key": "Connection", - "value": "keep-alive", - "name": "connection", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "body": { - "mode": "raw", - "raw": "{\"idQCM\": 8, \"idUser\": 975, \"note\": 4.5, \"feedback\": \"Assez bien\"}", - "options": { - "raw": { - "language": "text" - } - } - }, - "url": { - "raw": "http://0.0.0.0:30992/feedback", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "feedback" - ] - }, - "description": "Met à jour le feedback et la note d'un utilisateur pour un QCM" - }, - "response": [] - }, - { - "name": "/QCM", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "POST", - "header": [ - { - "key": "Cache-Control", - "value": "no-cache", - "name": "cache-control", - "type": "text" - }, - { - "key": "Postman-Token", - "value": "<calculated when request is sent>", - "name": "postman-token", - "type": "text" - }, - { - "key": "Content-Length", - "value": "0", - "name": "content-length", - "type": "text" - }, - { - "key": "Host", - "value": "<calculated when request is sent>", - "name": "host", - "type": "text" - }, - { - "key": "User-Agent", - "value": "PostmanRuntime/7.32.1", - "name": "user-agent", - "type": "text" - }, - { - "key": "Accept", - "value": "*/*", - "name": "accept", - "type": "text" - }, - { - "key": "Accept-Encoding", - "value": "gzip, deflate, br", - "name": "accept-encoding", - "type": "text" - }, - { - "key": "Connection", - "value": "keep-alive", - "name": "connection", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "body": { - "mode": "raw", - "raw": "{\"qcm\": {\"nomQcm\": \"Archi web\", \"randomQuestion\": false, \"tempsMax\": 1000}, \"idUser\": 959}", - "options": { - "raw": { - "language": "text" - } - } - }, - "url": { - "raw": "http://0.0.0.0:30992/QCM", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "QCM" - ] - }, - "description": "Créé un QCM" - }, - "response": [] - }, - { - "name": "/numeric_question", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "POST", - "header": [ - { - "key": "Cache-Control", - "value": "no-cache", - "name": "cache-control", - "type": "text" - }, - { - "key": "Postman-Token", - "value": "<calculated when request is sent>", - "name": "postman-token", - "type": "text" - }, - { - "key": "Content-Length", - "value": "0", - "name": "content-length", - "type": "text" - }, - { - "key": "Host", - "value": "<calculated when request is sent>", - "name": "host", - "type": "text" - }, - { - "key": "User-Agent", - "value": "PostmanRuntime/7.32.1", - "name": "user-agent", - "type": "text" - }, - { - "key": "Accept", - "value": "*/*", - "name": "accept", - "type": "text" - }, - { - "key": "Accept-Encoding", - "value": "gzip, deflate, br", - "name": "accept-encoding", - "type": "text" - }, - { - "key": "Connection", - "value": "keep-alive", - "name": "connection", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "body": { - "mode": "raw", - "raw": "{\"question\": {\"question\": \"Combien font 10*5 ?\", \"nbPtsNegatif\": 2, \"nbPtsPositif\": 10, \"valNum\": 50, \"position\": 1}, \"idUser\": 959, \"idQcm\": 14}", - "options": { - "raw": { - "language": "text" - } - } - }, - "url": { - "raw": "http://0.0.0.0:30992/numeric_question", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "numeric_question" - ] - }, - "description": "Ajoute une question de type numérique à un QCM" - }, - "response": [] - }, - { - "name": "/text_question", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "POST", - "header": [ - { - "key": "Cache-Control", - "value": "no-cache", - "name": "cache-control", - "type": "text" - }, - { - "key": "Postman-Token", - "value": "<calculated when request is sent>", - "name": "postman-token", - "type": "text" - }, - { - "key": "Content-Length", - "value": "0", - "name": "content-length", - "type": "text" - }, - { - "key": "Host", - "value": "<calculated when request is sent>", - "name": "host", - "type": "text" - }, - { - "key": "User-Agent", - "value": "PostmanRuntime/7.32.1", - "name": "user-agent", - "type": "text" - }, - { - "key": "Accept", - "value": "*/*", - "name": "accept", - "type": "text" - }, - { - "key": "Accept-Encoding", - "value": "gzip, deflate, br", - "name": "accept-encoding", - "type": "text" - }, - { - "key": "Connection", - "value": "keep-alive", - "name": "connection", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "body": { - "mode": "raw", - "raw": "{\"question\": {\"question\": \"Quel mois est-on ?\", \"nbPtsNegatif\": 2, \"nbPtsPositif\": 10, \"isMultiple\": false, \"position\": 2, \"randomOrder\": true, \"choix\": [{\"text\": \"Juin\", \"isCorrect\": true}, {\"text\": \"Juillet\", \"isCorrect\": false}]}, \"idQcm\": 14}", - "options": { - "raw": { - "language": "text" - } - } - }, - "url": { - "raw": "http://0.0.0.0:30992/text_question", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "text_question" - ] - }, - "description": "Ajoute un question de type texte à un QCM" - }, - "response": [] - }, - { - "name": "/true_false_question", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "POST", - "header": [ - { - "key": "Cache-Control", - "value": "no-cache", - "name": "cache-control", - "type": "text" - }, - { - "key": "Postman-Token", - "value": "<calculated when request is sent>", - "name": "postman-token", - "type": "text" - }, - { - "key": "Content-Length", - "value": "0", - "name": "content-length", - "type": "text" - }, - { - "key": "Host", - "value": "<calculated when request is sent>", - "name": "host", - "type": "text" - }, - { - "key": "User-Agent", - "value": "PostmanRuntime/7.32.1", - "name": "user-agent", - "type": "text" - }, - { - "key": "Accept", - "value": "*/*", - "name": "accept", - "type": "text" - }, - { - "key": "Accept-Encoding", - "value": "gzip, deflate, br", - "name": "accept-encoding", - "type": "text" - }, - { - "key": "Connection", - "value": "keep-alive", - "name": "connection", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "body": { - "mode": "raw", - "raw": "{\"question\": {\"question\": \"Quel mois est-on ?\", \"nbPtsNegatif\": 2, \"nbPtsPositif\": 10, \"isVraiFaux\": true, \"valVraiFaux\": true, \"position\": 2, \"randomOrder\": false}, \"idQcm\": 14}", - "options": { - "raw": { - "language": "text" - } - } - }, - "url": { - "raw": "http://0.0.0.0:30992/true_false_question", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "true_false_question" - ] - }, - "description": "Ajoute une question de type Vrai/Faux à un QCM" - }, - "response": [] - }, - { - "name": "/join", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "POST", - "header": [ - { - "key": "Cache-Control", - "value": "no-cache", - "name": "cache-control", - "type": "text" - }, - { - "key": "Postman-Token", - "value": "<calculated when request is sent>", - "name": "postman-token", - "type": "text" - }, - { - "key": "Content-Length", - "value": "0", - "name": "content-length", - "type": "text" - }, - { - "key": "Host", - "value": "<calculated when request is sent>", - "name": "host", - "type": "text" - }, - { - "key": "User-Agent", - "value": "PostmanRuntime/7.32.1", - "name": "user-agent", - "type": "text" - }, - { - "key": "Accept", - "value": "*/*", - "name": "accept", - "type": "text" - }, - { - "key": "Accept-Encoding", - "value": "gzip, deflate, br", - "name": "accept-encoding", - "type": "text" - }, - { - "key": "Connection", - "value": "keep-alive", - "name": "connection", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "body": { - "mode": "raw", - "raw": "{\"codeAcces\": 4398, \"idQCM\": 13, \"idUser\": 959}", - "options": { - "raw": { - "language": "text" - } - } - }, - "url": { - "raw": "http://0.0.0.0:30992/join", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "join" - ] - }, - "description": "Rejoint un QCM" - }, - "response": [] - }, - { - "name": "/auth/jwt", - "request": { - "auth": { - "type": "noauth" - }, - "method": "POST", - "header": [ - { - "key": "Cache-Control", - "value": "no-cache", - "name": "cache-control", - "type": "text" - }, - { - "key": "Postman-Token", - "value": "<calculated when request is sent>", - "name": "postman-token", - "type": "text" - }, - { - "key": "Content-Type", - "value": "text/plain", - "name": "content-type", - "type": "text" - }, - { - "key": "Content-Length", - "value": "<calculated when request is sent>", - "name": "content-length", - "type": "text" - }, - { - "key": "Host", - "value": "<calculated when request is sent>", - "name": "host", - "type": "text" - }, - { - "key": "User-Agent", - "value": "PostmanRuntime/7.32.1", - "name": "user-agent", - "type": "text" - }, - { - "key": "Accept", - "value": "*/*", - "name": "accept", - "type": "text" - }, - { - "key": "Accept-Encoding", - "value": "gzip, deflate, br", - "name": "accept-encoding", - "type": "text" - }, - { - "key": "Connection", - "value": "keep-alive", - "name": "connection", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "body": { - "mode": "raw", - "raw": "{ \"code\": 185fb9517156af142f481ffbb5c75857080cd4b01a48aa65373804e23ed63d5f }", - "options": { - "raw": { - "language": "text" - } - } - }, - "url": { - "raw": "http://0.0.0.0:30992/auth/jwt", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "auth", - "jwt" - ] - }, - "description": "Récupère les informations de l'utilisateur depuis gitlab et génère le token JWT" - }, - "response": [] - } - ] -} \ No newline at end of file diff --git a/microservices/realise_qcm/src/studentHellQCM.postman_collection.json b/microservices/realise_qcm/src/studentHellQCM.postman_collection.json deleted file mode 100644 index 8a76529e979aced816a8047a002c6057638259f7..0000000000000000000000000000000000000000 --- a/microservices/realise_qcm/src/studentHellQCM.postman_collection.json +++ /dev/null @@ -1,1452 +0,0 @@ -{ - "info": { - "_postman_id": "5622b838-4f43-42a6-b1a7-f78459643158", - "name": "Architecture web : QCM (Student Hell)", - "description": "API permettant la gestion de QCMs", - "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", - "_exporter_id": "12262300" - }, - "item": [ - { - "name": "/results", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "GET", - "header": [], - "url": { - "raw": "http://0.0.0.0:30992/results/1", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "results", - "1" - ] - }, - "description": "Retoune le résultat pour le QCM donné" - }, - "response": [] - }, - { - "name": "/response", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "POST", - "header": [ - { - "key": "Cache-Control", - "value": "no-cache", - "name": "cache-control", - "type": "text" - }, - { - "key": "Postman-Token", - "value": "<calculated when request is sent>", - "name": "postman-token", - "type": "text" - }, - { - "key": "Content-Type", - "value": "multipart/form-data; boundary=<calculated when request is sent>", - "name": "content-type", - "type": "text", - "disabled": true - }, - { - "key": "Content-Length", - "value": "<calculated when request is sent>", - "name": "content-length", - "type": "text" - }, - { - "key": "Host", - "value": "<calculated when request is sent>", - "name": "host", - "type": "text" - }, - { - "key": "User-Agent", - "value": "PostmanRuntime/7.32.1", - "name": "user-agent", - "type": "text" - }, - { - "key": "Accept", - "value": "*/*", - "name": "accept", - "type": "text" - }, - { - "key": "Accept-Encoding", - "value": "gzip, deflate, br", - "name": "accept-encoding", - "type": "text" - }, - { - "key": "Connection", - "value": "keep-alive", - "name": "connection", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "body": { - "mode": "raw", - "raw": "{\"idQuestion\": 1,\"idChoix\": 2,\"idUser\": 959}", - "options": { - "raw": { - "language": "text" - } - } - }, - "url": { - "raw": "http://0.0.0.0:30992/response", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "response" - ] - }, - "description": "Ajoute une nouvelle réponse" - }, - "response": [] - }, - { - "name": "/response", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "DELETE", - "header": [ - { - "key": "Cache-Control", - "value": "no-cache", - "name": "cache-control", - "type": "text" - }, - { - "key": "Postman-Token", - "value": "<calculated when request is sent>", - "name": "postman-token", - "type": "text" - }, - { - "key": "Content-Type", - "value": "text/plain", - "name": "content-type", - "type": "text" - }, - { - "key": "Content-Length", - "value": "<calculated when request is sent>", - "name": "content-length", - "type": "text" - }, - { - "key": "Host", - "value": "<calculated when request is sent>", - "name": "host", - "type": "text" - }, - { - "key": "User-Agent", - "value": "PostmanRuntime/7.32.1", - "name": "user-agent", - "type": "text" - }, - { - "key": "Accept", - "value": "*/*", - "name": "accept", - "type": "text" - }, - { - "key": "Accept-Encoding", - "value": "gzip, deflate, br", - "name": "accept-encoding", - "type": "text" - }, - { - "key": "Connection", - "value": "keep-alive", - "name": "connection", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "url": { - "raw": "http://0.0.0.0:30992/response/3", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "response", - "3" - ] - }, - "description": "Supprime une réponse" - }, - "response": [] - }, - { - "name": "/created_QCMs", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Authorization", - "value": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "name": "authorization", - "type": "text" - }, - { - "key": "Cache-Control", - "value": "no-cache", - "name": "cache-control", - "type": "text" - }, - { - "key": "Postman-Token", - "value": "<calculated when request is sent>", - "name": "postman-token", - "type": "text" - }, - { - "key": "Host", - "value": "<calculated when request is sent>", - "name": "host", - "type": "text" - }, - { - "key": "User-Agent", - "value": "PostmanRuntime/7.32.1", - "name": "user-agent", - "type": "text" - }, - { - "key": "Accept", - "value": "*/*", - "name": "accept", - "type": "text" - }, - { - "key": "Accept-Encoding", - "value": "gzip, deflate, br", - "name": "accept-encoding", - "type": "text" - }, - { - "key": "Connection", - "value": "keep-alive", - "name": "connection", - "type": "text" - } - ], - "body": { - "mode": "formdata", - "formdata": [] - }, - "url": { - "raw": "http://0.0.0.0:30992/created_QCMs/959", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "created_QCMs", - "959" - ] - }, - "description": "Récupère les QCM créés par un utilisateur" - }, - "response": [] - }, - { - "name": "/realised_QCMs", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "GET", - "header": [], - "url": { - "raw": "http://0.0.0.0:30992/realised_QCMs/959", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "realised_QCMs", - "959" - ] - }, - "description": "Récupère les QCM qu'un utilisateur a effectués" - }, - "response": [] - }, - { - "name": "/responses_QCM", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "GET", - "header": [], - "url": { - "raw": "http://0.0.0.0:30992/responses_QCM/8/959", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "responses_QCM", - "8", - "959" - ] - }, - "description": "Récupère les réponses d'un utilisateur à un QCM" - }, - "response": [] - }, - { - "name": "/examen_QCM", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "GET", - "header": [], - "url": { - "raw": "http://0.0.0.0:30992/examen_QCM/8", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "examen_QCM", - "8" - ] - }, - "description": "Récupère un QCM sans renvoyer les réponses correctes" - }, - "response": [] - }, - { - "name": "/terminer", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "PUT", - "header": [], - "body": { - "mode": "raw", - "raw": "", - "options": { - "raw": { - "language": "text" - } - } - }, - "url": { - "raw": "http://0.0.0.0:30992/terminer/959/1", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "terminer", - "959", - "1" - ] - }, - "description": "Termine le QCM d'un utilisateur" - }, - "response": [] - }, - { - "name": "/numeric_response", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "POST", - "header": [ - { - "key": "Cache-Control", - "value": "no-cache", - "name": "cache-control", - "type": "text" - }, - { - "key": "Postman-Token", - "value": "<calculated when request is sent>", - "name": "postman-token", - "type": "text" - }, - { - "key": "Content-Type", - "value": "text/plain", - "name": "content-type", - "type": "text", - "disabled": true - }, - { - "key": "Content-Length", - "value": "<calculated when request is sent>", - "name": "content-length", - "type": "text" - }, - { - "key": "Host", - "value": "<calculated when request is sent>", - "name": "host", - "type": "text" - }, - { - "key": "User-Agent", - "value": "PostmanRuntime/7.32.1", - "name": "user-agent", - "type": "text" - }, - { - "key": "Accept", - "value": "*/*", - "name": "accept", - "type": "text" - }, - { - "key": "Accept-Encoding", - "value": "gzip, deflate, br", - "name": "accept-encoding", - "type": "text" - }, - { - "key": "Connection", - "value": "keep-alive", - "name": "connection", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "body": { - "mode": "raw", - "raw": "{\"idQuestion\": 2,\"answer\": 10,\"idUser\": 959}", - "options": { - "raw": { - "language": "text" - } - } - }, - "url": { - "raw": "http://0.0.0.0:30992/numeric_response", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "numeric_response" - ] - }, - "description": "Ajoute une réponse de type numérique d'un utilisateur" - }, - "response": [] - }, - { - "name": "/numeric_response", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "DELETE", - "header": [], - "url": { - "raw": "http://0.0.0.0:30992/numeric_response/5", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "numeric_response", - "5" - ] - }, - "description": "Supprime une réponse de type numérique d'un utilisateur" - }, - "response": [] - }, - { - "name": "/question", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "DELETE", - "header": [], - "url": { - "raw": "http://0.0.0.0:30992/question/9", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "question", - "9" - ] - }, - "description": "Supprime une question" - }, - "response": [] - }, - { - "name": "/infos_QCM", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "GET", - "header": [], - "url": { - "raw": "http://0.0.0.0:30992/infos_QCM/14", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "infos_QCM", - "14" - ] - }, - "description": "Récupère toutes les informations d'un QCM" - }, - "response": [] - }, - { - "name": "/QCM", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "PUT", - "header": [ - { - "key": "Cache-Control", - "value": "no-cache", - "name": "cache-control", - "type": "text" - }, - { - "key": "Postman-Token", - "value": "<calculated when request is sent>", - "name": "postman-token", - "type": "text" - }, - { - "key": "Content-Length", - "value": "0", - "name": "content-length", - "type": "text" - }, - { - "key": "Host", - "value": "<calculated when request is sent>", - "name": "host", - "type": "text" - }, - { - "key": "User-Agent", - "value": "PostmanRuntime/7.32.1", - "name": "user-agent", - "type": "text" - }, - { - "key": "Accept", - "value": "*/*", - "name": "accept", - "type": "text" - }, - { - "key": "Accept-Encoding", - "value": "gzip, deflate, br", - "name": "accept-encoding", - "type": "text" - }, - { - "key": "Connection", - "value": "keep-alive", - "name": "connection", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"qcm\": {\"nomQcm\": \"SBD 2\", \"randomQuestion\": true, \"tempsMax\": 15000, \"idQcm\": 14}\n}", - "options": { - "raw": { - "language": "text" - } - } - }, - "url": { - "raw": "http://0.0.0.0:30992/QCM", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "QCM" - ] - }, - "description": "Met à jour les informations du QCM" - }, - "response": [] - }, - { - "name": "/feedback", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "PUT", - "header": [ - { - "key": "Cache-Control", - "value": "no-cache", - "name": "cache-control", - "type": "text" - }, - { - "key": "Postman-Token", - "value": "<calculated when request is sent>", - "name": "postman-token", - "type": "text" - }, - { - "key": "Content-Length", - "value": "0", - "name": "content-length", - "type": "text" - }, - { - "key": "Host", - "value": "<calculated when request is sent>", - "name": "host", - "type": "text" - }, - { - "key": "User-Agent", - "value": "PostmanRuntime/7.32.1", - "name": "user-agent", - "type": "text" - }, - { - "key": "Accept", - "value": "*/*", - "name": "accept", - "type": "text" - }, - { - "key": "Accept-Encoding", - "value": "gzip, deflate, br", - "name": "accept-encoding", - "type": "text" - }, - { - "key": "Connection", - "value": "keep-alive", - "name": "connection", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "body": { - "mode": "raw", - "raw": "{\"idQCM\": 8, \"idUser\": 975, \"note\": 4.5, \"feedback\": \"Assez bien\"}", - "options": { - "raw": { - "language": "text" - } - } - }, - "url": { - "raw": "http://0.0.0.0:30992/feedback", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "feedback" - ] - }, - "description": "Met à jour le feedback et la note d'un utilisateur pour un QCM" - }, - "response": [] - }, - { - "name": "/QCM", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "POST", - "header": [ - { - "key": "Cache-Control", - "value": "no-cache", - "name": "cache-control", - "type": "text" - }, - { - "key": "Postman-Token", - "value": "<calculated when request is sent>", - "name": "postman-token", - "type": "text" - }, - { - "key": "Content-Length", - "value": "0", - "name": "content-length", - "type": "text" - }, - { - "key": "Host", - "value": "<calculated when request is sent>", - "name": "host", - "type": "text" - }, - { - "key": "User-Agent", - "value": "PostmanRuntime/7.32.1", - "name": "user-agent", - "type": "text" - }, - { - "key": "Accept", - "value": "*/*", - "name": "accept", - "type": "text" - }, - { - "key": "Accept-Encoding", - "value": "gzip, deflate, br", - "name": "accept-encoding", - "type": "text" - }, - { - "key": "Connection", - "value": "keep-alive", - "name": "connection", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "body": { - "mode": "raw", - "raw": "{\"qcm\": {\"nomQcm\": \"Archi web\", \"randomQuestion\": false, \"tempsMax\": 1000}, \"idUser\": 959}", - "options": { - "raw": { - "language": "text" - } - } - }, - "url": { - "raw": "http://0.0.0.0:30992/QCM", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "QCM" - ] - }, - "description": "Créé un QCM" - }, - "response": [] - }, - { - "name": "/numeric_question", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "POST", - "header": [ - { - "key": "Cache-Control", - "value": "no-cache", - "name": "cache-control", - "type": "text" - }, - { - "key": "Postman-Token", - "value": "<calculated when request is sent>", - "name": "postman-token", - "type": "text" - }, - { - "key": "Content-Length", - "value": "0", - "name": "content-length", - "type": "text" - }, - { - "key": "Host", - "value": "<calculated when request is sent>", - "name": "host", - "type": "text" - }, - { - "key": "User-Agent", - "value": "PostmanRuntime/7.32.1", - "name": "user-agent", - "type": "text" - }, - { - "key": "Accept", - "value": "*/*", - "name": "accept", - "type": "text" - }, - { - "key": "Accept-Encoding", - "value": "gzip, deflate, br", - "name": "accept-encoding", - "type": "text" - }, - { - "key": "Connection", - "value": "keep-alive", - "name": "connection", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "body": { - "mode": "raw", - "raw": "{\"question\": {\"question\": \"Combien font 10*5 ?\", \"nbPtsNegatif\": 2, \"nbPtsPositif\": 10, \"valNum\": 50, \"position\": 1}, \"idUser\": 959, \"idQcm\": 14}", - "options": { - "raw": { - "language": "text" - } - } - }, - "url": { - "raw": "http://0.0.0.0:30992/numeric_question", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "numeric_question" - ] - }, - "description": "Ajoute une question de type numérique à un QCM" - }, - "response": [] - }, - { - "name": "/text_question", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "POST", - "header": [ - { - "key": "Cache-Control", - "value": "no-cache", - "name": "cache-control", - "type": "text" - }, - { - "key": "Postman-Token", - "value": "<calculated when request is sent>", - "name": "postman-token", - "type": "text" - }, - { - "key": "Content-Length", - "value": "0", - "name": "content-length", - "type": "text" - }, - { - "key": "Host", - "value": "<calculated when request is sent>", - "name": "host", - "type": "text" - }, - { - "key": "User-Agent", - "value": "PostmanRuntime/7.32.1", - "name": "user-agent", - "type": "text" - }, - { - "key": "Accept", - "value": "*/*", - "name": "accept", - "type": "text" - }, - { - "key": "Accept-Encoding", - "value": "gzip, deflate, br", - "name": "accept-encoding", - "type": "text" - }, - { - "key": "Connection", - "value": "keep-alive", - "name": "connection", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "body": { - "mode": "raw", - "raw": "{\"question\": {\"question\": \"Quel mois est-on ?\", \"nbPtsNegatif\": 2, \"nbPtsPositif\": 10, \"isMultiple\": false, \"position\": 2, \"randomOrder\": true, \"choix\": [{\"text\": \"Juin\", \"isCorrect\": true}, {\"text\": \"Juillet\", \"isCorrect\": false}]}, \"idQcm\": 14}", - "options": { - "raw": { - "language": "text" - } - } - }, - "url": { - "raw": "http://0.0.0.0:30992/text_question", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "text_question" - ] - }, - "description": "Ajoute un question de type texte à un QCM" - }, - "response": [] - }, - { - "name": "/true_false_question", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "POST", - "header": [ - { - "key": "Cache-Control", - "value": "no-cache", - "name": "cache-control", - "type": "text" - }, - { - "key": "Postman-Token", - "value": "<calculated when request is sent>", - "name": "postman-token", - "type": "text" - }, - { - "key": "Content-Length", - "value": "0", - "name": "content-length", - "type": "text" - }, - { - "key": "Host", - "value": "<calculated when request is sent>", - "name": "host", - "type": "text" - }, - { - "key": "User-Agent", - "value": "PostmanRuntime/7.32.1", - "name": "user-agent", - "type": "text" - }, - { - "key": "Accept", - "value": "*/*", - "name": "accept", - "type": "text" - }, - { - "key": "Accept-Encoding", - "value": "gzip, deflate, br", - "name": "accept-encoding", - "type": "text" - }, - { - "key": "Connection", - "value": "keep-alive", - "name": "connection", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "body": { - "mode": "raw", - "raw": "{\"question\": {\"question\": \"Quel mois est-on ?\", \"nbPtsNegatif\": 2, \"nbPtsPositif\": 10, \"isVraiFaux\": true, \"valVraiFaux\": true, \"position\": 2, \"randomOrder\": false}, \"idQcm\": 14}", - "options": { - "raw": { - "language": "text" - } - } - }, - "url": { - "raw": "http://0.0.0.0:30992/true_false_question", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "true_false_question" - ] - }, - "description": "Ajoute une question de type Vrai/Faux à un QCM" - }, - "response": [] - }, - { - "name": "/join", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "POST", - "header": [ - { - "key": "Cache-Control", - "value": "no-cache", - "name": "cache-control", - "type": "text" - }, - { - "key": "Postman-Token", - "value": "<calculated when request is sent>", - "name": "postman-token", - "type": "text" - }, - { - "key": "Content-Length", - "value": "0", - "name": "content-length", - "type": "text" - }, - { - "key": "Host", - "value": "<calculated when request is sent>", - "name": "host", - "type": "text" - }, - { - "key": "User-Agent", - "value": "PostmanRuntime/7.32.1", - "name": "user-agent", - "type": "text" - }, - { - "key": "Accept", - "value": "*/*", - "name": "accept", - "type": "text" - }, - { - "key": "Accept-Encoding", - "value": "gzip, deflate, br", - "name": "accept-encoding", - "type": "text" - }, - { - "key": "Connection", - "value": "keep-alive", - "name": "connection", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "body": { - "mode": "raw", - "raw": "{\"codeAcces\": 4398, \"idQCM\": 13, \"idUser\": 959}", - "options": { - "raw": { - "language": "text" - } - } - }, - "url": { - "raw": "http://0.0.0.0:30992/join", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "join" - ] - }, - "description": "Rejoint un QCM" - }, - "response": [] - }, - { - "name": "/auth/jwt", - "request": { - "auth": { - "type": "noauth" - }, - "method": "POST", - "header": [ - { - "key": "Cache-Control", - "value": "no-cache", - "name": "cache-control", - "type": "text" - }, - { - "key": "Postman-Token", - "value": "<calculated when request is sent>", - "name": "postman-token", - "type": "text" - }, - { - "key": "Content-Type", - "value": "text/plain", - "name": "content-type", - "type": "text" - }, - { - "key": "Content-Length", - "value": "<calculated when request is sent>", - "name": "content-length", - "type": "text" - }, - { - "key": "Host", - "value": "<calculated when request is sent>", - "name": "host", - "type": "text" - }, - { - "key": "User-Agent", - "value": "PostmanRuntime/7.32.1", - "name": "user-agent", - "type": "text" - }, - { - "key": "Accept", - "value": "*/*", - "name": "accept", - "type": "text" - }, - { - "key": "Accept-Encoding", - "value": "gzip, deflate, br", - "name": "accept-encoding", - "type": "text" - }, - { - "key": "Connection", - "value": "keep-alive", - "name": "connection", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "body": { - "mode": "raw", - "raw": "{ \"code\": 185fb9517156af142f481ffbb5c75857080cd4b01a48aa65373804e23ed63d5f }", - "options": { - "raw": { - "language": "text" - } - } - }, - "url": { - "raw": "http://0.0.0.0:30992/auth/jwt", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "auth", - "jwt" - ] - }, - "description": "Récupère les informations de l'utilisateur depuis gitlab et génère le token JWT" - }, - "response": [] - } - ] -} \ No newline at end of file diff --git a/microservices/search_qcm/src/studentHellQCM.postman_collection.json b/microservices/search_qcm/src/studentHellQCM.postman_collection.json deleted file mode 100644 index 8a76529e979aced816a8047a002c6057638259f7..0000000000000000000000000000000000000000 --- a/microservices/search_qcm/src/studentHellQCM.postman_collection.json +++ /dev/null @@ -1,1452 +0,0 @@ -{ - "info": { - "_postman_id": "5622b838-4f43-42a6-b1a7-f78459643158", - "name": "Architecture web : QCM (Student Hell)", - "description": "API permettant la gestion de QCMs", - "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", - "_exporter_id": "12262300" - }, - "item": [ - { - "name": "/results", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "GET", - "header": [], - "url": { - "raw": "http://0.0.0.0:30992/results/1", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "results", - "1" - ] - }, - "description": "Retoune le résultat pour le QCM donné" - }, - "response": [] - }, - { - "name": "/response", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "POST", - "header": [ - { - "key": "Cache-Control", - "value": "no-cache", - "name": "cache-control", - "type": "text" - }, - { - "key": "Postman-Token", - "value": "<calculated when request is sent>", - "name": "postman-token", - "type": "text" - }, - { - "key": "Content-Type", - "value": "multipart/form-data; boundary=<calculated when request is sent>", - "name": "content-type", - "type": "text", - "disabled": true - }, - { - "key": "Content-Length", - "value": "<calculated when request is sent>", - "name": "content-length", - "type": "text" - }, - { - "key": "Host", - "value": "<calculated when request is sent>", - "name": "host", - "type": "text" - }, - { - "key": "User-Agent", - "value": "PostmanRuntime/7.32.1", - "name": "user-agent", - "type": "text" - }, - { - "key": "Accept", - "value": "*/*", - "name": "accept", - "type": "text" - }, - { - "key": "Accept-Encoding", - "value": "gzip, deflate, br", - "name": "accept-encoding", - "type": "text" - }, - { - "key": "Connection", - "value": "keep-alive", - "name": "connection", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "body": { - "mode": "raw", - "raw": "{\"idQuestion\": 1,\"idChoix\": 2,\"idUser\": 959}", - "options": { - "raw": { - "language": "text" - } - } - }, - "url": { - "raw": "http://0.0.0.0:30992/response", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "response" - ] - }, - "description": "Ajoute une nouvelle réponse" - }, - "response": [] - }, - { - "name": "/response", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "DELETE", - "header": [ - { - "key": "Cache-Control", - "value": "no-cache", - "name": "cache-control", - "type": "text" - }, - { - "key": "Postman-Token", - "value": "<calculated when request is sent>", - "name": "postman-token", - "type": "text" - }, - { - "key": "Content-Type", - "value": "text/plain", - "name": "content-type", - "type": "text" - }, - { - "key": "Content-Length", - "value": "<calculated when request is sent>", - "name": "content-length", - "type": "text" - }, - { - "key": "Host", - "value": "<calculated when request is sent>", - "name": "host", - "type": "text" - }, - { - "key": "User-Agent", - "value": "PostmanRuntime/7.32.1", - "name": "user-agent", - "type": "text" - }, - { - "key": "Accept", - "value": "*/*", - "name": "accept", - "type": "text" - }, - { - "key": "Accept-Encoding", - "value": "gzip, deflate, br", - "name": "accept-encoding", - "type": "text" - }, - { - "key": "Connection", - "value": "keep-alive", - "name": "connection", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "url": { - "raw": "http://0.0.0.0:30992/response/3", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "response", - "3" - ] - }, - "description": "Supprime une réponse" - }, - "response": [] - }, - { - "name": "/created_QCMs", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Authorization", - "value": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "name": "authorization", - "type": "text" - }, - { - "key": "Cache-Control", - "value": "no-cache", - "name": "cache-control", - "type": "text" - }, - { - "key": "Postman-Token", - "value": "<calculated when request is sent>", - "name": "postman-token", - "type": "text" - }, - { - "key": "Host", - "value": "<calculated when request is sent>", - "name": "host", - "type": "text" - }, - { - "key": "User-Agent", - "value": "PostmanRuntime/7.32.1", - "name": "user-agent", - "type": "text" - }, - { - "key": "Accept", - "value": "*/*", - "name": "accept", - "type": "text" - }, - { - "key": "Accept-Encoding", - "value": "gzip, deflate, br", - "name": "accept-encoding", - "type": "text" - }, - { - "key": "Connection", - "value": "keep-alive", - "name": "connection", - "type": "text" - } - ], - "body": { - "mode": "formdata", - "formdata": [] - }, - "url": { - "raw": "http://0.0.0.0:30992/created_QCMs/959", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "created_QCMs", - "959" - ] - }, - "description": "Récupère les QCM créés par un utilisateur" - }, - "response": [] - }, - { - "name": "/realised_QCMs", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "GET", - "header": [], - "url": { - "raw": "http://0.0.0.0:30992/realised_QCMs/959", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "realised_QCMs", - "959" - ] - }, - "description": "Récupère les QCM qu'un utilisateur a effectués" - }, - "response": [] - }, - { - "name": "/responses_QCM", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "GET", - "header": [], - "url": { - "raw": "http://0.0.0.0:30992/responses_QCM/8/959", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "responses_QCM", - "8", - "959" - ] - }, - "description": "Récupère les réponses d'un utilisateur à un QCM" - }, - "response": [] - }, - { - "name": "/examen_QCM", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "GET", - "header": [], - "url": { - "raw": "http://0.0.0.0:30992/examen_QCM/8", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "examen_QCM", - "8" - ] - }, - "description": "Récupère un QCM sans renvoyer les réponses correctes" - }, - "response": [] - }, - { - "name": "/terminer", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "PUT", - "header": [], - "body": { - "mode": "raw", - "raw": "", - "options": { - "raw": { - "language": "text" - } - } - }, - "url": { - "raw": "http://0.0.0.0:30992/terminer/959/1", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "terminer", - "959", - "1" - ] - }, - "description": "Termine le QCM d'un utilisateur" - }, - "response": [] - }, - { - "name": "/numeric_response", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "POST", - "header": [ - { - "key": "Cache-Control", - "value": "no-cache", - "name": "cache-control", - "type": "text" - }, - { - "key": "Postman-Token", - "value": "<calculated when request is sent>", - "name": "postman-token", - "type": "text" - }, - { - "key": "Content-Type", - "value": "text/plain", - "name": "content-type", - "type": "text", - "disabled": true - }, - { - "key": "Content-Length", - "value": "<calculated when request is sent>", - "name": "content-length", - "type": "text" - }, - { - "key": "Host", - "value": "<calculated when request is sent>", - "name": "host", - "type": "text" - }, - { - "key": "User-Agent", - "value": "PostmanRuntime/7.32.1", - "name": "user-agent", - "type": "text" - }, - { - "key": "Accept", - "value": "*/*", - "name": "accept", - "type": "text" - }, - { - "key": "Accept-Encoding", - "value": "gzip, deflate, br", - "name": "accept-encoding", - "type": "text" - }, - { - "key": "Connection", - "value": "keep-alive", - "name": "connection", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "body": { - "mode": "raw", - "raw": "{\"idQuestion\": 2,\"answer\": 10,\"idUser\": 959}", - "options": { - "raw": { - "language": "text" - } - } - }, - "url": { - "raw": "http://0.0.0.0:30992/numeric_response", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "numeric_response" - ] - }, - "description": "Ajoute une réponse de type numérique d'un utilisateur" - }, - "response": [] - }, - { - "name": "/numeric_response", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "DELETE", - "header": [], - "url": { - "raw": "http://0.0.0.0:30992/numeric_response/5", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "numeric_response", - "5" - ] - }, - "description": "Supprime une réponse de type numérique d'un utilisateur" - }, - "response": [] - }, - { - "name": "/question", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "DELETE", - "header": [], - "url": { - "raw": "http://0.0.0.0:30992/question/9", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "question", - "9" - ] - }, - "description": "Supprime une question" - }, - "response": [] - }, - { - "name": "/infos_QCM", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "GET", - "header": [], - "url": { - "raw": "http://0.0.0.0:30992/infos_QCM/14", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "infos_QCM", - "14" - ] - }, - "description": "Récupère toutes les informations d'un QCM" - }, - "response": [] - }, - { - "name": "/QCM", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "PUT", - "header": [ - { - "key": "Cache-Control", - "value": "no-cache", - "name": "cache-control", - "type": "text" - }, - { - "key": "Postman-Token", - "value": "<calculated when request is sent>", - "name": "postman-token", - "type": "text" - }, - { - "key": "Content-Length", - "value": "0", - "name": "content-length", - "type": "text" - }, - { - "key": "Host", - "value": "<calculated when request is sent>", - "name": "host", - "type": "text" - }, - { - "key": "User-Agent", - "value": "PostmanRuntime/7.32.1", - "name": "user-agent", - "type": "text" - }, - { - "key": "Accept", - "value": "*/*", - "name": "accept", - "type": "text" - }, - { - "key": "Accept-Encoding", - "value": "gzip, deflate, br", - "name": "accept-encoding", - "type": "text" - }, - { - "key": "Connection", - "value": "keep-alive", - "name": "connection", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"qcm\": {\"nomQcm\": \"SBD 2\", \"randomQuestion\": true, \"tempsMax\": 15000, \"idQcm\": 14}\n}", - "options": { - "raw": { - "language": "text" - } - } - }, - "url": { - "raw": "http://0.0.0.0:30992/QCM", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "QCM" - ] - }, - "description": "Met à jour les informations du QCM" - }, - "response": [] - }, - { - "name": "/feedback", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "PUT", - "header": [ - { - "key": "Cache-Control", - "value": "no-cache", - "name": "cache-control", - "type": "text" - }, - { - "key": "Postman-Token", - "value": "<calculated when request is sent>", - "name": "postman-token", - "type": "text" - }, - { - "key": "Content-Length", - "value": "0", - "name": "content-length", - "type": "text" - }, - { - "key": "Host", - "value": "<calculated when request is sent>", - "name": "host", - "type": "text" - }, - { - "key": "User-Agent", - "value": "PostmanRuntime/7.32.1", - "name": "user-agent", - "type": "text" - }, - { - "key": "Accept", - "value": "*/*", - "name": "accept", - "type": "text" - }, - { - "key": "Accept-Encoding", - "value": "gzip, deflate, br", - "name": "accept-encoding", - "type": "text" - }, - { - "key": "Connection", - "value": "keep-alive", - "name": "connection", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "body": { - "mode": "raw", - "raw": "{\"idQCM\": 8, \"idUser\": 975, \"note\": 4.5, \"feedback\": \"Assez bien\"}", - "options": { - "raw": { - "language": "text" - } - } - }, - "url": { - "raw": "http://0.0.0.0:30992/feedback", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "feedback" - ] - }, - "description": "Met à jour le feedback et la note d'un utilisateur pour un QCM" - }, - "response": [] - }, - { - "name": "/QCM", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "POST", - "header": [ - { - "key": "Cache-Control", - "value": "no-cache", - "name": "cache-control", - "type": "text" - }, - { - "key": "Postman-Token", - "value": "<calculated when request is sent>", - "name": "postman-token", - "type": "text" - }, - { - "key": "Content-Length", - "value": "0", - "name": "content-length", - "type": "text" - }, - { - "key": "Host", - "value": "<calculated when request is sent>", - "name": "host", - "type": "text" - }, - { - "key": "User-Agent", - "value": "PostmanRuntime/7.32.1", - "name": "user-agent", - "type": "text" - }, - { - "key": "Accept", - "value": "*/*", - "name": "accept", - "type": "text" - }, - { - "key": "Accept-Encoding", - "value": "gzip, deflate, br", - "name": "accept-encoding", - "type": "text" - }, - { - "key": "Connection", - "value": "keep-alive", - "name": "connection", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "body": { - "mode": "raw", - "raw": "{\"qcm\": {\"nomQcm\": \"Archi web\", \"randomQuestion\": false, \"tempsMax\": 1000}, \"idUser\": 959}", - "options": { - "raw": { - "language": "text" - } - } - }, - "url": { - "raw": "http://0.0.0.0:30992/QCM", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "QCM" - ] - }, - "description": "Créé un QCM" - }, - "response": [] - }, - { - "name": "/numeric_question", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "POST", - "header": [ - { - "key": "Cache-Control", - "value": "no-cache", - "name": "cache-control", - "type": "text" - }, - { - "key": "Postman-Token", - "value": "<calculated when request is sent>", - "name": "postman-token", - "type": "text" - }, - { - "key": "Content-Length", - "value": "0", - "name": "content-length", - "type": "text" - }, - { - "key": "Host", - "value": "<calculated when request is sent>", - "name": "host", - "type": "text" - }, - { - "key": "User-Agent", - "value": "PostmanRuntime/7.32.1", - "name": "user-agent", - "type": "text" - }, - { - "key": "Accept", - "value": "*/*", - "name": "accept", - "type": "text" - }, - { - "key": "Accept-Encoding", - "value": "gzip, deflate, br", - "name": "accept-encoding", - "type": "text" - }, - { - "key": "Connection", - "value": "keep-alive", - "name": "connection", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "body": { - "mode": "raw", - "raw": "{\"question\": {\"question\": \"Combien font 10*5 ?\", \"nbPtsNegatif\": 2, \"nbPtsPositif\": 10, \"valNum\": 50, \"position\": 1}, \"idUser\": 959, \"idQcm\": 14}", - "options": { - "raw": { - "language": "text" - } - } - }, - "url": { - "raw": "http://0.0.0.0:30992/numeric_question", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "numeric_question" - ] - }, - "description": "Ajoute une question de type numérique à un QCM" - }, - "response": [] - }, - { - "name": "/text_question", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "POST", - "header": [ - { - "key": "Cache-Control", - "value": "no-cache", - "name": "cache-control", - "type": "text" - }, - { - "key": "Postman-Token", - "value": "<calculated when request is sent>", - "name": "postman-token", - "type": "text" - }, - { - "key": "Content-Length", - "value": "0", - "name": "content-length", - "type": "text" - }, - { - "key": "Host", - "value": "<calculated when request is sent>", - "name": "host", - "type": "text" - }, - { - "key": "User-Agent", - "value": "PostmanRuntime/7.32.1", - "name": "user-agent", - "type": "text" - }, - { - "key": "Accept", - "value": "*/*", - "name": "accept", - "type": "text" - }, - { - "key": "Accept-Encoding", - "value": "gzip, deflate, br", - "name": "accept-encoding", - "type": "text" - }, - { - "key": "Connection", - "value": "keep-alive", - "name": "connection", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "body": { - "mode": "raw", - "raw": "{\"question\": {\"question\": \"Quel mois est-on ?\", \"nbPtsNegatif\": 2, \"nbPtsPositif\": 10, \"isMultiple\": false, \"position\": 2, \"randomOrder\": true, \"choix\": [{\"text\": \"Juin\", \"isCorrect\": true}, {\"text\": \"Juillet\", \"isCorrect\": false}]}, \"idQcm\": 14}", - "options": { - "raw": { - "language": "text" - } - } - }, - "url": { - "raw": "http://0.0.0.0:30992/text_question", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "text_question" - ] - }, - "description": "Ajoute un question de type texte à un QCM" - }, - "response": [] - }, - { - "name": "/true_false_question", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "POST", - "header": [ - { - "key": "Cache-Control", - "value": "no-cache", - "name": "cache-control", - "type": "text" - }, - { - "key": "Postman-Token", - "value": "<calculated when request is sent>", - "name": "postman-token", - "type": "text" - }, - { - "key": "Content-Length", - "value": "0", - "name": "content-length", - "type": "text" - }, - { - "key": "Host", - "value": "<calculated when request is sent>", - "name": "host", - "type": "text" - }, - { - "key": "User-Agent", - "value": "PostmanRuntime/7.32.1", - "name": "user-agent", - "type": "text" - }, - { - "key": "Accept", - "value": "*/*", - "name": "accept", - "type": "text" - }, - { - "key": "Accept-Encoding", - "value": "gzip, deflate, br", - "name": "accept-encoding", - "type": "text" - }, - { - "key": "Connection", - "value": "keep-alive", - "name": "connection", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "body": { - "mode": "raw", - "raw": "{\"question\": {\"question\": \"Quel mois est-on ?\", \"nbPtsNegatif\": 2, \"nbPtsPositif\": 10, \"isVraiFaux\": true, \"valVraiFaux\": true, \"position\": 2, \"randomOrder\": false}, \"idQcm\": 14}", - "options": { - "raw": { - "language": "text" - } - } - }, - "url": { - "raw": "http://0.0.0.0:30992/true_false_question", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "true_false_question" - ] - }, - "description": "Ajoute une question de type Vrai/Faux à un QCM" - }, - "response": [] - }, - { - "name": "/join", - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OTU5LCJpYXQiOjE3MTg3MzMxOTl9.zWu2svH1I5vO7RWOShHyCedEJgnhJBZpxf_ziMv6N3U", - "type": "string" - } - ] - }, - "method": "POST", - "header": [ - { - "key": "Cache-Control", - "value": "no-cache", - "name": "cache-control", - "type": "text" - }, - { - "key": "Postman-Token", - "value": "<calculated when request is sent>", - "name": "postman-token", - "type": "text" - }, - { - "key": "Content-Length", - "value": "0", - "name": "content-length", - "type": "text" - }, - { - "key": "Host", - "value": "<calculated when request is sent>", - "name": "host", - "type": "text" - }, - { - "key": "User-Agent", - "value": "PostmanRuntime/7.32.1", - "name": "user-agent", - "type": "text" - }, - { - "key": "Accept", - "value": "*/*", - "name": "accept", - "type": "text" - }, - { - "key": "Accept-Encoding", - "value": "gzip, deflate, br", - "name": "accept-encoding", - "type": "text" - }, - { - "key": "Connection", - "value": "keep-alive", - "name": "connection", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "body": { - "mode": "raw", - "raw": "{\"codeAcces\": 4398, \"idQCM\": 13, \"idUser\": 959}", - "options": { - "raw": { - "language": "text" - } - } - }, - "url": { - "raw": "http://0.0.0.0:30992/join", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "join" - ] - }, - "description": "Rejoint un QCM" - }, - "response": [] - }, - { - "name": "/auth/jwt", - "request": { - "auth": { - "type": "noauth" - }, - "method": "POST", - "header": [ - { - "key": "Cache-Control", - "value": "no-cache", - "name": "cache-control", - "type": "text" - }, - { - "key": "Postman-Token", - "value": "<calculated when request is sent>", - "name": "postman-token", - "type": "text" - }, - { - "key": "Content-Type", - "value": "text/plain", - "name": "content-type", - "type": "text" - }, - { - "key": "Content-Length", - "value": "<calculated when request is sent>", - "name": "content-length", - "type": "text" - }, - { - "key": "Host", - "value": "<calculated when request is sent>", - "name": "host", - "type": "text" - }, - { - "key": "User-Agent", - "value": "PostmanRuntime/7.32.1", - "name": "user-agent", - "type": "text" - }, - { - "key": "Accept", - "value": "*/*", - "name": "accept", - "type": "text" - }, - { - "key": "Accept-Encoding", - "value": "gzip, deflate, br", - "name": "accept-encoding", - "type": "text" - }, - { - "key": "Connection", - "value": "keep-alive", - "name": "connection", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "body": { - "mode": "raw", - "raw": "{ \"code\": 185fb9517156af142f481ffbb5c75857080cd4b01a48aa65373804e23ed63d5f }", - "options": { - "raw": { - "language": "text" - } - } - }, - "url": { - "raw": "http://0.0.0.0:30992/auth/jwt", - "protocol": "http", - "host": [ - "0", - "0", - "0", - "0" - ], - "port": "30992", - "path": [ - "auth", - "jwt" - ] - }, - "description": "Récupère les informations de l'utilisateur depuis gitlab et génère le token JWT" - }, - "response": [] - } - ] -} \ No newline at end of file