Skip to main content

API Initialization

Base URLs​

All endpoints use the base URL ({{url}}/api). The API is available in multiple environments:

Testing Environment​

https://testing-api.calwe.com/v1

Use this environment for development and testing purposes.

Staging Environment​

https://staging-api.calwe.com/v1

Use this environment for development and staging purposes.

Production Environment​

https://api.calwe.com/v1

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-api.calwe.com/v1/customer/login
  • Staging environment: https://staging-api.calwe.com/v1/customer/login
  • Production environment: https://api.calwe.com/v1/customer/login

Environment Selection​

  • Testing Environment: Use this for:

    • Development
    • Integration testing
    • QA testing
    • Testing environments
  • Staging Environment: Use this for:

    • Development
    • Integration Staging
    • QA testing
    • Staging environments
  • Production Environment: Use this for:

    • Live applications
    • Production deployments
    • Real user interactions