Fetching Data

Design archive

Designs

A design is a background used in a printed product. app includes a big archive with categorized and tagged designs.

Fetch all designs for agency

Fetches list of all available designs. Both global and all designs agency has acl access to. Continue reading to find information about how to create a local cache of designs

URI: https://<im4>/designs
  • Request-type: GET
  • Parameters: none
  • Return data {mixed} (JSON)
/designs request give all designs agency has access to, but if client is implementing a global cache of designs this list of designs cannot be served for all agencies.

In that case – load /global once and /acl per agency and store in cache.

Concatenation of global list and an agencies acl list gives the same result as the /designs request. This way designs can be cached e.g. once each night and then no requests needed to get designs through API until next night'

Fetch all global designs

Fetch list of all global design – all designs with no acl restrictions.

URI: https://<im4>/designs/global
  • Request-type: GET
  • Parameters: none
  • Return data {mixed} (JSON)

Fetch all restricted designs available for agency

Fetch list of all designs where acl restrictions is set and where agency passes these restrictions.

URI: https://<im4>/designs/acl
  • Request-type: GET
  • Parameters: none
  • Return data {mixed} (JSON)