This WebAPI expose two endpoints:
- Search url:
https://{Your-Server-IP:Port}/Giphy/search
Required parameters:
searchVal- the string value used to query the Gipty services
- Trending url:
https://{Your-Server-IP:Port}/Giphy/trending
Optional parameters:
You can add results limiter to each off the queries in order to limit the amount of returned result values
** If NOT specified in the url the default returned results will be 25 **
Example url's:
-
This url will send the "queen" search query to Gipty service on local host server and will limit the search results to the top 5.
https://localhost:44348/Giphy/search?searchVal=queen&resLimit=5
-
This url will query the Gipty service for the top 10 current trending results
{
"Logging": {
"LogLevel": {
// ....
}
},
"AllowedHosts": "*",
"ApiBaseURL": "https://api.giphy.com/v1/gifs/",
"ApiKey": "Your-Giphy-API-Key", // <---- don’t forget to set your Giphy API key
"CacheExpirationInSeconds": 3600 // <---- define a cache expiry of 1 hour (3600 sec)
}