API Documentation

Introduction

This document provides detailed information on the external API endpoints for managing companies and projects. The API uses an API key for authentication, which should be generated through EVM settings.

Authentication

All API requests must include an Authorization header with a valid API key. The API key can be generated through the EVM settings.

Generating API Key

  1. Navigate to EVM settings -> API.

  2. Generate the API key.

  3. Use the API key in the Authorization header for all requests.

Base URL

The base URL for all endpoints is https://pa.aneto-apps.com.

Error Codes

Endpoints

1. Get Companies

Endpoint:

Description: Retrieves a paginated list of companies.

Headers:

Query Parameters:

Response:

{
    "data": [
        {
            "id": 1,
            "name": "Company A"
        },
        {
            "id": 2,
            "name": "Company B"
        }
    ],
    "meta": {
        "page": 1,
        "perPage": 10,
        "total": 20
    }
}

Error Responses:

2. Create Project

Endpoint:

Description: Creates a new project.

Headers:

Request Body:

{
    "company_id*": 1,
    "name*": "New Project",
    "duration_format": "hours|days",
    "money_format": "default|thousands|millions",
    "start_date": "2024-07-01",
    "due_date": "2024-12-31",
    "jira_jql*": "project = TEST",
    "status*": "Proposal|Initiating|Planning|Ready to Start|Executing|On Hold|Blocked|QA Validation|QA Failed|PO / Client validation|Done|Canceled",
    “budget”: 10000,
    “reset_on_import”: true|false or 1|0,
    “ignore_time_entered_before_this_date”: true|false or 1|0,
    “description”: “New Project Description”,
    “notes”: “New Project Notes”
}

Response:

201 Created:
{
    "data": {
        "id": 1,
        "companyId": 1,
        "name": "New Project",
        "durationFormat": "days",
        "moneyFormat": "default",
        "startDate": "2024-07-01",
        "dueDate": "2024-12-31",
        "jiraJql": "project = TEST",
        "status": 4,
	   "statueName”: “Executing”,
        “budget”: 10000,
        “reset_on_import”: false,
        “ignore_time_entered_before_this_date”: false,
        “description”: “New Project Description”,
        “notes”: “New Project Notes”
    }
}

Error Responses: