egze

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

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

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:

Hope these are useful as a starting point at the very least :smiley:

egze

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 :slight_smile:

Last Post!

egze

egze

No worries. Thanks for the list!

Where Next?

Popular in Questions Top

Brian
What is the proper way to load a module from a file in to IEX? In the python world, doing something like this pretty standard: from ....
New
dokuzbir
I want to highlight html closing tags when i click a html tag. That works in .html files but doesnt work for html.eex templates. How can...
New
joeerl
Hello again - after a longish gap I’ve decided I really must dig into Elixir and see what’s been happening here - so I have a few questio...
New
greenz1
I have a phoenix application from which a user can download multiple(5-6) files of size 1MB. I couldn’t find anything related to sending ...
New
gshaw
What is the idiomatic way of matching for not nil in Elixir? E.g., First way: defp halt_if_not_signed_in(conn, signed_in_account) when...
New
marius95
Hello everyone, I try to use an Javascript Event Handler in my root.html.leex file. Therefore I created a function in the app.js file: ...
New
JorisKok
I have a server on AWS, and was running a load test using artillery. When looking at the Phoenix dashboard I see the Ports going to 100% ...
New

Other popular topics Top

vonH
In asking this question I am more interested about the expressiveness of the language itself and less concerned about the availability of...
New
hariharasudhan94
Lets say I have map like this fetching from my database %{"_id" => #BSON.ObjectId<58eb1a7a9ad169198c3dXXXX>, "email" => ...
New
jononomo
For some reason my phoenix channels are working for me in my local dev environment, but as soon as I deploy via Docker, I get a 403 error...
New
sen
Hi All, I set a environment variables in dev.exs , like below code. when i start server, how can i set the ${enable} value? thanks. d...
New
gausby
I asked this very same question on twitter and got some interesting feedback, but I thought it would be a good question to ask here as we...
1207 40165 209
New
AstonJ
Seen any cool LiveView demos, sample apps or examples? Please post them here! :003:
New

We're in Beta

About us Mission Statement