Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
97 changes: 97 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,99 @@
# BOS
BOS (Bugema Operating System) the internet OS! Free, Open Source, Self hostable

📡 API Documentation

This section provides an overview of available API endpoints in BOS and how to interact with them.

🔐 Authentication

Some endpoints may require authentication.

Authentication is done using an API Token
The token should be included in the request headers
Format:
Authorization: Bearer <your_token>

If authentication is not required for an endpoint, it will be specified.

📍 Endpoints
1. Get System Status

Endpoint: /api/status
Method: GET
Authentication: Not required

Description:
Returns the current status of the BOS system.

Request Example:

Method: GET
URL: /api/status

Response Example:

Status: Success
Data:
system: running
uptime: 24 hours
2. Get Users

Endpoint: /api/users
Method: GET
Authentication: Required

Description:
Retrieves a list of all users in the system.

Request Example:

Method: GET
URL: /api/users
Header: Authorization token required

Response Example:

Status: Success
Data:
user1: John
user2: Mary
3. Create User

Endpoint: /api/users
Method: POST
Authentication: Required

Description:
Creates a new user in the system.

Request Example:

Method: POST
URL: /api/users
Body:
name: John Doe
email: john@example.com

Response Example:

Status: Success
Message: User created successfully
4. Delete User

Endpoint: /api/users/{id}
Method: DELETE
Authentication: Required

Description:
Deletes a user by ID.

Request Example:

Method: DELETE
URL: /api/users/1

Response Example:

Status: Success
Message: User deleted successfully