Projekty
GET https://p9.lt/api/projects/
curl --request GET \
--url 'https://p9.lt/api/projects/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://p9.lt/api/projects/' \
--header 'Authorization: Bearer {api_key}' \
| Parametry | Szczegóły | Opis |
|---|---|---|
| page | Opcjonalne Liczba całkowita | Numer strony, z której chcesz wyniki. Wartość domyślna to 1. |
| results_per_page | Opcjonalne Liczba całkowita | Ilu wyników chcesz na stronę. Dozwolone wartości to: 10 , 25 , 50 , 100 , 250 , 500 , 1000. Domyślnie 25. |
{
"data": [
{
"id": 1,
"name": "Development",
"color": "#0e23cc",
"last_datetime": null,
"datetime": "2025-10-26 11:15:26",
},
],
"meta": {
"page": 1,
"results_per_page": 25,
"total": 1,
"total_pages": 1
},
"links": {
"first": "https://p9.lt/api/projects?page=1",
"last": "https://p9.lt/api/projects?page=1",
"next": null,
"prev": null,
"self": "https://p9.lt/api/projects?page=1"
}
}
GET https://p9.lt/api/projects/{project_id}
curl --request GET \
--url 'https://p9.lt/api/projects/{project_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://p9.lt/api/projects/{project_id}' \
--header 'Authorization: Bearer {api_key}' \
{
"data": {
"id": 1,
"name": "Development",
"color": "#0e23cc",
"last_datetime": null,
"datetime": "2025-10-26 11:15:26",
}
}
POST https://p9.lt/api/projects
| Parametry | Szczegóły | Opis |
|---|---|---|
| name | Wymagane Ciąg znaków | - |
| color | Opcjonalne Ciąg znaków | - |
curl --request POST \
--url 'https://p9.lt/api/projects' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Production' \
--form 'color=#ffffff' \
--url 'https://p9.lt/api/projects' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Production' \
--form 'color=#ffffff' \
{
"data": {
"id": 1
}
}
POST https://p9.lt/api/projects/{project_id}
| Parametry | Szczegóły | Opis |
|---|---|---|
| name | Opcjonalne Ciąg znaków | - |
| color | Opcjonalne Ciąg znaków | - |
curl --request POST \
--url 'https://p9.lt/api/projects/{project_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Production' \
--form 'color=#000000' \
--url 'https://p9.lt/api/projects/{project_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Production' \
--form 'color=#000000' \
{
"data": {
"id": 1
}
}
DELETE https://p9.lt/api/projects/{project_id}
curl --request DELETE \
--url 'https://p9.lt/api/projects/{project_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://p9.lt/api/projects/{project_id}' \
--header 'Authorization: Bearer {api_key}' \