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.
VereinsprogrammGET/program/{sektion}
Returns an array of Programs.
Example URI
GET https://app.maertplatz-clique.ch/v4/program/S
URI Parameters
- sektion
string
(required) Example: SS to see Stamm, A to see Alti, J to see Jungi
Response
200
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.
VerantstaltungGET/event/{id}
Example URI
GET https://app.maertplatz-clique.ch/v4/event/244
URI Parameters
- id
number
(required) Example: 244unique ID of the event
Response
200
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.
RouteplanGET/baizeplan/{sektion}
Example URI
GET https://app.maertplatz-clique.ch/v4/baizeplan/S
URI Parameters
- sektion
string
(required) Example: SS to see Stamm, A to see Alti, J to see Jungi
Response
200
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.
RepertoireGET/rep/{sektion}
Example URI
GET https://app.maertplatz-clique.ch/v4/rep/S
URI Parameters
- sektion
string
(required) Example: SS to see Stamm, A to see Alti, J to see Jungi
Response
200
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
MeldungenGET/msgpub
Example URI
GET https://app.maertplatz-clique.ch/v4/msgpub
Response
200
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
}
]