Skip to main content

Get list of service stations

GET 

/api/oil/

Endpoint to retrieve a paginated list of all service stations registered in the system. Allows filtering and ordering results based on different criteria.### Functionality:- Returns an array of OilStation objects with detailed information for each station- Supports pagination via query parameters (limit, page)- Allows ordering results by different fields (e.g., createdAt)- Includes only relevant fields in the response to optimize payload### Use Cases:- Display station list in an administrative panel- Integration with geolocation systems- Synchronization with mobile applications### Example Response:json[ { id: 5f8d0d55b54764421b7156da, name: Central Station, address: Calle Mayor 123, city: Madrid, country: ES, latitude: 40.4168, longitude: -3.7038, fuels: [diesel, gasoline95], isActive: true }]

Request

Responses

Successful operation. Returns an array of service stations.