Mapa mental
Part 2
Conteúdo do mapa
Part 2
End Points
- Fetch a random dad joke
- Connect to the database
- Database send joke
- server receives joke
- Display programmatically transformed joke
- server receives joke
- Database send joke
- Connect to the database
- Fetch a dad joke
- Connect to the database
- Database sends random joke from list to server
- Server receives random joke
- Display programmatically transformed joke
- Server receives random joke
- Database sends random joke from list to server
- Connect to the database
- Fetch a dad joke as a slack message
- Can be used by third parties who need to receive a random joke formatted as a slack message
- Only returns JSON
- Can be used by third parties who need to receive a random joke formatted as a slack message
- Fetch a dad joke as an image
- Server connects to the database
- Database sends joke to server
- Transform joke from text to image
- Display joke image
- Transform joke from text to image
- Database sends joke to server
- Server connects to the database
- Search for dad jokes
- User searches for joke
- Number of results to return per page is limited
- Term: search term to use (Default: list all jokes)
- Display page results (e.g 1-20)
- Fetch a random dad joke
Calling the API
- API response format
- Text/HTML
- HTML response (Default response format).
- Text/plain
- Plain text response
- Application/JSON
- JSON response
- Custom user agent
- Text/HTML
- Authentication
- There is no authentication required for the icanhazdadjoke API
- Custom user agent
- User agent
- Includes;
- Name of the library
- URL/e-email
- Allows someone to be contacted through the library/website
- e.g: curl -H "User-Agent: My library (https://github.com/username/repo)" https://icanhazdadjoke.com/
- Allows someone to be contacted through the library/website
- Definition: Is a request that allows a characteristic string to enable network protocol peers to identify the operating system and browser of the web-server.
- Includes;
- User agent
- API response format
Informações
- Descrição
- Mapa Mental sobre Part 2, criado por jonathan iommarini em 18-08-2022.
- Criado por
- jonathan iommarini
- Visualizações
- 0
- Avaliação