PhotonEmitter is a REST Web Service for Photos
Photos of the PhotonPainter application landscape. A photo belongs to an author.
Retrieve photo entries metadata. This method is also used to retrieve a single image *file*. For this to work, only one image must be requested.
parameter | value | description |
---|---|---|
apiKey |
The API key used to authenticate against the web service. |
|
id |
The photo's ID. Used for unique identification. |
|
tags |
A comma-separated list of terms that the photo is tagged with. The photo must match all of the supplied tags. |
|
geoFrame |
A rectangular frame of geo coordinates which the image must match. Must have the form of [[minLatitude],[minLongitude],[maxLatitude],[maxLongitude]] (without brackets). |
|
sortBy |
One of:
|
An order criterium for the returned list. |
searchTerm |
A search term for the photo. Searches title and description. |
|
offset |
An offset when requesting only a subset of the selected photos. Similar to SQL "LIMIT" use. |
|
limit |
A limit for requesting only a subset of the selected photos. Similar to SQL "LIMIT" use. |
|
format |
One of:
|
|
available response representations:
Uploads a new photo to the web service. Only the binary file will be transmitted. In return, an ID is provided, with which the photo's metadata can be added. Without this metadata, the photo is not fully committed.
parameter | value | description |
---|---|---|
name |
The (file)name of the to be submitted photo. |
|
apiKey |
The API key used to authenticate against the web service. |
acceptable request representations:
available response representations:
Updates an existing photo with metadata. Note that all parameters are optional - only the provided ones will be updated.
parameter | value | description |
---|---|---|
id |
The photo's ID. |
|
apiKey |
The API key used to authenticate against the web service. |
acceptable request representations:
available response representations:
Users of the PhotonPainter application landscape.
Retrieve a single user account. Can either be used with ID to retrieve a unique user or as a combination of username/password, to validate some end user's credentials.
parameter | value | description |
---|---|---|
apiKey |
The API key used to authenticate against the web service. |
|
id |
The user's ID. Used for unique identification. |
|
username |
The user's login name. Used to validate an end user's credentials. |
|
password |
The user's password. Used to validate an end user's credentials. |
|
format |
One of:
|
available response representations:
Create a new user account.
parameter | value | description |
---|---|---|
apiKey |
The API key used to authenticate against the web service. |
acceptable request representations:
available response representations:
Comments of the PhotonPainter application landscape. A comment belongs to a photo and an author.
Retrieve a list of comments.
parameter | value | description |
---|---|---|
apiKey |
The API key used to authenticate against the web service. |
|
id |
The comment's ID. Used for unique identification. |
|
photoId |
The ID of a photo for which to retrieve the list of comments. |
|
format |
One of:
|
available response representations:
Create a new comment.
parameter | value | description |
---|---|---|
apiKey |
The API key used to authenticate against the web service. |
acceptable request representations:
available response representations:
Ratings of the PhotonPainter application landscape. A rating belongs to a photo and a submitter.
Retrieve a list of ratings.
parameter | value | description |
---|---|---|
apiKey |
The API key used to authenticate against the web service. |
|
id |
The rating's ID. Used for unique identification. |
|
photoId |
The ID of a photo for which to retrieve the list of ratings. |
|
format |
One of:
|
available response representations:
Create a new rating.
parameter | value | description |
---|---|---|
apiKey |
The API key used to authenticate against the web service. |
acceptable request representations:
available response representations:
Update photos via call of PhotonCollector (currently only as dummy, returns random status).
Start update.
available response representations:
Source: photonpainter.xsd
<element name="photos" type="pp:Photos"> <annotation> <documentation>Contains a list of photos of PhotonPainter.</documentation> </annotation> </element>
The photo as binary file. Supported formats are JPG and PNG.
the URI for the newly created photo.
Source: photonpainter.xsd
<element name="photo" type="pp:Photo"> <annotation> <documentation>Represents one single photo. A photo has some metadata like URI, width, height and creation date, but also contains tags and rating information.</documentation> </annotation> </element>
Source: photonpainter.xsd
<element name="photo" type="pp:Photo"> <annotation> <documentation>Represents one single photo. A photo has some metadata like URI, width, height and creation date, but also contains tags and rating information.</documentation> </annotation> </element>
Source: photonpainter.xsd
<element name="user" type="pp:User"> <annotation> <documentation>Describes a single user of PhotonPainter.</documentation> </annotation> </element>
Source: photonpainter.xsd
<element name="user" type="pp:User"> <annotation> <documentation>Describes a single user of PhotonPainter.</documentation> </annotation> </element>
Source: photonpainter.xsd
<element name="user" type="pp:User"> <annotation> <documentation>Describes a single user of PhotonPainter.</documentation> </annotation> </element>
Source: photonpainter.xsd
<element name="comments" type="pp:Comments"> <annotation> <documentation>Contains a list of comments (typically for one photo).</documentation> </annotation> </element>
Source: photonpainter.xsd
<element name="comment" type="pp:Comment"> <annotation> <documentation>Describes a single comment for a photo.</documentation> </annotation> </element>
Source: photonpainter.xsd
<element name="comment" type="pp:Comment"> <annotation> <documentation>Describes a single comment for a photo.</documentation> </annotation> </element>
Source: photonpainter.xsd
<element name="ratings" type="pp:Ratings"> <annotation> <documentation>Contains a list of ratings (typically for one) photo.</documentation> </annotation> </element>
Source: photonpainter.xsd
<element name="rating" type="pp:Rating"> <annotation> <documentation>Describes a single user rating for a photo.</documentation> </annotation> </element>
Source: photonpainter.xsd
<element name="rating" type="pp:Rating"> <annotation> <documentation>Describes a single user rating for a photo.</documentation> </annotation> </element>