Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Spreadshirt API makes most of the features of our platform available via programmabl REST services. Spreadshirt API is one part of our strategy to provide Customized Apparel as a Service (CAaaS) that I described in the General space. Spreadshirt API is right now available in version 1 (v1).

Image Removed

API Features

Today, API v1 provides the following features:

  • Retrieve images for designs, products, product types, print types, etc.,
  • Retrieve data for designs, products, articles, product types, print types, etc.,
  • Create baskets and forward to Spreadshirt HTML checkout and
  • Store and retrieve widget configurations.

For the next releases, we plan to provide the following features:

  • Design upload and product creation,
  • Design and article search for marketplace and
  • Better basket integration.

API Technology

API v1 is based on the following technology stack:

  • REST: API v1 is provided as a pure REST (Representational State Transfer) API via HTTP, which means that we use for example HTTP methods, HTTP status codes and URL structures correctly to allow you to retrieve, create, update and delete data.
  • XML, XSD: For exchanging data the API uses XML as data exchanged format. The allowed lists and entities are described using XSD (XML Schema).
  • WADL: Our API is described using WADL (Web Application Description Language). Using WADL we describe which URLs the API provides, which HTTP methods can be used per URL, which HTTP status codes can be expected and what the input and output payload is. WADL can be used like WSDL to generate client code for all kinds of programming languages, such as Java.
  • SVG: We make use of SVG (Scalable Vector Graphics) to describe product types and products, e.g. for describing print areas or design positioning and transformations.

API Parts

API v1 consists right now of three parts as you can see in the picture above:

  • Data API: Our data API allows you to retrieve, create, update and delete all kind of Spreadshirt shop and user data, e.g retrieve designs, articles, products or create and retrieve baskets. The data API is available on http://api.spreadshirt.net/api/v1/metaData/api.html.
  • Image API: Our image API allows you to retrieve all kinds of images and create, update and delete specific ones, e.g. retrieve design, product or product type images. The image API is available on http://image.spreadshirt.net/image-server/v1/metaData/image-service.html.
  • Configuration Repository: Our configuration repository allows you to store and retrieve all kinds of configurations for social network widgets, such as myspace or facebook.

Existing APIs

API v1 will replace on the long term all APIs that exist right now, be it API v0 (which is used by our T-Shirt-Designer), our old SOAP API (which is used for a couple of integrations and widgets) or partner specific APIs. It should also used by all plugin writers, system integrators and widget developers in the future, that use legacy APIs or RSS feeds in their applications right now.This is the home of the 3. RIA space.

To help you on your way, we've inserted some of our favourite macros on this home page. As you start creating pages, adding news items and commenting you'll see the macros below fill up with all the activity in your space.

Section
Column
width60%
Recently Updated
Column
width5%

Column
width35%

Navigate space

Page Tree Search
Page Tree