Jump to content

Custom rest api in prestashop module

Recommended Posts

I'm developing module for PrestaShop, I've got my own views made in Vue.js (register, login, settings etc. pages) and I need custom endpoints in my module to comunicate with my views. 


Using module controllers requires using url's like: example.com/admin/index.php?controller=ModuleName&action=doSomething - doesn't it?

While I need something like this (get/post): 
example.com/admin/modulename/settings etc... 


In the attached file you can see login page, where clicking on "zaloguj" send post request to {url}/login - any ideas how can I implement it in prestashop?

I couldn't find any solution to this problem, in official documentation there is nothing about it (or did I miss it?)

Modules • My Store.png

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More