Pidoco. Dein Wireframing Tool.

Hilfe

Layer Resource

A Layer is a group of elements that can be shared among several pages.

List Layers

Method: GET
URI: /rabbit/api/prototypes/{id}/layers.json
Access: Read

Returns a JSON Array with the ids of all layers of this prototype.

CURL Example:
curl -v -H "Content-Type: application/json" 
  https://pidoco.com/rabbit/api/prototypes/359/layers.json?api_key=samplekey
> GET /rabbit/api/prototypes/359/layers.json?api_key=samplekey HTTP/1.1
> User-Agent: curl/7.19.6 (i386-apple-darwin10.4.0) libcurl/7.19.6 OpenSSL/0.9.8k zlib/1.2.3
> Host: pidoco.com
> Accept: */*
> Content-Type: application/json
> 
< HTTP/1.1 200 OK
< Server: Apache-Coyote/1.1
< Last-Modified: Tue, 14 Sep 2010 15:12:55 GMT
< Content-Type: application/json
< Transfer-Encoding: chunked
< Date: Thu, 23 Sep 2010 08:33:56 GMT
< 
["layer3186","layer8456","layer0001"]
			

Show Layer Metadata

Method: GET
URI: /rabbit/api/prototypes/{id}/layers/{id}.json
Access: Read

Returns a JSON Object with the metadata to the layer, e.g. its name.

CURL Example:
curl -v -H "Content-Type: application/json" 
  https://pidoco.com/rabbit/api/prototypes/359/layers/layer3186.json?api_key=samplekey
> GET /rabbit/api/prototypes/359/layers/layer3186.json?api_key=samplekey HTTP/1.1
> User-Agent: curl/7.19.6 (i386-apple-darwin10.4.0) libcurl/7.19.6 OpenSSL/0.9.8k zlib/1.2.3
> Host: pidoco.com
> Accept: */*
> Content-Type: application/json
> 
< HTTP/1.1 200 OK
< Server: Apache-Coyote/1.1
< Last-Modified: Tue, 14 Sep 2010 15:12:55 GMT
< Content-Type: application/json
< Transfer-Encoding: chunked
< Date: Thu, 23 Sep 2010 08:37:10 GMT
< 
{"id":"layer3186","name":"Sample Layer Name"}
			

Newsletter Anmeldung

Das neue Pidoco kommt im Herbst 2018. Abonnieren Sie jetzt unseren Newsletter um rechtzeitig informiert zu werden.

Keine Sorge, wir nutzen Ihre Email nur für den Versand relevanter News. Kein Spam. Versprochen.