Fuel aggregator web service

From Awesome SOA project

Jump to: navigation, search

Web Service 2 is Fuel aggregator web service. It is made for representing data - provides the lowest price and so on... Below you can see the list of methods with short description.

[edit] API Methods

  • getPetrolStations
    • Parameter out:
      • returns the list of petrol stations
  • getListOfCurrencies
    • Parameter out:
      • returns all available currencies
  • getRegions
    • Parameter out:
      • returns all available regions (for example, Vilnius, Kaunas)
  • getStationsTypes
    • Parameter out:
      • returns all station types (for example, Lukoil, Neste)
  • getPrices
    • Parameter in:
      • Date - Wanted date, example 2007-05-22
    • Parameter out:
      • returns all petrol stations prices by providing exact date
  • 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
  • getPetrolStationsByRegion
    • Parameter in:
      • Region - City in Region, example Vilnius
    • Parameter out:
      • returns all petrol stations for particular region
  • getMinFuelPricesInRegion
    • Parameter in:
      • Date - Wanted date, example 2007-05-21
      • Region - City in Region, example Vilnius
      • Fuel - Fuel code, example 98
      • Currency - Currency code, example USD
    • Parameter out:
      • returns cheapest price of particular fuel by exact date, region and currency
  • getMinPricesInRegion
    • Parameter in:
      • Date - Wanted date, example 2007-05-20
      • Region - City in Region, example Kaunas
      • Currency - Currency code, example SEK
    • Parameter out:
      • returns cheapest prices of all types of fuel by proving region and currency
  • getEachStationTypeMinPricesInRegionByFuelType
    • Parameter in:
      • Date - Wanted date, example 2007-05-21
      • Region - City in Region, example Vilnius
      • Fuel - Fuel code, example 98
      • Currency - Currency code, example USD
    • Parameter out:
      • returns cheapest prices of particular type of stations and fuel by providing exact date, region and currency
  • 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
  • getPertolStationsByTypes
    • Parameter in:
      • Huckster - Fuel suppliers type, example Lukoil, Uno-X
    • Parameter out:
      • returns all fuel stations that belongs to one supplier
  • getStationFuelPrices
    • Parameter in:
      • Date - Wanted date, example 2007-05-21
      • Id - Wanted petrol station id, example 3
      • Currency - Currency code, example USD
    • Parameter out:
      • returns all fuel prices in petrol station

[edit] External links


Architecture
DatabaseFuel collector web serviceFuel aggregator web serviceUser Interface
LB web services