AndreasFaust / gatsby-source-custom-api

Source data from any API and transform it to (File-)Nodes.
52 stars 25 forks source link

Is it possible to set up an endpoint with a variable? #14

Closed baumant closed 3 years ago

baumant commented 3 years ago

For example, the api I'm using pulls a list of job posts from the endpoint: https://myapi.com/jobs/ which will return jobs in the format: jobs: [{ id: 123, name: job 1 }, { id: 456, name: job 2}] I then need to query the endpoint https://myapi.com/jobs/job.id to grab the information on that specific job. Any idea how would I set something like that up?

baumant commented 3 years ago

nvm, figured out a workaround