Skip to content

API Reference

Overview

PeSIT Wizard exposes two REST APIs:

APIPortBase URLDescription
Client API8080/api/v1File send/receive
Server API8080/apiServer configuration

Interactive Documentation

Each API exposes Swagger/OpenAPI documentation:

OpenAPI Specifications

OAS (OpenAPI Specification) files are available:

Response Format

All APIs return JSON:

json
{
  "data": { ... },
  "error": null,
  "timestamp": "2025-01-10T10:30:00Z"
}

HTTP Codes

CodeDescription
200Success
201Created
400Invalid request
401Not authenticated
403Not authorized
404Not found
500Server error

Errors

json
{
  "error": {
    "code": "PARTNER_NOT_FOUND",
    "message": "Partner 'UNKNOWN' not found",
    "details": null
  },
  "timestamp": "2025-01-10T10:30:00Z"
}

Pagination

List endpoints support pagination:

bash
GET /api/transfers?page=0&size=20&sort=startTime,desc

Response:

json
{
  "content": [...],
  "totalElements": 150,
  "totalPages": 8,
  "number": 0,
  "size": 20
}

Filtering

Use query parameters to filter:

bash
GET /api/transfers?status=COMPLETED&direction=SEND&from=2025-01-01

Rate Limiting

Rate limiting is disabled by default. It can be enabled by setting PESIT_RATE_LIMITING_ENABLED=true.

When enabled, the APIs are limited to:

  • 100 requests/minute per IP (public API)
  • 1000 requests/minute per token (authenticated API)

Response headers:

X-RateLimit-Limit: 100
X-RateLimit-Remaining: 95
X-RateLimit-Reset: 1704880260

PeSIT Wizard - Solution PeSIT moderne pour les entreprises