Designing a JavaScript client for a REST API | Heykuki News