{% extends "base.html" %} {% block extrahead %} {% endblock %} {% block content %}

api v1.0 help

Register an Acquisition Point

Before capturing data with an acquisition point, it must be registered and assigned to a store plan

Register process

Via rest api.

url: {% url 'api:acquisition_point_register' %}

curl -H "Content-Type: application/json" -H "authorization: mytoken" -X POST -d '{"acquisition-point-mac": "xy:zd:qw:er:rt:er", "name": "whatever"}' http://localhost:8000{% url 'api:acquisition_point_register' %}

Assign process

Via web.

Go to {% url 'configuration_stores_list' %} and select a plan. Then, place the acquisition point in the map. Save and the acquisition point will be ready to start capturing.

HTTP Status Codes

Success

201: element created

Error

401: unathorized (check authoritation header)

409: Conflict (trying to duplicate an element or capturing with no assigned acq point)

422: Unprocessable Entity (check Content-Type)

{% endblock %}