egze
Examples of a good API client
Looking for a API Client library that deals with calling some endpoint, parsing the data and returning structs. I want to study what are some best practices how to structure them.
What are you favourite API client projects in terms of good architecture?
First Post!
pablodavila
You could start by reading the recent discussion about HTTP clients. There’s a few options but they all have different use cases.
I’ve personally used Peppermint mainly because it seemed simple enough and built on a fast client (Mint). It seems like it’s not very popular, so you might want to keep that in mind. I can’t comment much more since my use case was very basic.
Most Liked
pablodavila
Ah, I understand now. I’m sorry if I made any wrong assumptions.
I haven’t used a lot of clients but these are the ones I’ve heard good things about:
- GitHub - ex-aws/ex_aws: A flexible, easy to use set of clients AWS APIs for Elixir · GitHub
- GitHub - beam-community/stripity-stripe: An Elixir Library for Stripe · GitHub
- GitHub - parroty/extwitter: Twitter client library for elixir. · GitHub
- GitHub - prometheus-erl/prometheus.ex: Prometheus.io Elixir client · GitHub
Hope these are useful as a starting point at the very least ![]()
egze
The motivation is to write my own library. I have written api clients before and know what goes into one, but recently was just thinking of ways how to organise such a library and looking for inspiration. So I’m looking for some open source projects where by looking at the code, I could say - wow, this library is very well written, has good separation of concerns, good testability, etc. To learn from the best ![]()
Last Post!
egze
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #elixirconf-us
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #metaprogramming
- #security
- #hex









