-
Notifications
You must be signed in to change notification settings - Fork 0
Company API
Muhammad Surya edited this page Nov 25, 2015
·
1 revision
GET /companies
Example Request:
curl -X GET -H "Authorization: Basic Y29jYWNvbGE6Y29jYWNvbGE=" -H "Content-Type: application/json" -H "Cache-Control: no-cache" -H "Postman-Token: 6a54d8b3-2c2a-b1aa-df32-c45cc4ef2eb7" 'https://milarian.herokuapp.com/companies'
Example Response:
[
{
"_id": "565609d9f389361100f268c0",
"name": "PT. Coca-cola",
"industry": "fast drink",
"address": "Jakarta",
"telephone": "23343",
"__v": 0,
"updated_at": "2015-11-25T19:19:53.726Z"
}
]
GET /companies/:id
Example Request:
curl -X GET -H "Authorization: Basic Y29jYWNvbGE6Y29jYWNvbGE=" -H "Content-Type: application/json" -H "Cache-Control: no-cache" -H "Postman-Token: 8e799209-5d10-850d-d330-033a7906a577" 'https://milarian.herokuapp.com/companies/565609d9f389361100f268c0'
Example Response:
{
"_id": "565609d9f389361100f268c0",
"name": "PT. Coca-cola",
"industry": "fast drink",
"address": "Jakarta",
"telephone": "23343",
"__v": 0,
"updated_at": "2015-11-25T19:19:53.726Z"
}
GET /companies/:id/vacancies
Example Request:
curl -X GET -H "Authorization: Basic Y29sYTpjb2xh" -H "Content-Type: application/json" -H "Cache-Control: no-cache" -H "Postman-Token: 988529c4-b42e-0b41-cd80-501832d94547" 'https://milarian.herokuapp.com/companies/565609d9f389361100f268c0/vacancies'
Example Response:
[
{
"_id": "565612f3d4e6b25a3ff36e2f",
"_company": "5655f4ce2fa58e922b787e74",
"position": "Sales Promotion Girl",
"description": "Promote product and lorem ipsum...",
"location": "Bandung",
"salary": 2000000,
"expiry": "2015-12-29T17:00:00.000Z",
"__v": 0,
"updated_at": "2015-11-25T19:58:43.043Z"
}
]