Skip to content

Conversation

@bonus414
Copy link

Summary

This PR adds comprehensive API endpoint documentation for the Polydock Engine REST API.

Changes

  • New file: docs/API.md - Complete API documentation covering all 6 endpoints
  • Updated: docs/README.md - Added link to API documentation

Documentation Includes

  • All 6 API endpoints with detailed specifications:

    • GET /api/user - Get current authenticated user
    • POST /api/register - Register a new user
    • GET /api/register/{uuid} - Get registration status
    • GET /api/regions - Get available regions and apps
    • GET|POST /api/instance/{uuid}/health/{status} - Update instance health status
    • GET /app-instances/{appInstance} - Redirect to app instance
  • Request/response examples with JSON

  • Authentication requirements

  • Error handling documentation

  • Status codes and error responses

  • cURL examples for each endpoint

  • Rate limiting information

Review Notes

Please review for:

  • Accuracy of endpoint descriptions
  • Completeness of request/response examples
  • Clarity of documentation
  • Any missing endpoints or details

- Add new API.md with complete endpoint documentation
- Document all 6 API endpoints with request/response examples
- Include authentication, error handling, and usage examples
- Update docs/README.md to link to API documentation
@bonus414
Copy link
Author

Please note this documentation was drafted with the help of AI so we def need to get some closer looks

@dan2k3k4
Copy link
Contributor

I'm not sure if anyone plans to do anything via the API routes, but we should add documentation around the artisan commands

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants