Chartisan relies in the correct protocol implementation for the usage between a back-end and a front-end to be language agnostic. That means that a solid protocol must be defined to know how the data is passed between them. Chartisan has the following protocol defined. All HTTP requests must be GET requests, with additional query parameters possible. You can also include any headers within the HTTP request or response. However, the JSON request / response header must be preset. That means that you should always include the
Content-Type or the
Accept heaer as needed to indicate that the content being sent or received is in a JSON format. The chart JSON structure must be present as the HTTP response, in the HTTP body part. The following represents a well formatted HTTP response.
It does not matter what language you are using as long as it can output a correctly formatter HTTP response following the scheme above.