niccolox

niccolox

hello

last couple of days I have been exploring the ash_json_api_wrapper in a ecommerce store app I am building and I looking for feedback on the design and intent of this library

I see its experimental, and has no docs, and I think I have an ok working knowledge of it, I added an array type and a description type, the later I think its a kludge.

I am working against the Ecommerce API 3.0 from API Deck which based on a quick search seems reasonable Ecommerce API - Apideck

questions:

  1. anyone else using ash_json_api_wrapper in research or development or production?
  2. is the intent to be a way to interact with a JSON API endpoint? i.e. generate a Resource based on an JSON API and then interact with that API sending and receiving?
  3. how should I handle schemas that dont have endpoints? i.e. components.schemas.EcommerceOrderLineItem doesnt have a path in the Ecommerce API?

https://github.com/Devekko-Dev/devekko.store/blob/d10eb1919909feff1e1b8bbc0e2664699a54de45/store/lib/mix/ecommerce_api.ex#L26

my goal is to use the Ecommerce API from API Deck to build Ash Resources Domains JSON and GraphSQL and then integrate this with Next JS Commerce app in the same repo

the data in my Ash Ecommerce store than can be synced via API Deck into other platforms such as Shopify etc

Showing Posts 1 to 6

zachdaniel

zachdaniel

Creator of Ash
  1. I’ve only experimented with it, but I’d love to see it stretch its wings, and as soon as I have need of it I’ll be pushing its limits again.
  2. Yep! Thats right.
  3. If they don’t have endpoints then you are likely looking for embedded resources, the :map type, or a fully custom type.
niccolox

niccolox OP

Ok. Wrangling json schemas is not my favorite thing but if it can become a richer tool it can be a very powerful tool to build an integration project

niccolox

niccolox OP

followup

whats "entity_path \"#{config[:entity_path]}\"" in relation to the OpenAPI JSON spec?

zachdaniel

zachdaniel

Creator of Ash

It’s been a while since I’ve looked at that code but IIRC that is the path in the response that the resource in question can be found. like if you got a response like %{data: [%{"id" => 1}, %{"id" => 2}]} then entity_path would be something like data.

niccolox

niccolox OP

pushed some notes to my blog

niccolox

niccolox OP

splitting out the ash_json_gen_ecommerce_api to accompany my fork of ash_json_api_wrapper

my idea is to make an easily installable ash json gen package that consume the Ecommerce API and creates a Resource.

I have a closed sourced proprietary app which I want to use these apps in also

soon I want to expand

these are all personal self-funded projects, huge time constraints, so bear with me, I’ve done professional coding customer work, this ain’t that.

https://github.com/Devekko-Dev/devekko.store
https://github.com/Devekko-Dev/ash_json_gen_ecommerce_api
https://github.com/Devekko-Dev/ash_json_api_wrapper

— All posts loaded —

Where Next? Top

Trending in Questions Top

katta
I having some trouble figuring out if I have set myself too strict of standards for my production server. Currently I can handle 75% of r...
New
nseaSeb
Hello, I know there is an approach for handling lists that allows for optimized traversal, but I can’t recall the specific method (somet...
New
brecabral
Documentation While reading the Scoped Routes section, I noticed that the documentation currently refers to a problem without explainin...
New
kpanic
Hi everyone, I am toying with the idea of building a “match maker” for giving personal help to people that wants to start coding. I sta...
New
velrest
So my question is quite simple and i have found no conclusive answer on forum, google or AI. Should we use :erlang.float for Integer to ...
New
asweet-confluent
I recently noticed that Elixir’s Logger defaults its primary log level to :debug when no :logger, :level application configuration is pre...
New
apz
I’m new to elixir and just tried to install the elixirLS extension for VScode(ium) and it is throwing some errors that I would like help ...
New

Other Trending Topics Top

GenericJam
Edit: 2026 May 15 - This post is archived. Mob is alive!! Main docs: mob v0.7.11 — Documentation A bit of explanation for the slightly c...
New
JesseHerrick
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
garrison
Hobbes is a low-level distributed database for the Elixir programming language. Hobbes provides a simple, safe, and scalable storage lay...
New
mhanberg
Hi everyone! The first release candidate for the Expert language server project is now available! We’ve published a press release detai...
New
budgie
A little off-topic, but I feel like people here have a good head on their shoulders. I used to be quite good at making software. Was luc...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews