# \#rest\_api

**URL:** https://forum.elixirforum.com/tag/rest-api/1318.md

[Latest](https://forum.elixirforum.com/latest.md) · [Categories](https://forum.elixirforum.com/categories.md) · [Tags](https://forum.elixirforum.com/tags.md)

---

## [Pgrest - PostgREST/Supabase, but in Elixir/Ecto](https://forum.elixirforum.com/t/pgrest-postgrest-supabase-but-in-elixir-ecto/77569)

<div class="topic-metadata">

**Author:** [@cpursley](https://forum.elixirforum.com/u/cpursley)\
**Replies:** 0\
**Last updated:** [November 28, 2026, 7:43pm UTC](https://forum.elixirforum.com/t/pgrest-postgrest-supabase-but-in-elixir-ecto/77569 "2026-11-28T19:43:22Z")

</div>

Put together a project that attempts compatibility with PostgREST. Useful for migrating off of Supabase to Phoenix, providing data access via MCP/APIs, etc. Also its query syntax can be used internally for things like li…

---

## [Phoenix Product Codex: Develop and deploy a REST API for Product Data Management with Elixir and Phoenix (self-published/Leanpub)](https://forum.elixirforum.com/t/phoenix-product-codex-develop-and-deploy-a-rest-api-for-product-data-management-with-elixir-and-phoenix-self-published-leanpub/70643)

<div class="topic-metadata">

**Author:** [@waseigo](https://forum.elixirforum.com/u/waseigo)\
**Replies:** 38\
**Last updated:** [November 24, 2026, 11:03pm UTC](https://forum.elixirforum.com/t/phoenix-product-codex-develop-and-deploy-a-rest-api-for-product-data-management-with-elixir-and-phoenix-self-published-leanpub/70643 "2026-11-24T23:03:25Z")

</div>

by Isaak Tsalicoglou Why this book is being written A few years ago I got fed up with the menial manual labor I was engaged in in our family business (TECTRA Ltd), in order to manage customer requests, product inv…

---

## [Twilio -  an Elixir SDK for Twilio's REST API, generated from its OpenAPI spec](https://forum.elixirforum.com/t/twilio-an-elixir-sdk-for-twilios-rest-api-generated-from-its-openapi-spec/77396)

<div class="topic-metadata">

**Author:** [@mandar1045](https://forum.elixirforum.com/u/mandar1045)\
**Replies:** 9\
**Last updated:** [November 17, 2026, 6:30pm UTC](https://forum.elixirforum.com/t/twilio-an-elixir-sdk-for-twilios-rest-api-generated-from-its-openapi-spec/77396 "2026-11-17T18:30:15Z")

</div>

I’ve published twilio, an SDK for Twilio’s core REST API (2010-04-01): messages, calls, phone numbers, recordings, conferences, usage and the rest, 197 operations in all. {:ok, message} = Twilio.Messages.create(to: "+…

---

## [RFC 10008 - HTTP QUERY method: any plans for Plug/Cowboy support?](https://forum.elixirforum.com/t/rfc-10008-http-query-method-any-plans-for-plug-cowboy-support/75949)

<div class="topic-metadata">

**Author:** [@nseaSeb](https://forum.elixirforum.com/u/nseaSeb)\
**Replies:** 5\
**Last updated:** [July 9, 2026, 10:34am UTC](https://forum.elixirforum.com/t/rfc-10008-http-query-method-any-plans-for-plug-cowboy-support/75949 "2026-07-09T10:34:49Z")

</div>

The IETF published RFC 10008 in June 2026, standardizing a new HTTP method: QUERY. It’s meant to fill the gap between GET (safe/idempotent, but no defined body semantics) and POST (body support, but no safety guarantee) …

---

## [FlopRest - Stripe-style REST parameters for Flop](https://forum.elixirforum.com/t/floprest-stripe-style-rest-parameters-for-flop/74198)

<div class="topic-metadata">

**Author:** [@guess](https://forum.elixirforum.com/u/guess)\
**Replies:** 0\
**Last updated:** [February 4, 2026, 5:18pm UTC](https://forum.elixirforum.com/t/floprest-stripe-style-rest-parameters-for-flop/74198 "2026-02-04T17:18:38Z")

</div>

Hey folks! I built FlopRest, a small library that transforms Stripe-style query parameters into Flop format. The Problem Flop is excellent for filtering, sorting, and paginating Ecto queries. But when building JSON API…

---

## [How to use Ash as a wrapper for an external REST API](https://forum.elixirforum.com/t/how-to-use-ash-as-a-wrapper-for-an-external-rest-api/59026)

<div class="topic-metadata">

**Author:** [@peterhartman](https://forum.elixirforum.com/u/peterhartman)\
**Replies:** 3\
**Last updated:** [October 23, 2025, 8:04pm UTC](https://forum.elixirforum.com/t/how-to-use-ash-as-a-wrapper-for-an-external-rest-api/59026 "2025-10-23T20:04:02Z")

</div>

I am new to Ash and would like to use it to sit on top of (wrap) an external REST API. Is there an approach to doing this that is going to yield maximum advantage further down the line? Should I create my own data layer…

---

## [Guides to making a library to wrap an API](https://forum.elixirforum.com/t/guides-to-making-a-library-to-wrap-an-api/20795)

<div class="topic-metadata">

**Author:** [@phoebe](https://forum.elixirforum.com/u/phoebe)\
**Replies:** 4\
**Last updated:** [October 23, 2025, 6:55pm UTC](https://forum.elixirforum.com/t/guides-to-making-a-library-to-wrap-an-api/20795 "2025-10-23T18:55:05Z")

</div>

Hi, I would like to learn more about Elixir and thought creating a hex library might help me achieve this. I would like to wrap a third-party event/ticketing API that I am using for one of my current projects and then pu…

---

## [Any tips on implenting the lemmy api?](https://forum.elixirforum.com/t/any-tips-on-implenting-the-lemmy-api/71946)

<div class="topic-metadata">

**Author:** [@UlrikHD](https://forum.elixirforum.com/u/UlrikHD)\
**Replies:** 4\
**Last updated:** [August 5, 2025, 1:56pm UTC](https://forum.elixirforum.com/t/any-tips-on-implenting-the-lemmy-api/71946 "2025-08-05T13:56:06Z")

</div>

I’ve been wanting to write a library for the lemmy API so that I can port some of my scripts over to elixir. For those unfamiliar with lemmy, it’s a FOSS project trying to mimic reddit. Since I’ve only used elixir for a…

---

## [Creating a BEP3 compatible percent encoder (URI encoder)](https://forum.elixirforum.com/t/creating-a-bep3-compatible-percent-encoder-uri-encoder/69136)

<div class="topic-metadata">

**Author:** [@cgrimmett](https://forum.elixirforum.com/u/cgrimmett)\
**Replies:** 3\
**Last updated:** [February 2, 2025, 8:16am UTC](https://forum.elixirforum.com/t/creating-a-bep3-compatible-percent-encoder-uri-encoder/69136 "2025-02-02T08:16:54Z")

</div>

I would like to announce torrents to my opentracker using an Elixir program. I have a test qbittorrent and opentracker running and I’ve identified how qbittorrent sends it’s announces to opentracker. METHOD: GET URL htt…

---

## [Thoughts on resolving nested resources using Plug](https://forum.elixirforum.com/t/thoughts-on-resolving-nested-resources-using-plug/61388)

<div class="topic-metadata">

**Author:** [@dli](https://forum.elixirforum.com/u/dli)\
**Replies:** 0\
**Last updated:** [February 1, 2024, 1:50pm UTC](https://forum.elixirforum.com/t/thoughts-on-resolving-nested-resources-using-plug/61388 "2024-02-01T13:50:11Z")

</div>

Just saw this blog post by @leejarvis: https://leejarvis.me/posts/2020/phoenix-simplify-nested-resources The post explains how to resolve nested resources in a central place. post\_comment\_path GET /projects/:proje…

---

## [Generating REST API docs by Swagger](https://forum.elixirforum.com/t/generating-rest-api-docs-by-swagger/57862)

<div class="topic-metadata">

**Author:** [@managua1902](https://forum.elixirforum.com/u/managua1902)\
**Replies:** 15\
**Last updated:** [August 28, 2023, 1:12pm UTC](https://forum.elixirforum.com/t/generating-rest-api-docs-by-swagger/57862 "2023-08-28T13:12:51Z")

</div>

I have REST API project for which I need to generate documentation. I’ve looked into phoenix\_swagger | Hex . However, as I’ve found out, it requires adding Elixir code right next to each API function: swagger\_path :in…

---

## [Doesn't pickup nested routes in SwaggerUI (OpenApiSpex)](https://forum.elixirforum.com/t/doesnt-pickup-nested-routes-in-swaggerui-openapispex/53071)

<div class="topic-metadata">

**Author:** [@freewebwithme](https://forum.elixirforum.com/u/freewebwithme)\
**Replies:** 3\
**Last updated:** [January 9, 2023, 10:04pm UTC](https://forum.elixirforum.com/t/doesnt-pickup-nested-routes-in-swaggerui-openapispex/53071 "2023-01-09T22:04:34Z")

</div>

I have nested routes in router.ex file but It doesn’t show up in localhost:4000/swaggerui I couldn’t figure out why this happens. campaign\_path POST /api/posts/preview …

---

## [Encoded Body Params](https://forum.elixirforum.com/t/encoded-body-params/51451)

<div class="topic-metadata">

**Author:** [@Alia](https://forum.elixirforum.com/u/Alia)\
**Replies:** 4\
**Last updated:** [November 1, 2022, 6:11pm UTC](https://forum.elixirforum.com/t/encoded-body-params/51451 "2022-11-01T18:11:07Z")

</div>

Hey Everyone! I just wanna ask you that how to encode data receiving from an http request to use it in our Rest API’s ? Basically its the data receiving from Flutter APP i want to use this data in my elixir functions.

---

## [Anybody have polished bindings for Jira API?](https://forum.elixirforum.com/t/anybody-have-polished-bindings-for-jira-api/51248)

<div class="topic-metadata">

**Author:** [@kanishka](https://forum.elixirforum.com/u/kanishka)\
**Replies:** 2\
**Last updated:** [October 22, 2022, 5:05pm UTC](https://forum.elixirforum.com/t/anybody-have-polished-bindings-for-jira-api/51248 "2022-10-22T17:05:57Z")

</div>

I see some old bindings for the Jira API. Does anybody have more recent bindings that they are planning to open source soon? We have some bindings at work, but wondering if we can join forces and add something to hex.

---

## [Media Uploading In Elixir](https://forum.elixirforum.com/t/media-uploading-in-elixir/50712)

<div class="topic-metadata">

**Author:** [@Alia](https://forum.elixirforum.com/u/Alia)\
**Replies:** 6\
**Last updated:** [October 2, 2022, 7:26pm UTC](https://forum.elixirforum.com/t/media-uploading-in-elixir/50712 "2022-10-02T19:26:16Z")

</div>

Hey Everyone! Today i was trying to upload the media using waffle. It is storing in my DB without any hurdle. But its a REST API I don’t want to use the bucket option so is there any way to upload the media to somewhere…

---

## [When to use GRAPHQL over REST?](https://forum.elixirforum.com/t/when-to-use-graphql-over-rest/50309)

<div class="topic-metadata">

**Author:** [@Alia](https://forum.elixirforum.com/u/Alia)\
**Replies:** 20\
**Last updated:** [September 27, 2022, 7:26am UTC](https://forum.elixirforum.com/t/when-to-use-graphql-over-rest/50309 "2022-09-27T07:26:01Z")

</div>

When to choose GRAPHQL instead of REST for mobile apps?

---

## [Api with bearer token in header got 431 status code in dev server](https://forum.elixirforum.com/t/api-with-bearer-token-in-header-got-431-status-code-in-dev-server/43374)

<div class="topic-metadata">

**Author:** [@aungmyooo2k17](https://forum.elixirforum.com/u/aungmyooo2k17)\
**Replies:** 1\
**Last updated:** [October 26, 2021, 10:18am UTC](https://forum.elixirforum.com/t/api-with-bearer-token-in-header-got-431-status-code-in-dev-server/43374 "2021-10-26T10:18:10Z")

</div>

Hi I am writing endpoint including Bearer token in api header fields in my local machine it’s working grate. When i deployed it to dev server api is returning 431 status code which is Request header field too large. Ca…

---

## [Is it possible to work only with elixir api for react.js web app?](https://forum.elixirforum.com/t/is-it-possible-to-work-only-with-elixir-api-for-react-js-web-app/42898)

<div class="topic-metadata">

**Author:** [@Skysoft13](https://forum.elixirforum.com/u/Skysoft13)\
**Replies:** 5\
**Last updated:** [October 6, 2021, 8:07pm UTC](https://forum.elixirforum.com/t/is-it-possible-to-work-only-with-elixir-api-for-react-js-web-app/42898 "2021-10-06T20:07:59Z")

</div>

I have react app and I want to create api with elixir and put in my react app, is it possible to do everything just with APİ in react.js project?

---

## [Phoenix - testing JSON Api](https://forum.elixirforum.com/t/phoenix-testing-json-api/42788)

<div class="topic-metadata">

**Author:** [@wwaldner](https://forum.elixirforum.com/u/wwaldner)\
**Replies:** 2\
**Last updated:** [October 2, 2021, 7:43pm UTC](https://forum.elixirforum.com/t/phoenix-testing-json-api/42788 "2021-10-02T19:43:42Z")

</div>

I am trying to write some tests for a JSON Api. If something in the action raises an error, I would like a JSON error to be returned to my test. Action def get(conn, params) do 1=2 end My test test "Get always re…

---

## [Phoenix controller and views for bulk insert](https://forum.elixirforum.com/t/phoenix-controller-and-views-for-bulk-insert/40668)

<div class="topic-metadata">

**Author:** [@hudsonbay](https://forum.elixirforum.com/u/hudsonbay)\
**Replies:** 2\
**Last updated:** [June 26, 2021, 7:57am UTC](https://forum.elixirforum.com/t/phoenix-controller-and-views-for-bulk-insert/40668 "2021-06-26T07:57:55Z")

</div>

Hi, I am trying to create a POST endpoint in Phoenix that will receive an array of maps %{} and I need to insert all of that data into a database as a bulk insertion. It would be receiving something like this: entries …

---

## [Uberauth failed on modified route](https://forum.elixirforum.com/t/uberauth-failed-on-modified-route/39444)

<div class="topic-metadata">

**Author:** [@prax](https://forum.elixirforum.com/u/prax)\
**Replies:** 0\
**Last updated:** [May 6, 2021, 3:07am UTC](https://forum.elixirforum.com/t/uberauth-failed-on-modified-route/39444 "2021-05-06T03:07:51Z")

</div>

Hello All, I have developed Rest API authentication using ueberauth , guardian and google auth provider. Things are working as expected if I use the same route as specified in example. scope "/api/v0/auth/", ApiGat…

---

## [Examples of a good API client](https://forum.elixirforum.com/t/examples-of-a-good-api-client/39073)

<div class="topic-metadata">

**Author:** [@egze](https://forum.elixirforum.com/u/egze)\
**Replies:** 6\
**Last updated:** [April 19, 2021, 7:27pm UTC](https://forum.elixirforum.com/t/examples-of-a-good-api-client/39073 "2021-04-19T19:27:00Z")

</div>

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 proje…

---

## [Lightweight Library For REST API](https://forum.elixirforum.com/t/lightweight-library-for-rest-api/34283)

<div class="topic-metadata">

**Author:** [@JoeLegg](https://forum.elixirforum.com/u/JoeLegg)\
**Replies:** 4\
**Last updated:** [September 10, 2020, 1:44pm UTC](https://forum.elixirforum.com/t/lightweight-library-for-rest-api/34283 "2020-09-10T13:44:04Z")

</div>

Hi, I am trying to create REST API backend for my single-page-application but I am currently stuck on choosing a library to use. Phoenix seems a bit overkill for a simple REST API. Can anyone recommend a good lightweigh…

---

## [Requirement of CSRF token verification](https://forum.elixirforum.com/t/requirement-of-csrf-token-verification/32542)

<div class="topic-metadata">

**Author:** [@santoshbt](https://forum.elixirforum.com/u/santoshbt)\
**Replies:** 1\
**Last updated:** [June 22, 2020, 12:39pm UTC](https://forum.elixirforum.com/t/requirement-of-csrf-token-verification/32542 "2020-06-22T12:39:10Z")

</div>

Hello All, I am working on API only application using Phoenix in backend and Angular in the front end. All the user authentication happens via token verification and not actually via sessions. Because there is no sess…

---

## [Is it proper to include data in the body of a GET?](https://forum.elixirforum.com/t/is-it-proper-to-include-data-in-the-body-of-a-get/32397)

<div class="topic-metadata">

**Author:** [@jeramyRR](https://forum.elixirforum.com/u/jeramyRR)\
**Replies:** 3\
**Last updated:** [June 17, 2020, 4:33pm UTC](https://forum.elixirforum.com/t/is-it-proper-to-include-data-in-the-body-of-a-get/32397 "2020-06-17T16:33:15Z")

</div>

I’m working on a controller for a service that will analyze a large amount of data sent by a client and return a response with more data. Example Json that will be sent via client to the webpage: { Files: \[ { …

---

## [Project structure for REST API client with mock server](https://forum.elixirforum.com/t/project-structure-for-rest-api-client-with-mock-server/31819)

<div class="topic-metadata">

**Author:** [@mroll](https://forum.elixirforum.com/u/mroll)\
**Replies:** 0\
**Last updated:** [May 26, 2020, 12:15am UTC](https://forum.elixirforum.com/t/project-structure-for-rest-api-client-with-mock-server/31819 "2020-05-26T00:15:34Z")

</div>

Hello, I’m creating a client for a REST API that has thorough documentation online. I read this article and this seemed like a good approach for me to test my client end-to-end. TL;DR; Spin up a cowboy web server only i…

---

## [Is it a existing Chargebee API client can suggest?](https://forum.elixirforum.com/t/is-it-a-existing-chargebee-api-client-can-suggest/30658)

<div class="topic-metadata">

**Author:** [@Ajaxdone](https://forum.elixirforum.com/u/Ajaxdone)\
**Replies:** 0\
**Last updated:** [April 15, 2020, 5:44pm UTC](https://forum.elixirforum.com/t/is-it-a-existing-chargebee-api-client-can-suggest/30658 "2020-04-15T17:44:58Z")

</div>

I am looking for a Chargebee API client: I googled by only found one on github 4 years ago, not impl fullly.

---

## [Best way to Authenticate Plug API](https://forum.elixirforum.com/t/best-way-to-authenticate-plug-api/28984)

<div class="topic-metadata">

**Author:** [@clem](https://forum.elixirforum.com/u/clem)\
**Replies:** 2\
**Last updated:** [February 10, 2020, 9:11pm UTC](https://forum.elixirforum.com/t/best-way-to-authenticate-plug-api/28984 "2020-02-10T21:11:26Z")

</div>

Hi, I am currently working on a Plug REST API, and am looking for ways to authenticate requests to the endpoints. Upon my research, I came across HMAC and oAuth2.0. But am confused how to use any of these. Any help on …

---

## [What’s your worst experience with a REST API?](https://forum.elixirforum.com/t/what-s-your-worst-experience-with-a-rest-api/22810)

<div class="topic-metadata">

**Author:** [@LTheGreats](https://forum.elixirforum.com/u/LTheGreats)\
**Replies:** 15\
**Last updated:** [June 2, 2019, 5:16am UTC](https://forum.elixirforum.com/t/what-s-your-worst-experience-with-a-rest-api/22810 "2019-06-02T05:16:51Z")

</div>

I have heard people talking about GraphQL APIs and other alternatives to a standard REST API, so that got me thinking: What is the worst experience you peoples have had with a REST API? Also, what is the best you’ve eve…

---

## [Elixir rest api returning 504 Gateway Time-out](https://forum.elixirforum.com/t/elixir-rest-api-returning-504-gateway-time-out/19910)

<div class="topic-metadata">

**Author:** [@AyubOpen](https://forum.elixirforum.com/u/AyubOpen)\
**Replies:** 25\
**Last updated:** [February 5, 2019, 7:07pm UTC](https://forum.elixirforum.com/t/elixir-rest-api-returning-504-gateway-time-out/19910 "2019-02-05T19:07:44Z")

</div>

during high load I see the rest api or even the welcome page localhost:4000 returns 504 Gateway Time-out error, I am usng OTP 20. Any clues how to improve performance Elixir 1.7.3 (compiled with Erlang/OTP 20)

[Next page](https://forum.elixirforum.com/tag/rest-api/1318.md?match_all_tags=true&page=1&tags%5B%5D=rest_api)
