This page documents the available REST endpoints for fetching and managing To-Do items from the API.
/api/todos
Returns a list of to-do tasks. If the limit is greater than
initial data length (10), more will be generated on the fly.
limit – Number of todos to return.fields – Comma-separated list of fields (e.g.,
title,completed).
idtitledescriptionprioritydueDatecompletedcreatedAt
You can control the number of todos returned and which fields are
included using query parameters like ?limit=3 and
?fields=title,completed.
Example: GET /api/todos?fields=title,completed&limit=3
import requests
url = "https://restmancer.vercel.app/api/todos"
response = requests.get(url)
print(response.json())
fetch("https://restmancer.vercel.app/api/todos")
.then(res => res.json())
.then(data => console.log(data));
const axios = require("axios");
axios.get("https://restmancer.vercel.app/api/todos")
.then(response => {
console.log(response.data);
})
.catch(error => {
console.error(error);
});
curl "https://restmancer.vercel.app/api/todos"