acquia / headless_lightning

A more opinionated flavor of Lightning for building decoupled applications. Support ended on November 2, 2021 and this project is no longer maintained.
https://lightning.acquia.com
GNU General Public License v2.0
58 stars 16 forks source link

API Access Documentation #112

Open rudamaia opened 5 years ago

rudamaia commented 5 years ago

Hey, it's my first time using Headless Lightning and I'm having a hard time understanding the Content Service.

I managed to return a token using the example described in the API Access Page: curl -X POST -d "grant_type=password&client_id=api_test{CLIENT_ID}&client_secret={SECRET}&username={USERNAME}&password={PASSWORD}" https://{YOURDOMAIN}/oauth/token

But now I want to understand how to GET and POST stuff. In this page I found an example on how to get a page: https://dev.acquia.com/decoupled/headless-cms

Is there any documentation or tutorial that I could use?

Thanks

rudamaia commented 5 years ago

Found it! JSON Api for dummies, I hope it helps you to: https://www.youtube.com/playlist?list=PLZOQ_ZMpYrZsyO-3IstImK1okrpfAjuMZ