Last Update: 14.12.2017. By Jens in API Series | APIs | Newsletter
What we got so far:
We will have a single client, which is a single-page application running in a browser. We use HTTP and JSON, and the client must be able to delete and add single tasks. Lane changing is done by setting a property on a task.
Following our assumptions, we must have endpoints for:
The next question is, how does the client retrieve all tasks for showing on the board? Which quickly becomes more complex when you start thinking about, like:
As it is the first version, we assume that all tasks are on the same board, so we don’t need any info in the API for that. We also start plain simple and return all tasks and leave it to the user to delete them. Works in our MVP now but we might have to change this sometime soon as it will be too slow with hundreds of tasks.
So, for now, we will have 4 endpoints:
It looks great for a REST API. But does it really fit? What does REST in its strict way have for consequences?