Skip to content

API Reference

REST API documentation for the ITeas Tools Integration Platform.

Overview

The platform provides a RESTful JSON API via the rest module.

Base URL: /rest/

Authentication

Authentication endpoint:

http
POST /rest/common/auth/login
Content-Type: application/json

{
  "username": "user",
  "password": "password"
}

Response:

json
{
  "token": "your-auth-token",
  "user": {
    "id": 1,
    "username": "user"
  }
}

API Modules

The REST API is organized into modules:

Core REST Module (/rest/)

Main REST API endpoints.

Picking REST Module (/picking/rest/)

The picking module has its own nested REST API for warehouse/inventory operations.

Response Format

All responses are in JSON format:

Success Response:

json
{
  "data": {...},
  "status": "success"
}

Error Response:

json
{
  "message": "Error description",
  "status": "error",
  "code": 400
}

Configuration

REST module configuration in src/config/modules.php:

php
'rest' => [
    'class' => app\modules\rest\Module::class,
    'components' => [
        'response' => [
            'class' => \yii\web\Response::class,
            'format' => \yii\web\Response::FORMAT_JSON,
            'formatters' => [
                \yii\web\Response::FORMAT_JSON => [
                    'class' => \yii\web\JsonResponseFormatter::class,
                    'prettyPrint' => YII_DEBUG,
                ]
            ]
        ]
    ]
]

Available Endpoints

TIP

API endpoints are defined in REST controllers within the src/modules/rest/ directory.

For specific endpoint documentation, refer to the controller source code or contact the development team.

Iteas Tools Integration Platform Version v1.0.20

Version: v1.0.20 Version: v1.0.20
Commit: d6d1a9aa
Deployed at: 2026-09-24T12:48:48Z