Building our API

If we try to run API requests against our application right now using a tool like a cURL or a Postman we will (rightfully) get an error message since we have no real framework in place to serve API requests. The good news is that Phoenix makes everything incredibly simple to build a new API with very, very little dependency on extra libraries to get everything put together.

In fact, building an API in Phoenix is such a simple endeavor that it has completely replaced my usual defaults of other languages and tools! Everything is given to you in some way or another without requiring a lot of extra work or configuration, and having an API live seamlessly side-by-side with the rest of your application is a breeze!

If we start ...

Get Phoenix Web Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.