API Initialization
Base URLs
All endpoints use the base URL ({{url}}/api). The API is available in multiple environments:
Testing Environment
https://testing-lax.elyak.com/api
Use this environment for development and testing purposes.
Production Environment
https://laxapp.elyak.com/api
Use this environment for live applications.
Local Development
http://127.0.0.1:8000/api
Use this environment for local development and testing.
Using the Base URL
Throughout this documentation, you'll see {{url}} used in API endpoints. Replace this with the appropriate base URL depending on your environment:
Example
For the login endpoint:
- Documentation shows:
{{url}}/auth/login - Testing environment:
https://testing-lax.elyak.com/api/auth/login - Production environment:
https://laxapp.elyak.com/api/auth/login
Environment Selection
-
Testing Environment: Use this for:
- Development
- Integration testing
- QA testing
- Staging environments
-
Production Environment: Use this for:
- Live applications
- Production deployments
- Real user interactions