{"info":{"_postman_id":"fe56b341-beb7-4321-bbd9-80bba29d6580","name":"Spring Form","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"5740451","collectionId":"fe56b341-beb7-4321-bbd9-80bba29d6580","publishedId":"2sAYBPnEoE","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-11-18T00:40:42.000Z"},"item":[{"name":"Login","id":"2e3a9c8d-ff80-4ad8-94db-386f24290d5b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"user1@webtech.id\",\n    \"password\": \"password1\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/v1/auth/login","urlObject":{"protocol":"http","port":"8080","path":["api","v1","auth","login"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"7b3f449c-bbf4-4ee7-b90b-2592595eeb80","name":"Response 200","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"user1@webtech.id\",\n    \"password\": \"password1\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/v1/auth/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Mon, 18 Nov 2024 00:35:36 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"login successful\",\n    \"data\": {\n        \"name\": \"User 1\",\n        \"email\": \"user1@webtech.id\",\n        \"accessToken\": \"eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ1c2VyMUB3ZWJ0ZWNoLmlkIiwiaWF0IjoxNzMxODkwMTM2LCJleHAiOjE3MzE5NzY1MzZ9.8T5wkEQSz7fIsE50rskVZKZIb27sqC00oDF8XIlXprM\"\n    }\n}"}],"_postman_id":"2e3a9c8d-ff80-4ad8-94db-386f24290d5b"},{"name":"Form","id":"b7735aa4-465d-40e1-9cf1-5e71ba51f865","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Web Pemrogramm\",\n    \"slug\": \"web-perm-2\",\n    \"description\": \"lorensum ipsum\",\n    \"is_one_response\": true,\n    \"allowed_domains\": [\"@webtech.id\"]\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/v1/form","urlObject":{"protocol":"http","port":"8080","path":["api","v1","form"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"74fd0630-bdd1-4db9-9ec5-d661c21d66fa","name":"Response 200","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Web Pemrogramm\",\n    \"slug\": \"web-perm-2\",\n    \"description\": \"lorensum ipsum\",\n    \"is_one_response\": true,\n    \"allowed_domains\": [\"@webtech.id\"]\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/v1/form"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Mon, 18 Nov 2024 00:35:58 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"Create form success\",\n    \"data\": {\n        \"id\": 25,\n        \"name\": \"Web Pemrogramm\",\n        \"slug\": \"web-perm-2\",\n        \"description\": \"lorensum ipsum\",\n        \"limit_one_response\": true,\n        \"creator_id\": 5\n    }\n}"},{"id":"a6bec4cb-5e70-4895-b308-607fc5a8ac2a","name":"Response 422","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"slug\": \"web-perm-2\",\n    \"description\": \"lorensum ipsum\",\n    \"is_one_response\": true,\n    \"allowed_domains\": [\"@webtech.id\"]\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/v1/form"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Mon, 18 Nov 2024 00:36:15 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"error\",\n    \"message\": \"Invalid field\",\n    \"data\": {\n        \"name\": [\n            \"The name field is required.\"\n        ]\n    }\n}"}],"_postman_id":"b7735aa4-465d-40e1-9cf1-5e71ba51f865"},{"name":"Question","id":"e7dd9896-8997-48a7-af92-696a38c1028f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"New Java Version\",\n    \"choice_type\": \"SHORT_ANSWER\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/v1/form/:slug/question","urlObject":{"protocol":"http","port":"8080","path":["api","v1","form",":slug","question"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"web-perm-1","key":"slug"}]}},"response":[{"id":"c827600e-5d8f-4eef-820d-b083ac6aea11","name":"Response 200","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"New Java Version\",\n    \"choice_type\": \"SHORT_ANSWER\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:8080/api/v1/form/:slug/question","protocol":"http","host":["localhost"],"port":"8080","path":["api","v1","form",":slug","question"],"variable":[{"key":"slug","value":"web-perm-1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sun, 17 Nov 2024 16:50:44 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"Add question success\",\n    \"data\": {\n        \"id\": 14,\n        \"form_id\": 24,\n        \"name\": \"New Java Version\",\n        \"choice_type\": \"Short Answer\",\n        \"is_required\": false,\n        \"choices\": []\n    }\n}"}],"_postman_id":"e7dd9896-8997-48a7-af92-696a38c1028f"},{"name":"List Form","id":"d22ef235-69ea-4f64-a438-760b2d9e67fc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8080/api/v1/form","urlObject":{"protocol":"http","port":"8080","path":["api","v1","form"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"0d600572-9c80-43f1-9e35-20d0b46bc44c","name":"Response 200","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/api/v1/form"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sun, 17 Nov 2024 16:30:35 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"Get all forms success\",\n    \"data\": [\n        {\n            \"id\": 24,\n            \"name\": \"Web Pemrogramm\",\n            \"slug\": \"web-perm-1\",\n            \"description\": \"lorensum ipsum\",\n            \"limit_one_response\": true,\n            \"creator_id\": 5\n        }\n    ]\n}"}],"_postman_id":"d22ef235-69ea-4f64-a438-760b2d9e67fc"},{"name":"Detail Form","id":"23a63335-1edb-4639-87cf-f116ae255c4b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8080/api/v1/form/:slug","urlObject":{"protocol":"http","port":"8080","path":["api","v1","form",":slug"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"web-perm-1","key":"slug"}]}},"response":[{"id":"4328bbde-5092-4621-8430-545ae2f22d44","name":"Response 200","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:8080/api/v1/form/:slug","protocol":"http","host":["localhost"],"port":"8080","path":["api","v1","form",":slug"],"variable":[{"key":"slug","value":"web-perm-1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sun, 17 Nov 2024 14:48:07 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"Get form success\",\n    \"data\": {\n        \"id\": 24,\n        \"name\": \"Web Pemrogramm\",\n        \"slug\": \"web-perm-1\",\n        \"description\": \"lorensum ipsum\",\n        \"limit_one_response\": true,\n        \"creator_id\": 5,\n        \"questions\": [\n            {\n                \"id\": 10,\n                \"form_id\": 24,\n                \"name\": \"Mature Language\",\n                \"choice_type\": \"Multiple Choice\",\n                \"is_required\": true,\n                \"choices\": [\n                    \"Laravel\",\n                    \"Java\"\n                ]\n            },\n            {\n                \"id\": 11,\n                \"form_id\": 24,\n                \"name\": \"What is latest PHP Version\",\n                \"choice_type\": \"Paragraph\",\n                \"is_required\": true,\n                \"choices\": []\n            },\n            {\n                \"id\": 12,\n                \"form_id\": 24,\n                \"name\": \"What is JPA in JAVA\",\n                \"choice_type\": \"Paragraph\",\n                \"is_required\": true,\n                \"choices\": []\n            },\n            {\n                \"id\": 13,\n                \"form_id\": 24,\n                \"name\": \"Framework CSS\",\n                \"choice_type\": \"Short Answer\",\n                \"is_required\": false,\n                \"choices\": []\n            }\n        ]\n    }\n}"}],"_postman_id":"23a63335-1edb-4639-87cf-f116ae255c4b"},{"name":"Answer","id":"85f31940-e40f-4282-ade8-111507010f3b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"answers\": [\n        {\n            \"question_id\": 10,\n            \"value\": \"Java\"\n        },\n        {\n            \"question_id\": 11,\n            \"value\": \"8.2\"\n        },\n        {\n            \"question_id\": 12,\n            \"value\": \"JAVA PERSINTANCE API\"\n        },\n        {\n            \"question_id\": 13,\n            \"value\": \"Bootstrap\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/v1/form/:slug/answer","urlObject":{"protocol":"http","port":"8080","path":["api","v1","form",":slug","answer"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"web-perm-1","key":"slug"}]}},"response":[{"id":"a763e24e-9adf-45ca-9197-dee394a72132","name":"Response 200","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"answers\": [\n        {\n            \"question_id\": 10,\n            \"value\": \"Java\"\n        },\n        {\n            \"question_id\": 11,\n            \"value\": \"8.2\"\n        },\n        {\n            \"question_id\": 12,\n            \"value\": \"JAVA PERSINTANCE API\"\n        },\n        {\n            \"question_id\": 13,\n            \"value\": \"Bootstrap\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:8080/api/v1/form/:slug/answer","protocol":"http","host":["localhost"],"port":"8080","path":["api","v1","form",":slug","answer"],"variable":[{"key":"slug","value":"web-perm-1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sun, 17 Nov 2024 15:22:18 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"Submit response success\",\n    \"data\": null\n}"}],"_postman_id":"85f31940-e40f-4282-ade8-111507010f3b"},{"name":"Answer","id":"21317d4f-9f4d-41af-af17-715c74cb5d5e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8080/api/v1/form/:slug/answer","urlObject":{"protocol":"http","port":"8080","path":["api","v1","form",":slug","answer"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"web-perm-1","key":"slug"}]}},"response":[{"id":"ede50a94-2542-4c39-9d62-3ef317caa480","name":"Response 200","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:8080/api/v1/form/:slug/answer","protocol":"http","host":["localhost"],"port":"8080","path":["api","v1","form",":slug","answer"],"variable":[{"key":"slug","value":"web-perm-1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sun, 17 Nov 2024 16:30:00 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"Get responses success\",\n    \"data\": [\n        {\n            \"date\": \"2024-11-17T15:22:18.645+00:00\",\n            \"user\": {\n                \"id\": 5,\n                \"name\": \"User 1\",\n                \"email\": \"user1@webtech.id\"\n            },\n            \"answers\": {\n                \"Mature Language\": \"Java\",\n                \"Framework CSS\": \"Bootstrap\",\n                \"What is latest PHP Version\": \"8.2\",\n                \"What is JPA in JAVA\": \"JAVA PERSINTANCE API\"\n            }\n        }\n    ]\n}"}],"_postman_id":"21317d4f-9f4d-41af-af17-715c74cb5d5e"},{"name":"Question","id":"4386b4c7-28a7-45d0-9fa8-1b9e2b395912","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"url":"http://localhost:8080/api/v1/form/:slug/question/:id","urlObject":{"protocol":"http","port":"8080","path":["api","v1","form",":slug","question",":id"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"web-perm-1","key":"slug"},{"type":"any","value":"14","key":"id"}]}},"response":[{"id":"8265d5c4-53b2-4738-8df7-dfc20aafb21d","name":"Response 200","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"http://localhost:8080/api/v1/form/:slug/question/:id","protocol":"http","host":["localhost"],"port":"8080","path":["api","v1","form",":slug","question",":id"],"variable":[{"key":"slug","value":"web-perm-1"},{"key":"id","value":"14"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sun, 17 Nov 2024 16:57:13 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"Remove question success\",\n    \"data\": null\n}"}],"_postman_id":"4386b4c7-28a7-45d0-9fa8-1b9e2b395912"}]}