hn_api 0.0.2 copy "hn_api: ^0.0.2" to clipboard
hn_api: ^0.0.2 copied to clipboard

A dart client for the Hacker News API, with API response types. For use with Flutter Hacker News Clients.

Changelog #

[Unreleased] #


0.0.2 - 2021-11-09 #

Added #

Models #

  • Add Item union type model as a Union type for Story, Poll, Job, Ask
  • Add checked:true to Json Serializables for better debugging

Client #

  • Add getItem method that will return respective Item union types

Changed #

Client #

  • Change getTopStories default storyCount to 10

0.0.1 - 2021-11-09 #

Added #

Models #

  • Add Story model and tests.
  • Add Comment model and tests.
  • Add User model and tests.
  • Add Poll model and tests.
  • Add PollOption model and tests.
  • Add Ask model and tests.

Client #

  • Add .getTopStories() method
  • Add .getStory() method
0
likes
70
pub points
0%
popularity

Publisher

unverified uploader

A dart client for the Hacker News API, with API response types. For use with Flutter Hacker News Clients.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

console, freezed, freezed_annotation, http, json_annotation

More

Packages that depend on hn_api