Tasks

This page includes all endpoints available for the tasks(projects) module of Logiciel Actif.

List all tasks

GET https://app.gem-books.com/api/tasks

This endpoint allows you to get the list of your tasks. The tasks are returned sorted by creation date.

Query Parameters

NameTypeDescription

page

integer

The number of the page you wish to see. Default is 1.

per_page

integer

The number of the desired result per page. Default is 20. Maximum values is 100.

Headers

NameTypeDescription

Authentication

string

Bearer token.

Accept

string

Should be application/json.

{
    "data": [
        {
            "id": 381,
            "projet_id": 70,
            "active": 1,
            "creation_date": "2020-06-01",
            "title": "Simoan Provencher",
            "start_date": "0000-00-00",
            "end_date": "0000-00-00",
            "status": 2,
            "time_estimated": "0.00",
            "time_spent": "1.00",
            "description": null,
            "comments": []
        },
        {
            "id": 380,
            "projet_id": 0,
            "active": 1,
            "creation_date": "2020-06-01",
            "title": "BOOKING - ",
            "start_date": "0000-00-00",
            "end_date": "0000-00-00",
            "status": 2,
            "time_estimated": "1.00",
            "time_spent": "0.00",
            "description": "",
            "comments": []
        }
    ],
    "meta": {
        "current_page": 1,
        "last_page": 1,
        "per_page": 25,
        "total": 2
    },
    "success": true
}

Retrieve a task

GET https://app.gem-books.com/api/tasks/:id

This endpoint allows you to get the details of the task.

Path Parameters

NameTypeDescription

id

integer

The ID of the task to retrieve.

Headers

NameTypeDescription

Authentication

string

Bearer token.

Accept

string

Should be application/json.

{
    "data": {
        "id": 70,
        "projet_id": 18,
        "active": 1,
        "creation_date": "0000-00-00",
        "title": "a1 - ",
        "start_date": "2019-10-02",
        "end_date": "2019-10-02",
        "status": 2,
        "time_estimated": "1.00",
        "time_spent": "9.00",
        "description": "",
        "comments": [
            {
                "id": 1,
                "tache_id": 70,
                "user_id": 205,
                "date": "2020-08-19",
                "comment": ""
            }
        ]
    },
    "success": true
}

Create a task

POST https://app.gem-books.com/api/tasks

This endpoint allows you to create a task. Returns the created task.

Headers

NameTypeDescription

Authentication

string

Bearer token.

Content-Type

string

Should be application/json.

Accept

string

Should be application/json.

Request Body

NameTypeDescription

project_id

integer

ID of project.

name

string

Task name.

{
    "data": {
        "id": 70,
        "projet_id": 18,
        "active": 1,
        "creation_date": "0000-00-00",
        "title": "a1 - ",
        "start_date": "2019-10-02",
        "end_date": "2019-10-02",
        "status": 2,
        "time_estimated": "1.00",
        "time_spent": "9.00",
        "description": "",
        "comments": [
            {
                "id": 1,
                "tache_id": 70,
                "user_id": 205,
                "date": "2020-08-19",
                "comment": ""
            }
        ]
    },
    "success": true
}
{
    "project_id" : 18,
    "name": "Test Project"
}

Update a task

PUT https://app.gem-books.com/api/tasks/:id

This endpoint allows you to update a specific task. Returns the updated task.

Path Parameters

NameTypeDescription

id

integer

Task id to update

Headers

NameTypeDescription

Authentication

string

Bearer token.

Content-Type

string

Should be application/json.

Accept

string

Should be application/json.

{
    "data": {
        "id": 70,
        "projet_id": 18,
        "active": 1,
        "creation_date": "0000-00-00",
        "title": "a1 - ",
        "start_date": "2019-10-02",
        "end_date": "2019-10-02",
        "status": 2,
        "time_estimated": "1.00",
        "time_spent": "9.00",
        "description": "",
        "comments": [
            {
                "id": 1,
                "tache_id": 70,
                "user_id": 205,
                "date": "2020-08-19",
                "comment": ""
            }
        ]
    },
    "success": true
}
{
    "name": "Test Project"
}

Last updated