Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
172 lines (140 sloc) 2.85 KB

Project Categories List

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

A list of betterplace.org project categories. Results are contained in a data attribute.

URL Parameters

Parameter Example Required Description
project_id 1114 yes

Project id as an integer number ≥ 14.

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)

name string The category

Name to be displayed for this category

slug string category

Slug for this category

Response Links

Linkname Description

platform

Permalink to betterplace.org discover category

Response Example

{
  "total_entries": 3,
  "offset": 0,
  "total_pages": 1,
  "current_page": 1,
  "per_page": 3,
  "data": [
    {
      "id": 3,
      "created_at": "2016-12-13T16:18:14+01:00",
      "updated_at": "2018-12-03T17:26:13+01:00",
      "name": "Bildung",
      "slug": "bildung",
      "links": [
        {
          "rel": "platform",
          "href": "https://www.betterplace.org/de/discover-projects/3-bildung"
        }
      ]
    },
    {
      "id": 15,
      "created_at": "2016-12-13T17:07:22+01:00",
      "updated_at": "2018-03-02T12:21:51+01:00",
      "name": "Sport",
      "slug": "sport",
      "links": [
        {
          "rel": "platform",
          "href": "https://www.betterplace.org/de/discover-projects/15-sport"
        }
      ]
    },
    {
      "id": 2,
      "created_at": "2016-12-13T16:17:58+01:00",
      "updated_at": "2019-08-23T15:43:38+02:00",
      "name": "Kinder und Jugend",
      "slug": "kinder",
      "links": [
        {
          "rel": "platform",
          "href": "https://www.betterplace.org/de/discover-projects/2-kinder"
        }
      ]
    }
  ]
}
You can’t perform that action at this time.