Zusammenfassung der Ressource
Test
- Jokes
- total: 744
- Ensure all 744 can be
displayed on webpage
- Thus, not limited by API's limit
on how many jokes can be
retrieved at once
- Some have line breaks
- Ensure formatting from API is
maintained when displayed
on webpage
- Some are long strings
- Ensure webpage
provides enough space
for entire joke to fit
within content
- API calls/ Integrated Features
- Returned Format (header)
- JSON
- application/json
- HTML
- text/html
- Plain text
- text/plain
- Retrieving Dad Joke
- Random
- API call
- GET https://icanhazdadjoke.com/
- Retrieves 1 joke
- Search by Term
- API call
- GET https://icanhazdadjoke.com/search
- parameters
- page
- Which page of results to fetch (default: 1)
- limit
- Number of results to return per page (default: 20) (max: 30)
- term
- Search term to use (default: list all jokes)
- Retrieves all jokes
matching the
search term
- Search by ID
- API call
- GET https://icanhazdadjoke.com/j/<joke_id>
- Retrieves 1 Joke matching ID
- As image
- GET https://icanhazdadjoke.com/j/<joke_id>.png
- Retrieves joke string as image
- Front End
- Search Jokes
- Search Jokes
- Separated by pages
- Better to display all at once
- Small searchbar
- Displays
number of jokes
returned
- Implement
into solution
- Random Dad Joke
- New Joke Button
- Necessary
- Share features
- Unnecessary