We've just launched our map. Add yourself by clicking here!

close

Accessing WordPress json

This topic contains 1 reply, has 2 voices, and was last updated by  Dave Hakkens 1 year ago.

2
Keren Meron kerenm

Accessing WordPress json

07/07/2018 at 23:15

Hello!

I am trying to access the json data of PreciousPlastic website in order to build an APP for Precious Plastic. I understood from Dave that Map & Community are both available via WordPress REST API.

I tried accessing https://map.preciousplastic.com/wp-json (to get all WP links) and also https://map.preciousplastic.com/wp-json/wp/v2/posts (to get the json data), BUT both did not exist!

Can someone please give me a basic overview of where the json is stored?
From my WordPress understanding, it should be under https://yourwebsite.com/wp-json/wp/v2/posts.
I also saw that this was referred to via here, but the IP did not work either.

Many Thanks!!

1 replies
3 subscribers
1 saved
2 likes
sort on most likes
warrior
09/07/2018 at 15:17
0

Here is how the structure is set up.
Our community (davehakkens.nl) contains a database that stores all the information. PreciousPlastic.com is just a static website, just as storyhopper.com, projectkamp.com, phonebloks.com etc.

on map.preciousplastic.com people can add new pins (data is stored in davehakkens.nl database)

And finally we have the bazar which runs using a 3th party software (sharetribe), not our database.. Want to change this in the future though..

All of these repositories can be found on our Github. https://github.com/hakkens/davehakkens So In order to reach that json file it needs to come from the database here on davehakkens.nl

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.

Support our projects on Patreon so we can keep developing 💪