fix readme

pull/20/head
Cullen Watson 2023-08-27 16:23:36 -05:00
parent 73d1e2838a
commit ebe2bdc2aa
2 changed files with 92 additions and 87 deletions

View File

@ -13,18 +13,19 @@ POST `/api/v1/jobs/`
### Request Schema ### Request Schema
```plaintext ```plaintext
Request {
├── Required Required
├── site_type (List[enum]): linkedin, zip_recruiter, indeed ├── site_type (List[enum]): linkedin, zip_recruiter, indeed
└── search_term (str) └── search_term (str)
└── Optional Optional
├── location (int) ├── location (int)
├── distance (int) ├── distance (int)
├── job_type (enum): fulltime, parttime, internship, contract ├── job_type (enum): fulltime, parttime, internship, contract
├── is_remote (bool) ├── is_remote (bool)
├── results_wanted (int): per site_type ├── results_wanted (int): per site_type
── easy_apply (bool): only for linkedin ── easy_apply (bool): only for linkedin
└── output_format (enum): json, csv └── output_format (enum): json, csv
}
``` ```
### Request Example ### Request Example
@ -35,36 +36,40 @@ Request
"location": "austin, tx", "location": "austin, tx",
"distance": 10, "distance": 10,
"job_type": "fulltime", "job_type": "fulltime",
"results_wanted": 15, "results_wanted": 15
"output_format": "json"
} }
``` ```
### Response Schema ### Response Schema
```plaintext ```plaintext
site_type (enum) {
└── response (SiteResponse) site_type (enum): {
├── success (bool) JobResponse
├── error (str) ├── success (bool)
├── jobs (List[JobPost]) ├── error (str)
│ └── JobPost ├── jobs (List[JobPost])
│ ├── title (str) │ └── JobPost
│ ├── company_name (str) │ ├── title (str)
│ ├── job_url (str) │ ├── company_name (str)
│ ├── location (object) │ ├── job_url (str)
│ │ ├── country (str) │ ├── location (object)
│ │ ├── city (str) │ │ ├── country (str)
│ │ ├── state (str) │ │ ├── city (str)
│ ├── description (str) │ │ ├── state (str)
│ ├── job_type (enum) │ ├── description (str)
│ ├── compensation (object) │ ├── job_type (enum)
│ │ ├── interval (CompensationInterval): yearly, monthly, weekly, daily, hourly │ ├── compensation (object)
│ │ ├── min_amount (float) │ │ ├── interval (CompensationInterval): yearly, monthly, weekly, daily, hourly
│ │ ├── max_amount (float) │ │ ├── min_amount (float)
│ │ └── currency (str) │ │ ├── max_amount (float)
│ └── date_posted (datetime) │ │ └── currency (str): default is "US"
├── total_results (int) │ └── date_posted (datetime)
└── returned_results (int)
├── total_results (int)
└── returned_results (int)
}, ...
}
``` ```
### Response Example (JSON) ### Response Example (JSON)

File diff suppressed because one or more lines are too long