Skip to content

zvonimirr/strapi_mapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

StrapiMapper

StrapiMapper is a simple library that allows you to map Strapi responses to Elixir maps. It doesn't care which JSON library you use, as long as you provide it with a compatible map.

Example

iex> StrapiMapper.map_to_struct(%{"data" => %{"id" => 1, "attributes" => %{"name" => "John"}}})

Installation

Simply add strapi_mapper to your list of dependencies in mix.exs:

def deps do
  [
    {:strapi_mapper, "~> 0.1.0"}
  ]
end

Documentation

Documentation can be found at https://hexdocs.pm/strapi_mapper.

About

A Strapi response mapper written in Elixir

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages