API Documentation

This document provides detailed information about the API endpoints available in the application.

Authentication

All endpoints require authentication via a Bearer token. The token should be passed in the Authorization header.

Authorization: Bearer <your_token>

GET /test

This endpoint is used to test the API connection. It does not require any parameters and simply returns a success message.

Response

{
    "status": "success",
    "message": "All fine!"
}

POST /api/avito/count

This endpoint returns the count of items in the Avito table based on the provided filters. The filters are passed in the request body.

Request Body Parameters

Response

{
    "status": "success",
    "data": {
        "count": 123
    }
}

POST /api/avito/get

This endpoint retrieves lines from the Avito table based on the provided filters. The filters are passed in the request body. If the need_base parameter is set to true, the retrieved lines will be removed from the database.

Request Body Parameters

Response

{
    "status": "success",
    "data": {
        "payload": [
            {
                "p_id": "123",
                "userhash": "abc123"
            }
        ]
    }
}

POST /api/youla/count

This endpoint returns the count of items in the Youla table based on the provided filters. The filters are passed in the request body.

Request Body Parameters

Response

{
    "status": "success",
    "data": {
        "count": 123
    }
}

POST /api/youla/get

This endpoint retrieves lines from the Youla table based on the provided filters. The filters are passed in the request body. If the need_base parameter is set to true, the retrieved lines will be removed from the database.

Request Body Parameters

Response

{
    "status": "success",
    "data": {
        "payload": [
            {
                "p_id": "123",
                "userhash": "abc123"
            }
        ]
    }
}