Skillnad mellan versioner av "Surface"

Från Vendre Help
Hoppa till: navigering, sök
(Calls)
(request-password-change)
Rad 7: Rad 7:
 
===request-password-change===
 
===request-password-change===
 
'''Type:''' POST<br />
 
'''Type:''' POST<br />
<nowiki>{ "email": "user@domain.se" }</nowiki> or <nowiki>{ "id": 12345 }</nowiki>
+
<nowiki>email or id as POST-variables (email is prioritized if both are used)</nowiki>
  
 
===extended-product-data-field===
 
===extended-product-data-field===
 
'''Type:''' GET<br />
 
'''Type:''' GET<br />
 
<nowiki>[{ "product_id": 5555, "fields": [{ "id": 4553, "languages": [4,5,8] }, { "id": 1234 }]</nowiki>
 
<nowiki>[{ "product_id": 5555, "fields": [{ "id": 4553, "languages": [4,5,8] }, { "id": 1234 }]</nowiki>

Versionen från 27 februari 2024 kl. 16.03

Surface API

Our StoreFront API to fetch data through Vue or other comparable frameworks.

Calls

Basepath for all calls, /surface/1/, using version 1.
eg. /surface/1/request-password-change

request-password-change

Type: POST
email or id as POST-variables (email is prioritized if both are used)

extended-product-data-field

Type: GET
[{ "product_id": 5555, "fields": [{ "id": 4553, "languages": [4,5,8] }, { "id": 1234 }]