Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any support for custom endpoints? #48

Open
anakinjay opened this issue Sep 26, 2016 · 2 comments
Open

Any support for custom endpoints? #48

anakinjay opened this issue Sep 26, 2016 · 2 comments

Comments

@anakinjay
Copy link

Just curious, I have a few custom routes in my D8 module that return Json data that only work for logged in users. The endpoint has to combine drupal data with data from an external source so just using drupal's rest api and a view wouldn't work.

Is there any way to piggyback on the jDrupal object to have it make an authenticated request to that custom endpoint?

@signalpoint
Copy link
Owner

@anakinjay I haven't tried it yet, but it's definitely possible. Essentially just copy one of jDrupal's .js implementations of a resource, and change it to use your resource.

@anakinjay
Copy link
Author

awesome, I'll give it a whirl. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants