Mapa mental
Part 2: IA3
Conteúdo do mapa
Part 2: IA3
Calling the API
- Authentication
- There is no authentication required for the icanhazdadjoke API.
- API response format
- text/html
- HTML response (default response format).
- application/json
- JSON response
- text/plain
- Plain text response
- text/html
- Custom User Agent
- User Agent
- 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;
- 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.
- User Agent
- Authentication
Endpoints
- 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
- Search for dad jokes.
- User searches for joke
- Displays page results (e.g: 1-20)
- Number of results to return per page is limited (e.g: 20 results per page).
- Term: Search term to use (Default: list all jokes).
- Fetch a dad joke
Informações
- Descrição
- Mapa Mental sobre Part 2: IA3, criado por T S em 19-06-2024.
- Criado por
- T S
- Visualizações
- 2
- Histórico
-
- Criado por Matthew C · 10 jun 2024
- Copiado por T S · 19 jun 2024
- Avaliação