๐ ๏ธUtilities โ Docs
Utility endpoints for generating custom images, identicons from usernames, returning mock HTTP status codes, and getting the client IP.
Base URL: https://dummyapi-backend.onrender.com/api
GET https://dummyapi-backend.onrender.com/api/image?text=Hello&width=300&height=300
?text?width?height?bg?color?fontSize
fetch('https://dummyapi-backend.onrender.com/api/image?text=Hello&width=300&height=300').then(res => res.json()).then(console.log);
GET https://dummyapi-backend.onrender.com/api/identicon/:username
fetch('https://dummyapi-backend.onrender.com/api/identicon/:username').then(res => res.json()).then(console.log);
GET https://dummyapi-backend.onrender.com/api/mock?status=404
?status
fetch('https://dummyapi-backend.onrender.com/api/mock?status=404').then(res => res.json()).then(console.log);
GET https://dummyapi-backend.onrender.com/api/ip
fetch('https://dummyapi-backend.onrender.com/api/ip').then(res => res.json()).then(console.log);