{ "info": { "_postman_id": "7a1bba1d-9604-4e08-870d-e0a9e8b9bcd2", "name": "JobSpy", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", "_exporter_id": "24144392" }, "item": [ { "name": "Search Jobs", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{access_token}}", "type": "string" } ] }, "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"site_type\": \"linkedin\", // linkedin / indeed / zip_recruiter\r\n \"search_term\": \"engineer\",\r\n\r\n // optional\r\n \"location\": \"tx\",\r\n \"distance\": 10,\r\n \"job_type\": \"fulltime\", // fulltime, parttime, internship, contract\r\n // \"is_remote\": true,\r\n \"easy_apply\": true, // linkedin only\r\n \"results_wanted\": 10 \r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "http://127.0.0.1:8000/api/v1/jobs", "protocol": "http", "host": [ "127", "0", "0", "1" ], "port": "8000", "path": [ "api", "v1", "jobs" ] } }, "response": [] }, { "name": "Health", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{access_token}}", "type": "string" } ] }, "method": "GET", "header": [], "url": { "raw": "http://127.0.0.1:8000/", "protocol": "http", "host": [ "127", "0", "0", "1" ], "port": "8000", "path": [ "" ] } }, "response": [] }, { "name": "Token", "event": [ { "listen": "test", "script": { "exec": [ "var jsonData = JSON.parse(responseBody);", "postman.setEnvironmentVariable(\"access_token\", jsonData.access_token)" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "urlencoded", "urlencoded": [ { "key": "username", "value": "cwatson", "type": "text" }, { "key": "password", "value": "mypass", "type": "text" } ] }, "url": { "raw": "http://127.0.0.1:8000/api/auth/token", "protocol": "http", "host": [ "127", "0", "0", "1" ], "port": "8000", "path": [ "api", "auth", "token" ] } }, "response": [] }, { "name": "Register", "event": [ { "listen": "test", "script": { "exec": [ "var jsonData = JSON.parse(responseBody);", "postman.setEnvironmentVariable(\"access_token\", jsonData.access_token)" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"username\": \"cwatson\",\n \"email\": \"cullen@cullen.ai\",\n \"password\": \"mypass\",\n \"full_name\": \"cullen watson\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "http://127.0.0.1:8000/api/auth/register", "protocol": "http", "host": [ "127", "0", "0", "1" ], "port": "8000", "path": [ "api", "auth", "register" ] } }, "response": [] } ] }