To run the project, just execute following command:
docker-compose up
(Wait for composer to install all dependencies)
The API is available at http://localhost:8080
There are 3 endpoints available.
Example request:
{
"first_name": "John",
"last_name": "Doe"
}
Example response:
{ "id": 1 }
Example request:
{
"owner_id": 1,
"hostname": "doej@example",
"device_type": "laptop",
"operating_system": "lin"
}
Example response:
{ "id": 1 }
Example response:
[
{
"id": 1,
"hostname": "doej@example",
"device_type": "laptop",
"operating_system": "lin"
"owner": {
"id": 1,
"first_name": "John",
"last_name": "Doe"
}
}
]