From f0b85fa500a811e9f47cc42bcb0398689e876603 Mon Sep 17 00:00:00 2001 From: Cristiano Ferreira Date: Fri, 23 Jun 2023 00:09:12 +0100 Subject: [PATCH] Update postman collection with speaking endpoint requests. --- postman/ielts.postman_collection.json | 85 +++++++++++++++++++++++++++ 1 file changed, 85 insertions(+) diff --git a/postman/ielts.postman_collection.json b/postman/ielts.postman_collection.json index 14fa7c7..441d74b 100644 --- a/postman/ielts.postman_collection.json +++ b/postman/ielts.postman_collection.json @@ -90,6 +90,91 @@ } }, "response": [] + }, + { + "name": "Grade Answer Speaking Task", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{jwt_token}}", + "type": "string" + } + ] + }, + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\r\n \"question\": \"How do you usually spend your weekends? Why?\",\r\n \"answer\": \"speaking_recordings/weekends.m4a\"\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://127.0.0.1:5000/speaking_task", + "protocol": "http", + "host": [ + "127", + "0", + "0", + "1" + ], + "port": "5000", + "path": [ + "speaking_task" + ] + } + }, + "response": [] + }, + { + "name": "Gen Question Speaking Task", + "protocolProfileBehavior": { + "disableBodyPruning": true + }, + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{jwt_token}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "body": { + "mode": "raw", + "raw": "", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://127.0.0.1:5000/writing_task2", + "protocol": "http", + "host": [ + "127", + "0", + "0", + "1" + ], + "port": "5000", + "path": [ + "writing_task2" + ] + } + }, + "response": [] } ] } \ No newline at end of file