{% extends 'base.html.twig' %} {% block title %}api Snap-GT{% endblock %} {% block stylesheet %} {% endblock %} {% block body %}

SnapGT API ✅

documentation V0.0.1

Make REST API calls

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.


GET families

Retrieves the collection of Family resources.

https://api.snap-gt.fr/customer/xxxxxxxxx/families
Response 200: Family collection response :

{
  "families": [
    {
      "id": "int",
      "name": "string",
      "libelleFR": "string",
      "libelleNL": "string",
      "libelleEN": "string"
    },
    {
      "...": "..."
    }
  ]
}
    

GET family

Retrieves a Family resource.

https://api.snap-gt.fr/customer/xxxxxxxxx/families/id_family
Response 200: Family resource response :

{
    "id": "int",
    "name": "string",
    "libelleFR": "string",
    "libelleNL": "string",
    "libelleEN": "string"
}
    

GET subfamilies

Retrieves the collection of SubFamily resources.

https://api.snap-gt.fr/customer/xxxxxxxxx/families/id_family/subfamilies
Response 200: SubFamily collection response :

{
  "subFamilies": [],
  "subfamilies": [
    {
      "id": "int",
      "name": "String",
      "libelleFR": "String",
      "libelleNL": "String",
      "libelleEN": "String"
    },
    {
        "...": "..."
    }

  ]
}
    

GET subfamilies

Retrieves a SubFamily resource.

https://api.snap-gt.fr/customer/{customer_id}/families/{id}/subfamilies/{sub_id}
Response 200: SubFamily resource response :

{
    "id": "int",
    "name": "string",
    "libelleFR": "string",
    "libelleNL": "string",
    "libelleEN": "string"
}

GET products

Retrieves Product resources.

https://api.snap-gt.fr/customer/{customer_id}/products"
Response 200: Product collection response :

{
  "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"
    },
    {
        "...": "..."
    }
    ]
}

GET products by family

Retrieves Product resources by family.

https://api.snap-gt.fr/customer/{customer_id}/products/families/{family_id}"
Response 200: Product collection response :

{
  "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"
    },
    {
      "...": "..."
    }
    ]
}

GET products by subfamily

Retrieves Product resources by subfamily.

https://api.snap-gt.fr/customer/{customer_id}/products/subfamilies/{subfamily_id}"
Response 200: Product collection response :

{
  "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"
    },
    {
      "...": "..."
    }
    ]
}

GET productSizes by product

Retrieves ProductSize resources by product.

https://api.snap-gt.fr/customer/{customer_id}/products/{product_id}/articles"
Response 200: ProductSize collection response :

{
  "productSizes": [],
  "productSizes": [
    {
      "id": "int",
      "name": "string",
      "size": "string",
      "ean": "string",
      "gtin": "string",
      "salePrice": "float",
      "purchasePrice": "float",
      "currency": "string",
      "poids_net": "float",
      "poids_brut": "float"
    },
    {
      "...": "..."
    }
    ]
}

GET productSizes by ean

Retrieves a ProductSize resources by ean.

https://api.snap-gt.fr/customer/{customer_id}/products/articles/{ean}"
Response 200: ProductSize resource response :

{
  "productSizes": [],
  "productSizes": [
    {
      "id": "int",
      "name": "string",
      "size": "string",
      "ean": "string",
      "gtin": "string",
      "salePrice": "float",
      "purchasePrice": "float",
      "currency": "string",
      "poids_net": "float",
      "poids_brut": "float"
    }
    ]
}
{% endblock %}