Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
175 lines (132 sloc) 2.74 KB

Project Picture Details ⇄ List

GET https://api.betterplace.org/de/api_v4/projects/1114/pictures/286505.json

The details of a betterplace.org project picture. The details and list view show the same data.

Custom picture-sizes: Please read more!

For betterplace.org clients: If you request data for a project that is not part of the client projects, the API will return a 404 HTTP code.

URL Parameters

Parameter Example Required Description
project_id 1114 yes

Project id as an integer number ≥ 14.

id 286505 yes

Picture-id as an integer number ≥ 1.

Response Attributes

Root Attributes

Attribute Types Example Description
id number 1

An integer number ≥ 1

created_at string "1994-11-05T13:15:30Z"

DateTime (ISO8601 with Timezone)

updated_at string "1994-11-05T13:15:30Z"

DateTime (ISO8601 with Timezone)

description string Yada…

Description of the picture

Response Links

Linkname Description

image

Link to the original image as uploaded by the user

self

The single resource for this picture

parent

The parent object of this picture.

Response Example

{
  "id": 103307,
  "created_at": "2015-03-23T14:11:41+01:00",
  "updated_at": "2017-07-20T13:05:53+02:00",
  "description": null,
  "links": [
    {
      "rel": "image",
      "href": "https://betterplace-assets.betterplace.org/uploads/project/image/000/001/114/103307/image.jpg"
    },
    {
      "rel": "self",
      "href": "https://api.betterplace.org/de/api_v4/projects/1114/pictures/103307.json"
    },
    {
      "rel": "parent",
      "href": "https://api.betterplace.org/de/api_v4/projects/1114.json"
    }
  ]
}