This section provides comprehensive documentation for the API threads endpoints. Use the following links to navigate through the documentation:
Thread List Endpoint
The /en/api/threads/list
endpoint allows you to retrieve a list of threads available on the platform. Here's an example response:
- Status Code: 200 OK
- Response Body:
[ { "id": 1, "title": "Welcome to the Community", "author": "admin", "created_at": "2023-01-01T00:00:00Z", "updated_at": "2023-01-01T00:00:00Z" }, { "id": 2, "title": "How to Use the API", "author": "developer", "created_at": "2023-01-02T00:00:00Z", "updated_at": "2023-01-02T00:00:00Z" } ]
Thread Details Endpoint
The /en/api/threads/details
endpoint provides detailed information about a specific thread. For example, to retrieve details about thread with ID 1:
- Request URL:
/en/api/threads/details?id=1
- Status Code: 200 OK
- Response Body:
{ "id": 1, "title": "Welcome to the Community", "author": "admin", "created_at": "2023-01-01T00:00:00Z", "updated_at": "2023-01-01T00:00:00Z", "content": "Hello everyone! Welcome to our community. We are excited to have you here and look forward to your contributions." }
Golden_Retriever