Fuel collector web service
From Awesome SOA project
First web service is called Fuel collector web service. It is responsible for taking fuel prices and inserting that information to database. Another service task is to represent collected data by providing it by particular methods.
Actually, this service is primary used by our parsers, which collect data from the web and send it to this web service.
[edit] API Methods
- GetPetrolStations
- Parameter out:
- returns the list of petrol stations
- Parameter out:
- GetPrices
- Parameter in:
- Date - Wanted date, example 2007-05-22
- Parameter out:
- returns all petrol stations prices by providing exact date
- Parameter in:
- GetStationsTypes
- Parameter out:
- returns all station types (for example, Lukoil, Neste)
- Parameter out:
- GetDiscountsInStation
- Parameter in:
- Date - Wanted date, example 2007-05-21
- Id - Wanted petrol station id, example 45
- Parameter out:
- returns discounts for particular fuel station
- Parameter in:
- GetPricesByRegion
- Parameter in:
- Date - Wanted date, example 2007-05-24
- Region - City in Region, example Vilnius
- Parameter out:
- returns all petrol stations prices by providing date and region
- Parameter in:
- GetPetrolStationsByRegion
- Parameter in:
- Region - City in Region, example Vilnius
- Parameter out:
- returns all station in provided region
- Parameter in:
- InsertFuelPrice
- Post fuel price in petrol stations to database
- Parameter in:
- Id - Wanted petrol station id, example 45
- Date - Pick current date, example 2007-05-21
- Fuel - Fuel code, example 98
- UserName - User Name
- UserPassword - User Password
- Parameter out:
- Status - DONE or Not
- InsertPetrolStation
- Post petrol stations to database
- Parameter in:
- Name - Petrol station type, example Uno-x
- Address - Petrol station address, example M. K. Čiurlionio 45a
- City - Where Petrol station is, example Vilnius
- UserName - User Name
- UserPassword - User Password
- Parameter out:
- Status - DONE or Not
- InsertDicountForStation
- Post discounts in petrol station to datebase
- Parameter in:
- Id - Petrol station id, example 45
- Date - Pick discount begin date, example 2007-05-20
- Date - Pick discount end date, example 2007-05-25
- Discount - Discount
- UserName - User Name
- UserPassword - User Password
- Parameter out:
- Status - DONE or Not
[edit] External links
| Architecture |
|---|
| Database • Fuel collector web service • Fuel aggregator web service • User Interface |
| LB web services |

