Back to top

MCB API

MCB API is a simple service with a RESTful API allowing consumers to view data around the organisation. It’s current API version is v4. The data format is strictly JSON, no XML support. More information on https://app.maertplatz-clique.ch/

MCB public information

Public resources available as JSON data. This public part of the API covers only GET operations.

Vereinsprogramm

Get the calendar per section.

Vereinsprogramm
GET/program/{sektion}

Returns an array of Programs.

Example URI

GET https://app.maertplatz-clique.ch/v4/program/S
URI Parameters
HideShow
sektion
string (required) Example: S

S to see Stamm, A to see Alti, J to see Jungi

Response  200
HideShow
Headers
Content-Type: application/json
Body
[
  {
    "id": 25,
    "name": "Fasnachts-Bummel",
    "eventdate": "2017-03-26T00:00",
    "eventenddate": "2017-03-26T00:00"
  }
]
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "array"
}

Veranstaltung

Shows the details of an event.

Verantstaltung
GET/event/{id}

Example URI

GET https://app.maertplatz-clique.ch/v4/event/244
URI Parameters
HideShow
id
number (required) Example: 244

unique ID of the event

Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "id": 9115,
  "name": "Offiziells 2018",
  "desc": "Offiziells 2018",
  "eventdate": "2018-01-11T00:00",
  "eventenddate": "2018-01-11T02:00",
  "contact": "maetz",
  "created_by": "CMS System Sync",
  "updated_at": "2017-02-11 03:30:22",
  "location": "Basel",
  "registration": 0,
  "reglink": null,
  "eventtype": "Clique Aaloss",
  "program": "Jooresprogram",
  "stammflag": 1,
  "altiflag": 1,
  "jungiflag": 1
}

Routenplan

Shows the agenda per day per section.

Routeplan
GET/baizeplan/{sektion}

Example URI

GET https://app.maertplatz-clique.ch/v4/baizeplan/S
URI Parameters
HideShow
sektion
string (required) Example: S

S to see Stamm, A to see Alti, J to see Jungi

Response  200
HideShow
Headers
Content-Type: application/json
Body
[
  {
    "id": 1,
    "day": 1,
    "order": 1,
    "breakfrom": "02:00",
    "breakto": "04:00",
    "description": "im Ramazotti",
    "gpslat": 47.5576,
    "gpslon": 7.5873,
    "bazeclub": "Stamm"
  },
  {
    "id": 2,
    "day": 1,
    "order": 2,
    "breakfrom": "04:00",
    "breakto": null,
    "description": "Morgestraich",
    "gpslat": null,
    "gpslon": null,
    "bazeclub": "Stamm"
  },
  {
    "id": 40,
    "day": 3,
    "order": 15,
    "breakfrom": "04:00",
    "breakto": null,
    "description": "Endstraich - Ramazotti",
    "gpslat": null,
    "gpslon": null,
    "bazeclub": "Stamm"
  }
]

Repertoire

Shows the “repertoire” list per section.

Repertoire
GET/rep/{sektion}

Example URI

GET https://app.maertplatz-clique.ch/v4/rep/S
URI Parameters
HideShow
sektion
string (required) Example: S

S to see Stamm, A to see Alti, J to see Jungi

Response  200
HideShow
Headers
Content-Type: application/json
Body
[
  {
    "id": 1,
    "name": "Arabi",
    "link": "https://www.youtube.com/watch?v=EhlcwWk9p8M"
  },
  {
    "id": 13,
    "name": "Baslermarsch",
    "link": null
  },
  {
    "id": 24,
    "name": "Whisky Soda",
    "link": "https://www.youtube.com/watch?v=HJeEK4syCC0"
  },
  {
    "id": 40,
    "name": "z Basel",
    "link": null
  }
]

Medlungen

All public messages - a list of recent messages

Meldungen
GET/msgpub

Example URI

GET https://app.maertplatz-clique.ch/v4/msgpub
Response  200
HideShow
Headers
Content-Type: application/json
Body
[
  {
    "id": 170,
    "msgtext": "Version 4.1 der MCB App verfügbar!",
    "msgdate": "2017-02-08T12:43",
    "msgactive": 1,
    "altiflag": 1,
    "jungiflag": 1,
    "stammflag": 1,
    "creator": "Martin",
    "group": 2,
    "media": null,
    "user": 1
  },
  {
    "id": 149,
    "msgtext": "Mir sin berait! Ladärne Ypfyffe morn ab de Fünfi Laiezorn.",
    "msgdate": "2016-02-13T14:47",
    "msgactive": 1,
    "altiflag": 1,
    "jungiflag": 1,
    "stammflag": 1,
    "creator": "Martin",
    "group": 2,
    "media": null,
    "user": 1
  },
  {
    "id": 2,
    "msgtext": "Willkommen bei der neuen Version unserer MCB App! Die App die schon seit Dezember 2013 erhältlich ist!",
    "msgdate": "2016-01-24T18:54",
    "msgactive": 1,
    "altiflag": 1,
    "jungiflag": 1,
    "stammflag": 1,
    "creator": "Martin",
    "group": 2,
    "media": null,
    "user": 1
  }
]

Version

Version of the API

Version
GET/versions

Example URI

GET https://app.maertplatz-clique.ch/v4/versions
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "version": "4.1.1",
  "url": "https://app.maertplatz-clique.ch/api-v4.html"
}

Generated by aglio on 11 Feb 2017