JobSpy/postman/JobSpy.postman_collection.json

190 lines
3.3 KiB
JSON

{
"info": {
"_postman_id": "a0aa8829-fd18-47fa-a50d-03c8193adb9a",
"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": "GET",
"header": [],
"url": {
"raw": "http://127.0.0.1:8000/api/v1/jobs?site_type=indeed&search_term=software intern&location=dallas&page=2",
"protocol": "http",
"host": [
"127",
"0",
"0",
"1"
],
"port": "8000",
"path": [
"api",
"v1",
"jobs"
],
"query": [
{
"key": "site_type",
"value": "indeed"
},
{
"key": "search_term",
"value": "software intern"
},
{
"key": "location",
"value": "dallas"
},
{
"key": "page",
"value": "2"
}
]
}
},
"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\": \"cgwatson@smu.edu\",\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": []
}
]
}