niccolox
Seeking feedback exploring ash_json_api_wrapper
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:
- anyone else using
ash_json_api_wrapperin research or development or production? - 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?
- how should I handle schemas that dont have endpoints? i.e.
components.schemas.EcommerceOrderLineItemdoesnt have a path in the Ecommerce API?
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
First Post!
zachdaniel
- 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.
- Yep! Thats right.
- If they don’t have endpoints then you are likely looking for embedded resources, the
:maptype, or a fully custom type.
Most Liked
niccolox
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
zachdaniel
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
Last Post!
niccolox
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
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #elixirconf-us
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #metaprogramming
- #security
- #hex









