Skip to content

Latest commit

 

History

History
174 lines (132 loc) · 2.74 KB

project_picture_details.md

File metadata and controls

174 lines (132 loc) · 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": 205866,
  "created_at": "2019-05-16T13:37:27+02:00",
  "updated_at": "2019-05-16T13:37:27+02:00",
  "description": null,
  "links": [
    {
      "rel": "image",
      "href": "https://betterplace-assets.betterplace.org/uploads/project/image/000/001/114/205866/image.png"
    },
    {
      "rel": "self",
      "href": "https://api.betterplace.org/de/api_v4/projects/1114/pictures/205866.json"
    },
    {
      "rel": "parent",
      "href": "https://api.betterplace.org/de/api_v4/projects/1114.json"
    }
  ]
}