Skip to content

Instantly share code, notes, and snippets.

@alejoasotelo
Created July 19, 2024 23:24
Show Gist options
  • Save alejoasotelo/3af2e410cdeb8ae17c9ad6336a54cccf to your computer and use it in GitHub Desktop.
Save alejoasotelo/3af2e410cdeb8ae17c9ad6336a54cccf to your computer and use it in GitHub Desktop.
API Prestashop 1.7 (webservice) endpoints para VS Code Rest Client
@baseUrl = https://midominio.com.ar/api/
@apiKey = MI_API_KEY_CREADA_EN_PRESTASHOP
@authorizationKey = {{apiKey}}:
###
GET {{baseUrl}}?output_format=JSON HTTP/1.1
Authorization: Basic {{authorizationKey}}
###
# @name products
GET {{baseUrl}}products?output_format=JSON&limit=10 HTTP/1.1
Authorization: Basic {{authorizationKey}}
###
# @name product
GET {{baseUrl}}products/{{products.response.body.products[0].id}}?output_format=JSON HTTP/1.1
Authorization: Basic {{authorizationKey}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment