apiService

Methods

(static) apiCall(apiURL) → {Promise}

Description:
  • API call to fetch data from a route end point
Source:
Parameters:
Name Type Description
apiURL string
Returns:
Type
Promise

(static) apiGETDatabaseCall(path, queryRoute) → {Promise}

Description:
  • API GET call to server to request data from the database
Source:
Parameters:
Name Type Description
path string
queryRoute string
Returns:
Type
Promise

(static) apiImageCall(imageURL) → {Promise}

Description:
  • API call to imageURL to get image data
Source:
Parameters:
Name Type Description
imageURL string
Returns:
Type
Promise

(static) apiPOSTDatabaseCall(path, queryRoute, summonerJSONObject) → {Promise}

Description:
  • API POST call to server to create new database entry
Source:
Parameters:
Name Type Description
path string
queryRoute string
summonerJSONObject Object
Returns:
Type
Promise