Check directory /test1
Start the server
exec: docker-compose up
Default listening port is 9090
Create Companies
POST to /api/company
{"name": "World Company","mail": "[email protected]"}
then
{"name": "E. Corp","mail": "[email protected]"}
Create Opportunities
POST to /api/opportunity
{
"title": "Developeur Backend",
"description": "Node, Mongo",
"company": <World Company ID>,
"region": <Enum ID>,
"city": "Rennes",
"contractType": <Enum ID>
}
then
{
"title": "Developeur FrontEnd",
"description":" React, HTML5, CSS3",
"company": <E. Corp ID>,
"region": <Enum ID>,
"city": "Paris",
"contractType": <Enum ID>
}
Get opportunities
GET to /api/opportunity
GET to /api/opportunity/search?query=Developeur
GET to _/api/opportunity/search?query=Developeur®ion=<Enum ID> _
GET to /api/opportunity/search?query=Developeur®ion=<Enum ID>&contractType=<Enum ID>
GET to /api/opportunity/<Opportunity ID>
Apply to opportunity
POST to /api/application
{
"firstName": "Elliot",
"lastName": "Alderson",
"mail": "[email protected]",
"message": "Hello!",
"opportunity": <Opportunity ID>
}
{
"firstName": "Edward",
"lastName": "Alderson",
"mail": "[email protected]",
"message": "Hi!",
"opportunity": <Opportunity ID>
}
Get companies
GET to /api/company
Get companies opportunities
GET to /api/company/<Company Id>/opportunities
Get opportunity applications
GET to /api/opportunity/<Opportunity ID>/applications
Check source test2.js
Check source test3.html
Check source test4.html