Items uit het domein “projects” stellen een project voor.
Opbouw URL’s:
/api/v1/projects: Projecten
/api/v1/projects/707: Project met ID 707
/api/v1/projects/707/tasks: Taken van project met ID 707
/api/v1/projects/707/tasks/808: Taak met ID 808 binnen project met ID 707
/api/v1/projects/707/tasks/808/items: Items (tijdsregistraties en kosten) van taak met ID 808
/api/v1/projects/707/tasks/808/items/909: Item met ID 909 binnen taak met ID 808
Domein: projects
Veldnaam | Type | Omschrijving | Voorbeeld |
project_id | int | 707 | |
uri | text | - | |
external_project_id | int | ID123 | |
user_id | int | 1 | |
user_name | text | John Doe | |
client_id | int | 101 | |
client_uri | text | - | |
client_name | text | Company X | |
client_attention | text | Paul | |
billing_address | Address | - | |
delivery_address | Address | - | |
site_address | Address | - | |
number | text | P000001 | |
name | text | Consultancy | |
start_date | text | 2023-12-01 | |
end_date | text | 2024-05-31 | |
state | text | open | |
billable_hourly_rate | float | 60 | |
billable_hours_estimate | float | 250 | |
billable_hours_current | float | 3 | |
total | float | 480 | |
total_estimate | float | 0 | |
use_tasks | text | yes | |
tasks | list | - | |
last_activity | datetime | 2023-11-30 14:34:34 |
Subdomein: tasks ( < projects)
Veldnaam | Type | Omschrijving | Voorbeeld |
task_id | int | 808 | |
uri | text | - | |
description | text | Task 1 | |
description_html | text | <p>Task 1</p> | |
state | text | open | |
items | list | - |
Subdomein: items ( < tasks < projects)
Veldnaam | Type | Omschrijving | Voorbeeld |
item_id | int | 909 | |
uri | text | - | |
type | text | time | |
description | text | Hours worked | |
description_html | text | <p>Hours worked</p> | |
date | date | 2024-01-03 | |
start_time | text | 09:00 | |
end_time | text | 12:00 | |
quantity | float | 3 | |
unit | text | ||
price | float | 60 | |
price_total | float | 180 | |
state | text | open |
Voorbeeld in JSON van een project:
{ "project_id": 707, "uri": "https://eenvoudigfactureren.be/api/v1/projects/707", "external_project_id": "", "user_id": 1, "user_name": "John Doe", "client_id": 101, "client_uri": "https://eenvoudigfactureren.be/api/v1/clients/101", "client_name": "Company X", "client_attention": "", "billing_address": { "street": "Street 1", "street2": "", "postal_code": "1000", "city": "Brussels", "country_code": "BE", "country": "België" }, "delivery_address": null, "site_address": null, "number": "P000001", "name": "Consultancy", "start_date": "2023-12-01", "end_date": "2024-05-31", "state": "open", "billable_hourly_rate": 60, "billable_hours_estimate": 250, "billable_hours_current": 3, "total": 480, "total_estimate": 0, "use_tasks": "yes", "tasks": [ { "task_id": 808, "uri": "https://eenvoudigfactureren.be/api/v1/projects/707/tasks/808", "description": "Taak 1", "description_html": "Taak 1", "state": "open", "items": [ { "item_id": 909, "uri": "https://eenvoudigfactureren.be/api/v1/projects/707/tasks/808/items/909", "type": "time", "description": "Uren", "description_html": "Uren", "date": "2024-01-03", "start_time": "09:00", "end_time": "12:00", "quantity": 3, "unit": "", "price": 60, "price_total": 180, "state": "open" }, { "item_id": 910, "uri": "https://eenvoudigfactureren.be/api/v1/projects/707/tasks/808/items/910", "type": "cost", "description": "Kosten", "description_html": "Kosten", "date": "2024-01-01", "start_time": "", "end_time": "", "quantity": 1, "unit": "", "price": 300, "price_total": 300, "state": "open" } ] } ], "last_activity": "2023-11-30 14:34:34" }