Members
(route) GET /
Route:
Attempts a General GET request from the Webpage
Response Code:
Type |
Description |
200 |
If response is successful then the 200 OK code is returned |
- Source:
(route) GET /auth/google
Route:
Method | Path |
GET |
/auth/google |
Attempts a GET request from GOOGLE OAUTH API through passport
Authentication
This route requires Google and Passport authentication. The google authentication is required for getting profile information and the passport authentication is used in sessions intregration as described in the server-side section of README.md
Response Code:
Type |
Description |
302 |
If profile is found |
400 |
If a manual GET request for /auth/google is made, by requesting the URL in the search engine, then the Google API will return a 400 error due to redirect_uri_mistmatch. This is because the URI in the request, /auth/google/callback, does not match the URIs authorized in the OAuth client |
- Source:
(route) GET /auth/google/callback
Route:
Method | Path |
GET |
/auth/google/callback |
Attempts a GET request from GOOGLE OAUTH API Callback through passport
Authentication
This route requires Google and Passport authentication, the passport integration is required for sessions integration with the site as described in the server-side section of the documentation in README.md
Response Code:
Type |
Description |
302 |
The resource requested has been redirected to the correct URL upon callback |
400 |
If a manual GET request for /auth/google/callback is made, by requesting the URL in the search engine, then the Google API will return a 400 error due to invalid_request as a result of a missing required scope parameter |
- Source:
(route) GET /descList
Route:
Attempts a GET request to the list of job descriptions from the Webpage
These job descriptions will be limited in size thanks to a throw error in index.js
Response Code:
Type |
Description |
200 |
If response is successful then the 200 OK code is returned |
- Source:
(route) GET /empList
Route:
Attempts a GET request to the list of employers from the Webpage.
This list of employers may partially contain account usernames instead of inputted employers, if an account username then the item will have "(verified)" next to it when posted.
Response Code:
Type |
Description |
200 |
If response is successful then the 200 OK code is returned |
- Source:
(route) GET /imgList
Route:
Attempts a GET request for the list of profile images from the Webpage
Response Code:
Type |
Description |
200 |
If response is successful then the 200 OK code is returned |
- Source:
(route) GET /jobList
Route:
Attempts a GET request to the list of job titles from the Webpage
Response Code:
Type |
Description |
200 |
If response is successful then the 200 OK code is returned |
- Source:
(route) GET /linkList
Route:
Attempts a GET request for the list of links to jobs from the Webpage
Each of these URLs should be in the correct form thanks to the regex testUrl function in index.js
Response Code:
Type |
Description |
200 |
If response is successful then the 200 OK code is returned |
- Source:
(route) POST /add
Route:
Attempts a POST to the webpage, this post sends all entities:
employer, job title, job description, job link, and profile image.
Response Code:
Type |
Description |
200 |
Creates a dummy job and attempts to post, sends 200 OK code if succesful response |
- Source: