{"info":{"_postman_id":"917e8d5b-5369-448d-a71c-38c56c178426","name":"AW API Coding Test - Bishesh Shrestha","description":"<html><head></head><body><h2 id=\"important\">IMPORTANT</h2>\n<p>Please refer to the provided Postman Collection for the API specification and implement all endpoints accordingly.</p>\n<h3 id=\"request-structure\">Request Structure</h3>\n<p>All request payloads must strictly follow the structure defined in the Postman Collection.</p>\n<h3 id=\"response-structure\">Response Structure</h3>\n<ul>\n<li><p>The examples provided in the collection demonstrate successful responses.</p>\n</li>\n<li><p>For unsuccessful requests, appropriate HTTP status codes and error messages should be returned.</p>\n</li>\n<li><p>Exception: The Sign-Up endpoint returns no response body for both validation errors and other failures, as per the API specification.</p>\n</li>\n</ul>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"32115070","collectionId":"917e8d5b-5369-448d-a71c-38c56c178426","publishedId":"2sBXiqDTaG","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2026-04-04T11:51:08.000Z"},"item":[{"name":"User","item":[{"name":"Sign-Up","id":"71f0f80f-b941-4ea3-bc2b-657e7be629a9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"firstName\": \"\", // Required\r\n    \"lastName\": \"\", // Required\r\n    \"email\": \"\", // Required\r\n    \"password\": \"\", // Required\r\n    \"country\": \"\" // Optional\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/users/signup","description":"<p>Create new user.</p>\n","urlObject":{"path":["users","signup"],"host":["http://localhost:3000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"188d27d4-4d16-4b08-be5d-5abaacdbfe3e","name":"Sign-Up Validation Error","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"firstName\": \"Bishesh\", // Required\r\n    \"lastName\": \"Ganesh\", // Required\r\n    \"email\": \"abc.com\", // Required\r\n    \"password\": \"pass\", // Required\r\n    \"country\": \"Nepal\" // Optional\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/users/signup"},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":""},{"id":"44dfced2-2dee-4ee7-a2d7-754731b9c611","name":"Sign-Up Response Example","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"firstName\": \"Bishesh\", // Required\r\n    \"lastName\": \"Ganesh\", // Required\r\n    \"email\": \"bishesh@email.com\", // Required\r\n    \"password\": \"password\", // Required\r\n    \"country\": \"Nepal\" // Optional\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/users/signup"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"5\",\n        \"type\": \"users\",\n        \"attributes\": {\n            \"token\": \"eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjo1LCJleHAiOjE3NzUzODQ0MTh9.nkvHToUZ1Om8wLLP-8vF2ST9ST2F1uxB0QJYK3ikdAo\",\n            \"email\": \"bishesh@email.com\",\n            \"name\": \"Bishesh Ganesh\",\n            \"country\": \"Nepal\",\n            \"createdAt\": \"2026-04-04T10:20:18.554Z\",\n            \"updatedAt\": \"2026-04-04T10:20:18.554Z\"\n        }\n    }\n}"}],"_postman_id":"71f0f80f-b941-4ea3-bc2b-657e7be629a9"},{"name":"Sign-In","id":"01ed023c-f409-4abd-beb7-05b504023c7a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"auth\": {\r\n        \"email\": \"\", // Required\r\n        \"password\": \"\" // Required\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/auth/signin","description":"<p>API Endpoint to authenticate and obtain authentication token.</p>\n","urlObject":{"path":["auth","signin"],"host":["http://localhost:3000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"5feaf61a-d93a-454d-816e-7a12e5168242","name":"Sign-In Request-Response Example","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"auth\": {\r\n        \"email\": \"bishesh@email.com\", // Email, Required\r\n        \"password\": \"password\" // String, Required\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/auth/signin"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"5\",\n        \"type\": \"users\",\n        \"attributes\": {\n            \"token\": \"eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjo1LCJleHAiOjE3NzUzODQ1Mjh9.uA07gOkXxlxpgkSYu3WKYcaXHoitlSh91sGZCxdWpUI\",\n            \"email\": \"bishesh@email.com\",\n            \"name\": \"Bishesh Ganesh\",\n            \"country\": \"Nepal\",\n            \"createdAt\": \"2026-04-04T10:20:18.554Z\",\n            \"updatedAt\": \"2026-04-04T10:20:18.554Z\"\n        }\n    }\n}"}],"_postman_id":"01ed023c-f409-4abd-beb7-05b504023c7a"}],"id":"13f91036-ef0d-41fa-b20b-314bbf81f5d0","_postman_id":"13f91036-ef0d-41fa-b20b-314bbf81f5d0","description":""},{"name":"Content","item":[{"name":"Create Content","id":"d0b42d68-48fb-45bd-ba83-f363aa9f0b37","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"\", // Required\r\n    \"body\": \"\" // Required\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/contents","urlObject":{"path":["contents"],"host":["http://localhost:3000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"e3aed264-5dba-4051-8aab-4a1ee69b7563","name":"Create Content Response Example","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjo1LCJleHAiOjE3NzUzODQ1Mjh9.uA07gOkXxlxpgkSYu3WKYcaXHoitlSh91sGZCxdWpUI","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"First Content\", // Required\r\n    \"body\": \"This is the body of first content.\" // Required\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/contents"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"5\",\n        \"type\": \"content\",\n        \"attributes\": {\n            \"title\": \"First Content\",\n            \"body\": \"This is the body of first content.\",\n            \"createdAt\": \"2026-04-04T10:25:36.350Z\",\n            \"updatedAt\": \"2026-04-04T10:25:36.350Z\"\n        }\n    }\n}"}],"_postman_id":"d0b42d68-48fb-45bd-ba83-f363aa9f0b37"},{"name":"Get Contents","id":"ab8c9008-dcf6-414d-9ba5-c815e15ade71","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/api/v1/content","urlObject":{"path":["content"],"host":["http://localhost:3000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"4e060825-ceb9-4652-8e22-d721e353029d","name":"Get Contents Response Example","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3000/api/v1/content"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"data\": [\r\n        {\r\n            \"id\": \"5\",\r\n            \"type\": \"content\",\r\n            \"attributes\": {\r\n                \"title\": \"First Content\",\r\n                \"body\": \"This is the body of first content.\",\r\n                \"createdAt\": \"2026-04-04T10:25:36.350Z\",\r\n                \"updatedAt\": \"2026-04-04T10:25:36.350Z\"\r\n            }\r\n        }\r\n    ]\r\n}"}],"_postman_id":"ab8c9008-dcf6-414d-9ba5-c815e15ade71"},{"name":"Update Content","id":"54442ced-fc2a-4865-90e0-3a07ac01b032","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"\",\r\n    \"body\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/contents/:id","urlObject":{"path":["contents",":id"],"host":["http://localhost:3000/api/v1"],"query":[],"variable":[{"description":{"content":"<p>Content ID</p>\n","type":"text/plain"},"type":"any","value":"","key":"id"}]}},"response":[{"id":"4b7e0696-9826-4207-92d1-35ea3cfdd54c","name":"Update Content Response Example","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjo1LCJleHAiOjE3NzUzODQ1Mjh9.uA07gOkXxlxpgkSYu3WKYcaXHoitlSh91sGZCxdWpUI","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"First Content Updated\",\r\n    \"body\": \"This body was updated using the awesome API.\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:3000/api/v1/contents/:id","host":["http://localhost:3000/api/v1"],"path":["contents",":id"],"variable":[{"key":"id","value":"5","description":"Content ID"}]}},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"data\": {\r\n        \"id\": \"5\",\r\n        \"type\": \"content\",\r\n        \"attributes\": {\r\n            \"title\": \"First Content Updated\",\r\n            \"body\": \"This body was updated using the awesome API.\",\r\n            \"createdAt\": \"2026-04-04T10:25:36.350Z\",\r\n            \"updatedAt\": \"2026-04-04T10:28:02.102Z\"\r\n        }\r\n    }\r\n}"}],"_postman_id":"54442ced-fc2a-4865-90e0-3a07ac01b032"},{"name":"Delete Content","id":"512b7d03-3cb7-47dd-884a-f7af8f80bfac","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"url":"http://localhost:3000/api/v1/contents/:id","urlObject":{"path":["contents",":id"],"host":["http://localhost:3000/api/v1"],"query":[],"variable":[{"type":"any","value":"","key":"id"}]}},"response":[{"id":"8a09c5fe-f46a-4a36-96d1-4527c341772d","name":"Delete Content Response Example","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjo1LCJleHAiOjE3NzUzODQ1Mjh9.uA07gOkXxlxpgkSYu3WKYcaXHoitlSh91sGZCxdWpUI","type":"text"}],"url":{"raw":"http://localhost:3000/api/v1/contents/:id","host":["http://localhost:3000/api/v1"],"path":["contents",":id"],"variable":[{"key":"id","value":"5"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"message\": \"Deleted\"\r\n}"}],"_postman_id":"512b7d03-3cb7-47dd-884a-f7af8f80bfac"}],"id":"7159de8c-5ecb-4710-a76e-f995778cfaa6","_postman_id":"7159de8c-5ecb-4710-a76e-f995778cfaa6","description":""}],"event":[{"listen":"prerequest","script":{"id":"a1e6220e-43fe-43dd-a757-0e55df5610e1","type":"text/javascript","packages":{},"requests":{},"exec":[""]}},{"listen":"test","script":{"id":"d7eed397-4a60-40ff-879b-33e3a05efa79","type":"text/javascript","packages":{},"requests":{},"exec":[""]}}],"variable":[{"key":"BASE_URL","value":"http://localhost:3000/api/v1"}]}