@crystal-uk/grapple
v2.0.2
Published
Build JSON files from API endpoints
Readme
Grapple
About
Grapple is a package made to download the data from given API routes into json files that can then be used by nuxt in place of the original API
Config
If Grapple can't detect a valid .json config in your project root it will try to create one for you to fill out. This config will contain the following keys
api - required <string>
The api will be the base URL that Grapple works from. Remove this key to use API_URL from the environment variables.
static - <array>
The routes key is an array of routes that you want Grapple to scrape, if these routes contain forward slashes Grapple will split these into seperate directories to replicate the API structure.
dynamic - <array>
The dynamic routes are routes that return indexes of child routes you want Grapple to scrape.
