Skip to content

Instantly share code, notes, and snippets.

View hoetmaaiers's full-sized avatar

Hoetmaaiers hoetmaaiers

View GitHub Profile
@hoetmaaiers
hoetmaaiers / spec.md
Last active November 8, 2017 07:22
iCapps - JSON request/response specification

iCapps - JSON request/response specification

Goals

The goal is to specify a consistent api request/repsonse cycle while keeping enough room for project specific implementation.

General rules

  • Every property is always returned in the response, even when null.
@hoetmaaiers
hoetmaaiers / gist:8fcaba08f4b11353bb7d3acb39285f2e
Last active December 5, 2019 08:22
technical question - async caculation scenario

The context is a long running server side calculation. Because of this long running necessity, we can not use the default request/response, but need to handle it asynchronously.

We have 3 api endpoints available to implement this asynchronous result calculation.

  1. Uplaod the data to process
  2. Track the caculation process
  3. Return the calculation result

Upload