jeanrl Posted February 14, 2023 Share Posted February 14, 2023 Hello! Where do I find the list of Prestashop endpoints? I looked in the documentation and couldn't find it. Thank you very much. Link to comment Share on other sites More sharing options...
Rhobur Posted February 14, 2023 Share Posted February 14, 2023 If by that you mean the webservices, here it is https://devdocs.prestashop-project.org/8/webservice/ 1 Link to comment Share on other sites More sharing options...
jeanrl Posted February 14, 2023 Author Share Posted February 14, 2023 First of all, thank you very much for the answer. Yes, this documentation is the one I'm looking at, but it doesn't have a place where it shows all the endpoints, for example: To register an image: /api/images/products/1 but what are all the endpoints related to images? Do you understand the difficulty? Hugs. Link to comment Share on other sites More sharing options...
Rhobur Posted February 14, 2023 Share Posted February 14, 2023 There are a bunch of resources for images if you loo here https://devdocs.prestashop-project.org/8/webservice/reference/#available-resources You can access them with https://example.com/api/{resource_key} 2 Link to comment Share on other sites More sharing options...
ps8modules Posted February 14, 2023 Share Posted February 14, 2023 Hello, for many programmers who do not have much experience with Prestashop and the API, it is easiest to use their own php script to import products. cURL can send both XML with product definitions and files. There are many examples of how to import products from your own XML. It is enough to write your own script, which will not have more than 250 lines of code. In your own script, you don't have to call the API several times to upload the product information, then again to import the image, and then again to import the combinations...... Link to comment Share on other sites More sharing options...
jeanrl Posted February 14, 2023 Author Share Posted February 14, 2023 @Rhobur Ok, I had seen that part of the documentation, I'll test it. Again thank you very much. @ps8moduly.cz Yes, I'm doing everything by myself, I'm not using the Prestashop framework (lib), so I'm not tied to possible break changes, I'm also working with json, I don't like XML. It's been a hard journey, because as you said, anyone who is not used to the Prestashop API is very suffering, but we'll get there, if you have more tips, I'd appreciate it. Hugs to you both. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now