Skip to content

API Documentation

Welcome to the Swit Framework API Documentation. Below are the available services and their API descriptions.

Available Services

SWIT Server API

This is the SWIT server API documentation.

  • Endpoints: 5
  • Version: 1.0
  • Base URL: http://localhost:8080/

View Documentation →

SWIT Auth API

This is the SWIT authentication service API documentation.

  • Endpoints: 5
  • Version: 1.0
  • Base URL: http://localhost:8090/

View Documentation →

General Information

Authentication

All API endpoints require appropriate authentication. Most endpoints use Bearer Token authentication:

http
Authorization: Bearer <your_access_token>

Request Format

  • Content-Type: application/json
  • Accept: application/json
  • Encoding: UTF-8

Error Handling

The API uses standard HTTP status codes to indicate the success or failure of requests:

Status CodeDescriptionExample
200SuccessData retrieved successfully
201CreatedUser created successfully
400Bad RequestInvalid parameter format
401UnauthorizedInvalid or expired token
403ForbiddenInsufficient permissions
404Not FoundUser does not exist
429Too Many RequestsRate limit exceeded
500Internal Server ErrorSystem error

Response Format

All responses follow a unified JSON format:

json
{
  "status": "success|error",
  "data": {},
  "message": "Response message",
  "timestamp": "2023-12-01T12:00:00Z"
}

Released under the MIT License.