Develop Native NGE Bento Using API
We would like a native NGE bento developed. The NGE uses Wordpress and has a native API according to Ed Hatfield. His email about the API is below.
Hope this finds you well and ready for the weekend. I reached out to our developers to inquire about sharing the NGE’s API and they had this to say:
Sure thing, WordPress actually exposes public search already in their REST API, so we have it out of the box.
Here's an example url to query for Jimmy Carter: https://www.georgiaencyclopedia.org/wp-json/wp/v2/search?search=jimmy%20carter&subtype=article
Here is the documentation from the WP docs: https://developer.wordpress.org/rest-api/reference/search-results/
Note this defaults to 10 per page but can be adjusted, and they can use the page argument to paginate through results. In the query above I specified article as I would expect that to be the most relevant content type for them, however they could omit that to search everything on the site (images, collections, etc), or specify other subtypes as needed.
Let me know if you have any questions or if anything here doesn't accomplish what they're looking for.
Let us know if this doesn’t meet your needs, and we can reach out to the developers again or, better yet, just start a thread with all concerned. For now, thanks much for making this suggestion and keeping the NGE in mind!
All best, Ed