Skip to content

Load LibGuides via API? #180

@matt-bernhardt

Description

@matt-bernhardt

Right now, the guides on the front page are loaded by parsing a static HTML document that is part of this theme: https://github.com/MITLibraries/MITlibraries-parent/blob/prod/guide-list.html

So long as this infrastructure doesn't need to change, there's no issue - it works. However, if the list of guides changes relatively quickly, then our local list risks becoming dated. In that case, it might be better to work out how to load guide titles from the Springshare API.

A sample query to retrieve guides is:
http://lgapi.libapps.com/1.1/guides?site_id=68&key=2c30812e5fcf5f9b5f7db47721ca053b&expand=owner

Documentation for the Springshare API can be found at:
https://mit.libapps.com/libguides/api.php?resource=1&version=1.1

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions