Welcome to the API Endpoints Guide! Below you will find a comprehensive list of our API endpoints, along with detailed descriptions and usage examples.

Available Endpoints

  • User Management

    • /users/login - Authenticate users and obtain a token.
    • /users/register - Register a new user.
    • /users/profile - Retrieve user profile information.
  • Content Management

    • /content/posts - List all posts.
    • /content/posts/<id> - Retrieve a specific post.
    • /content/posts/create - Create a new post.
    • /content/posts/update/<id> - Update an existing post.
    • /content/posts/delete/<id> - Delete a post.
  • Comments

    • /comments - List all comments.
    • /comments/<id> - Retrieve a specific comment.
    • /comments/create - Create a new comment.
    • /comments/update/<id> - Update an existing comment.
    • /comments/delete/<id> - Delete a comment.
  • Search

    • /search - Perform a search across all content.

For more detailed information and examples, please refer to our API Documentation.

Usage Example

Here's an example of how to use the /users/login endpoint:

POST /users/login
Content-Type: application/json

{
  "username": "exampleUser",
  "password": "examplePassword"
}

Response

{
  "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}

For more information on how to authenticate and use tokens, please visit our Authentication Guide.

Additional Resources

API Endpoints