Main URL Configurations in SailPilot
SailPilot’s main URL configurations are pivotal in routing requests across the application. These configurations define the entry points for various functionalities, including administrative tasks, authentication processes, and general app operations.
Main URL Patterns
The main URL patterns in SailPilot facilitate access to key areas of the application, ensuring efficient navigation and operation management.
URL Pattern |
Description |
|---|---|
/api/token/ |
Endpoint for obtaining JWT authentication tokens, utilizing CustomTokenObtainPairView. |
/api/token/refresh/ |
Dedicated endpoint for refreshing JWT authentication tokens. |
/api/auth/ |
Basic authentication operations endpoint, courtesy of the Django REST Framework. |
Features URL Patterns
The Features app in SailPilot features specific URL patterns that handle requests related to points of interest, encompassing data retrieval and content downloads.
URL Pattern |
Description |
|---|---|
/api/features/get-features/ |
Retrieves features data based on various parameters, handled by the GetFeaturesView. |
/api/features/download-content/ |
Allows for downloading feature-related content, such as zip files, through the download_content view. |
/api/features/ |
Base URL for various viewsets like AttributeGroupsViewSet, FeatureTypesViewSet, etc., catering to read-only access to feature data. |
/features/schedule-json-generation/ |
Initiates the generation of JSON files for features data, a crucial function handled by schedule_json_file_generation. |
User URL Patterns
The User app’s URL configurations in SailPilot are dedicated to user management and authentication, ensuring seamless user experiences within the app.
URL Pattern |
Description |
|---|---|
/api/users/current/ |
Provides data for the currently authenticated user. |
/api/users/register/ |
Registration endpoint for new users, managed by the UserRegister view. |
/api/server-status/ |
Simple check to confirm the server’s operational status. |
/api/users/ |
Central URL for user-related operations, such as listing and managing user accounts, linked to UserViewSet. |
/api/users/profile |
Handles user profile management, linked to ProfileViewSet. |