{% extends 'base.html.twig' %} {% block title %}api Snap-GT{% endblock %} {% block stylesheet %} {% endblock %} {% block body %}
documentation V0.0.1
In REST API calls, include the URL to the API service for the environment:
https://api.snap-gt.fr/
Also, include your access token to prove your identity and access protected resources.
https://api.snap-gt.fr/customer/xxxxxxxxx/
You can also download the SnapGT_product-list csv file.
Retrieves the collection of Family resources.
https://api.snap-gt.fr/customer/xxxxxxxxx/families
{
"families": [
{
"id": "int",
"name": "string",
"libelleFR": "string",
"libelleNL": "string",
"libelleEN": "string"
},
{
"...": "..."
}
]
}
Retrieves a Family resource.
https://api.snap-gt.fr/customer/xxxxxxxxx/families/id_family
{
"id": "int",
"name": "string",
"libelleFR": "string",
"libelleNL": "string",
"libelleEN": "string"
}
Retrieves the collection of SubFamily resources.
https://api.snap-gt.fr/customer/xxxxxxxxx/families/id_family/subfamilies
{
"subFamilies": [],
"subfamilies": [
{
"id": "int",
"name": "String",
"libelleFR": "String",
"libelleNL": "String",
"libelleEN": "String"
},
{
"...": "..."
}
]
}
Retrieves a SubFamily resource.
https://api.snap-gt.fr/customer/{customer_id}/families/{id}/subfamilies/{sub_id}
{
"id": "int",
"name": "string",
"libelleFR": "string",
"libelleNL": "string",
"libelleEN": "string"
}
Retrieves Product resources.
https://api.snap-gt.fr/customer/{customer_id}/products"
{
"products": [],
"subfamilies": [
{
"id": "int",
"name": "string",
"libelleFR": "string",
"libelleNL": "string",
"libelleEN": "string",
"attribut": "string",
"categorie": "string",
"secteur": "string",
"type": "string",
"sous_type": "string",
"status": "string",
"famille": "string",
"sous_famille": "string"
},
{
"...": "..."
}
]
}
Retrieves Product resources by family.
https://api.snap-gt.fr/customer/{customer_id}/products/families/{family_id}"
{
"products": [],
"products": [
{
"id": "int",
"name": "string",
"libelleFR": "string",
"libelleNL": "string",
"libelleEN": "string",
"attribut": "string",
"categorie": "string",
"secteur": "string",
"type": "string",
"sous_type": "string",
"status": "string",
"famille": "string",
"sous_famille": "string"
},
{
"...": "..."
}
]
}
Retrieves Product resources by subfamily.
https://api.snap-gt.fr/customer/{customer_id}/products/subfamilies/{subfamily_id}"
{
"products": [],
"products": [
{
"id": "int",
"name": "string",
"libelleFR": "string",
"libelleNL": "string",
"libelleEN": "string",
"attribut": "string",
"categorie": "string",
"secteur": "string",
"type": "string",
"sous_type": "string",
"status": "string",
"famille": "string",
"sous_famille": "string"
},
{
"...": "..."
}
]
}
Retrieves ProductSize resources by product.
https://api.snap-gt.fr/customer/{customer_id}/products/{product_id}/articles"
{
"productSizes": [],
"productSizes": [
{
"id": "int",
"name": "string",
"size": "string",
"ean": "string",
"gtin": "string",
"salePrice": "float",
"purchasePrice": "float",
"currency": "string",
"poids_net": "float",
"poids_brut": "float"
},
{
"...": "..."
}
]
}
Retrieves a ProductSize resources by ean.
https://api.snap-gt.fr/customer/{customer_id}/products/articles/{ean}"
{
"productSizes": [],
"productSizes": [
{
"id": "int",
"name": "string",
"size": "string",
"ean": "string",
"gtin": "string",
"salePrice": "float",
"purchasePrice": "float",
"currency": "string",
"poids_net": "float",
"poids_brut": "float"
}
]
}