[api-module] How can I access the API module via JS?

daviesgeek - 3 months ago

I'm trying to access the API module via a JS front-end (Vue, Angular, vanilla JS) and I can't figure out how to get it working! I think I'm just doing it all wrong, but anyhow, how would I go about doing this?

ryanthompson - 3 months ago

Check out passport docs that's what it's built around

daviesgeek - 3 months ago

Thanks I'm going to start with just a plain ol' Laravel app and try to get it working from there.

skoretsky - 3 months ago

http://image.prntscr.com/image/6a218e807ae742a7be6267689fd4c6bb.png - awesome! let You know ;)

all my laravel-based apps are 100% SPA. just simple bootstrap admin lte theme and NG2/Vuejs on frontend and REST routes on backend sides. So it would be amazing if you show us subject related technics and best practices from the point of view of PyroCMS world.

by the way

Check out passport docs that's what it's built around http://pyrocms.com/documentation?q=passport what exactly passport did you mean ?

markbratanov - 2 months ago

@skoretsky He's referring to Laravel Passport. You can reference the documentation here https://laravel.com/docs/5.3/passport

Hope that helps!