Best pratices for add api to my existent phoenix 1.3 website

Hi, i have a phoenix 1.3 website. I want add api for the mobile app.
What are the best pratices for add these?
is better create a subfolder “api” in

or create the filelib/myapp_api.ex and the folder lib/myapp_api/

Is there any documentation of this?

I would put them under lib/myapp_web/controllers as they are controllers. But I would also prefer graphql over rest api as it acts as the main entry point of your api.

And now that the Absinthe book is out, it is a good reason to give it a try :slight_smile:


Hello @romaluca! Did you solve the problem eventually? How?

i’m sorry buy no :frowning: