Phoenix API Mobile JSON - how to produce non-HTML JSON REST API with login features?

Hello all,

I am new to Phoenix and would like to know any reliable way to produce non-HTML JSON REST API that has login features. Is there any reliable source that can be used with the current version?

I made a project that implemented this when I was first learning Phoenix, you can check it out here:

I made it for Phoenix 1.7, so the foundations are still the same, but I think 1.7 was on 1.7.2 or 1.7.3 or something, so there might be some minor variations.

And I make no promises about the quality of the implementation. I’ve learned a lot since I made that repo.

But it’s all there, and tested.

EDIT: I forgot something important: The project is live at phoenix-todo-list.nicholasmoen.com and there is an OpenAPI spec at https://phoenix-todo-list.nicholasmoen.com/api which you can import into Postman or Insomnia or whatever, and there’s a SwaggerUI route as well. The OpenAPI spec was made with open_api_spex.

4 Likes