Zum Inhalt springen
PCG Team Logo

PCG Team

Software für Lebensmittel-Lieferbetriebe

  • Startseite
  • Blog
  • Kontakt
  • Deutsch
    • English
    • Français
    • Español

PC Gärtner

2
  • Artikel-Stamm
  • Basismodule

PCG API

1
  • API Optionen

Low Level API

3
  • Proxy
  • Data Lists
  • API Konzepte

Javascript Building Blocks

1
  • Warenkorb-Komponente
View Categories
  • Home
  • Docs
  • PCG API
  • Low Level API
  • Proxy

Proxy

The proxy concept exists to fetch all resources from one common server, even if they originally reside on other places. Examples are images from image server or remote CSS files or font data.

Generally, it

  • allows to embed the shop and to circumvent the same-origin or CORS restrictions for specific ressources.
  • simplifies SSL Setup, as it can make sure all ressources are fetched from a secure source
  • may improve privacy by hiding the end user (it may load not that promptly as from a public/google CDN though)
Images #
  • It will always fetch the images as assigned in the warehousing system
  • It adds watermarks if configured
  • It allows fetching via https (using the https base address) to keep the SSL safe
  • scaling and coloring options can be applied
CSS #
  • A CSS may be configured that resides elsewhere, e.g. at the webdesigners premises for convinient maintainance.
  • The CSS is scanned itself, to accomodate for import statements or fonts.

some of these features require access to the settings area of the shop

Request # #

<baseurl>/<type>.<postfix>?<parameter>
<baseurl>/api/<postfix>/<type>/<id>?<parameters>

baseurl Base URL for the given System. postfix px for a call to the fully distributed cache, py for calls to private images (need authentication before using the session)

type and parameters are described below.

Example# #

http://oekobox-online.de/v3/shop/schoenegge/t.px?bs.i=1040&bs.w=80&bs.h=80&bs.bg=ffffff

…shows a thumbnail for the system schoenegge of item 1040 at a max size of 80×80, with a white background. „px“ makes it served from a distributed high performance image cache.

http://oekobox-online.de/v3/shop/tagwerk/api/px/t/4487

..just bring the picture

Parameters# #

id the if of the object (e.g. the item id) parameters one or more of
bs.w: desired max width (will scale only if too big)
bs.h: desired max height
bs.bg: backgroud color if the other params require scaling
bs.fit: if 1, the ratio is not respected when scaling
bs.clear=1: deletes that item from cache, useful ONLY when developing.
bs.nocache=1: avoids caching for this call type defines the object or the object that has an image assigned

aabobox
titem thumbnail (or big one, should no thumb exist)
bbig item image (or first extra image, should a primary image not exist)
btbig one, or small one should not big exist
gitem group thumbnail
hitem group big
ssubgroup thumbnail
usubgroup big
rrubric small
vrubric big
e,e1,e2,e4transform ecoinform image sources
e3for the internal proxy (configured in settings)
ffile proxy (id=css will fetch a remote css as per settings, id=logo will fetch the configured logo, id=loading will fetch the loading placeholder gif)
asprimary Accociation Logo (small)
abprimary Accociation Logo (big)
pProducer image (small image)
b1..b9Provides additional images if they exists (see API.js.concepts.images)
xbig abogroup image
ysmall abogroup image
nbig Navigation image
msmall navigation image
nd(small) Navigation Level 2 Image
pproducer logo/icon
piproducer image big / image2
abassocialtion icon
dimage from datanature proxy
fservs special images or files: css, css16, loading, none, logo,
tbcontent article Item
ticontent article images
fsImages from the internal filestore
euEU Origin labels (pod, pgi, ts)
Updated on 3. Februar 2025

What are your Feelings

  • Happy
  • Normal
  • Sad
Share This Article :
  • Facebook
  • X
  • LinkedIn
  • Pinterest
Data Lists
Table of Contents
  • Images
  • CSS
  • Request #
  • Example#
  • Parameters#
  • Startseite
  • Blog
  • Kontakt
  • Deutsch
    • English
    • Français
    • Español
PCG Team Stolz präsentiert von WordPress