pressbooks / ideas

Ideas for Pressbooks.
GNU General Public License v3.0
12 stars 4 forks source link

[Research] Simple plugin to add necessary metadata for Presbooks Directory #346

Open richard015ar opened 3 years ago

richard015ar commented 3 years ago

Research about Books API Interception in Presbooks Plugin in order to add necessary fields from a separate plugin. In that way we could have compatibility with Dierctory Fetcher without install the latest PB version. Also, it could be useful if we need to update the API for PB Directory.

SteelWagstaff commented 3 years ago

Compare with https://github.com/pressbooks/pb-api/issues/3?

dac514 commented 3 years ago

Compare with pressbooks/pb-api#3?

Before Pressbooks had API V2, Brad from BcCampus had contributed API V1. V2 was built on WordPress REST API. V1 was not (such a thing did not exist.) Here is the PR that introduced API V1 in 2014: https://github.com/pressbooks/pressbooks/pull/70

To make room for V2, Brad's code was moved out of core into pb-api. The idea was that we might need to support V1 if BcCampus still needed it. The issue you linked contains code snippets if someone really wanted to wedge V1 back into Pressbooks. Lucky for us, everyone started using V2 (and we never finished)

pb-api had more to do with trying to simplify the code base because we didn't want two totally different REST APIs in core. It's an archive. A backup. Nothing more, really. I don't think it will help you in your research.