acquia / df

Demo Framework - mirrored at https://git.drupal.org/project/df.git
https://www.drupal.org/project/df
18 stars 19 forks source link

Add a generic /api-demo to the codebase #212

Closed saltednut closed 4 years ago

saltednut commented 4 years ago

It can just show articles on the right and the JSON output on the left.

Similar to this kind of thing we added to the old demo.

Screen Shot 2020-03-06 at 1 36 06 PM
saltednut commented 4 years ago

We may actually wanna ship this with the article content type. And not make it part of DFS Default per say, but most scenarios would have it turned on.

saltednut commented 4 years ago

This is pretty far along, was easy to copy from a previous demo and modify it. However, I am having issues getting the JS side of things working correctly and we need to theme the page to use two columns correctly.

saltednut commented 4 years ago

Screen Shot 2020-03-06 at 5 39 44 PM Current state

saltednut commented 4 years ago

api-demo-2

saltednut commented 4 years ago

I think we can do better but this can work for the first take until @kevinfunk has time to come in and polish it up to use 2 columns and do more than just collapse. No rush, this current state should be good enough to do the demo, but having 2 cols would be better.

kevinfunk commented 4 years ago

Screen Shot 2020-04-06 at 2 08 04 PM

Screen Shot 2020-04-06 at 2 08 36 PM