Dynamic REST Documentation
Explore what you can do with this API, populated with fake data of companies, findnancial reports, and employees.
Users
Expand
POST /api/users/register
Post New User
Implementation Notes
Registers a new user and sends responds with a token
Response Messages
HTTP Status Code | Reason | Sample Response |
---|---|---|
201 | Created |
|
401 | Unauthorized |
Try it
Request URL
Response Body
Response Code
PUT /api/users/login
Login User
Implementation Notes
Login an existing user and responds with a token
Response Messages
HTTP Status Code | Reason | Sample Response |
---|---|---|
200 | OK |
|
401 | Unauthorized |
Try it
Request URL
Response Body
Response Code
Companies
Expand
GET /api/companies
Fetch Companies
Implementation Notes
Returns an array of all companies
Response Messages
HTTP Status Code | Reason | Sample Response |
---|---|---|
200 | OK |
|
Try it
/api/companiesGET /api/companies/random
Fetch Random Company
Implementation Notes
Returns a random company
Response Messages
HTTP Status Code | Reason | Sample Response |
---|---|---|
200 | OK |
|
Try it
/api/companies/randomGET /api/companies/:id
Fetch Specific Company
Implementation Notes
Returns the specified companies
Response Messages
HTTP Status Code | Reason | Sample Response |
---|---|---|
200 | OK |
|
404 | Not Found |
Try it
/api/companies/:idFinancial Data
Expand
GET /api/financials
Fetch Financial Data
Implementation Notes
Returns an array of all financial reports
Response Messages
HTTP Status Code | Reason | Sample Response |
---|---|---|
200 | OK |
|
Try it
/api/financialsGET /api/financials/:id
Fetch Financials for a Company
Implementation Notes
Returns an array of all financial reports for a specified company
Response Messages
HTTP Status Code | Reason | Sample Response |
---|---|---|
200 | OK |
|
Industry Data
Expand
GET /api/industries
Fetch Industries
Implementation Notes
Returns an array of all industries
Response Messages
HTTP Status Code | Reason | Sample Response |
---|---|---|
200 | OK |
|
Try it
/api/industriesEmployees
Expand
GET /api/employees
Fetch Employees
Implementation Notes
Returns an array of all employees
Response Messages
HTTP Status Code | Reason | Sample Response |
---|---|---|
200 | OK |
|
Try it
/api/industriesGET /api/employees/:companyId
Fetch Employees for a Company
Implementation Notes
Returns an array of all employees of the specified company
Response Messages
HTTP Status Code | Reason | Sample Response |
---|---|---|
200 | OK |
|