There are two models:
- Project
- Task
Tasks belong to projects. Projects can have multiple tasks.
The project includes Laravel Sail. To bring the project up, run ./vendor/bin/sail up
.
There are three endpoints:
- GET /api/projects
- POST /api/projects
- DELETE /api/projects/{project}
To create a new project, you must POST
to the /api/projects
endpoint with data that looks like the following:
{
"name": "Example Project",
"tasks": [
{
"title": "Task 1",
"description": "This is a task"
},
{
"title": "Task 2",
"description": "This is also a task"
}
]
}
There is one test, which checks to see that a project can be created with tasks.
To run the tests, run ./vendor/bin/sail art test
.