Public Api: Dokumentation: Unterschied zwischen den Versionen
| Zeile 41: | Zeile 41: | ||
= API = |
= API = |
||
| + | |||
| + | == Assets / Dateianhänge == |
||
| + | |||
| + | === Basis URL === |
||
| + | <code><nowiki>https://copilot-office.de/$KUNDE/public/api/assets</nowiki></code> |
||
| + | |||
| + | === By ID === |
||
| + | <code><nowiki>https://copilot-office.de/$KUNDE/public/api/assets/{ASSET_ID}</nowiki></code> |
||
| + | |||
| + | === Download === |
||
| + | <code><nowiki>https://copilot-office.de/$KUNDE/public/api/assets/{ASSET_ID}/download</nowiki></code> |
||
== Events == |
== Events == |
||
Version vom 20. Juni 2019, 10:47 Uhr
Basics
URL
Die API ist unter https://copilot-office.de/$KUNDE/public/api zu erreichen.
Content-Type
Sämtliche Daten werden im JSON Format ausgegeben.
Datentypen
string
Strings werden als Strings interpretiert. Beispiel: ?channel=A.
boolean
Es werden die Strings true und false unterstützt. Beispiel: ?highlight=false.
integer
Beispiel: ?page.page=2&page.size=30.
localdate
Datumsangaben erfolgen im ISO 8601 Format. Beispiel: ?from=2019-06-13.
localtime
Zeitangaben erfolgen im ISO 8601 Format. Beispiel: 23:59:59.
Arrays
Bei der Verwendung von Arrays kann der Query Parameter mehrfach angegeben werden. Beispiel: ?channel=A&channel=B.
Pagination
Pagination funktioniert bei allen Endpunkten mit den Query Parametern page.page und page.size. Beispiel: https://copilot-office.de/$KUNDE/public/api/artists?page.page=2&page.size=30
Response
{
"content": [ ELEMENT1, ELEMENT2, ELEMENT3, ... ],
"totalElements":9386,
"totalPages":313
}
Channel
Bei der Verwendung von mehreren Webseiten können sog. Channels verwendet werden, um z.B. Künstler und Events auf mehrere Webseiten verteilt anzuzeigen.
API
Assets / Dateianhänge
Basis URL
https://copilot-office.de/$KUNDE/public/api/assets
By ID
https://copilot-office.de/$KUNDE/public/api/assets/{ASSET_ID}
Download
https://copilot-office.de/$KUNDE/public/api/assets/{ASSET_ID}/download
Events
Basis URL
https://copilot-office.de/$KUNDE/public/api/events
Liste
https://copilot-office.de/$KUNDE/public/api/events/
| Parameter | Typ | Optional | Default | Beschreibung |
|---|---|---|---|---|
| page.page | integer | ja | 0 | Seitennummer |
| page.size | integer | ja | 30 | Seitengröße |
| from | localdate | ja | Eventdatum von | |
| to | localdate | ja | Eventdatum bis | |
| channel | string[] | ja | Channel | |
| highlight | boolean | ja | Highlight |
By ID
https://copilot-office.de/$KUNDE/public/api/events/{EVENT_ID}
Response Object
{
id: string
title: Map<string, string>
subtitle: Map<string, string>
state: 'CONFIRMED' | 'CANCELLED'
type: 'CLOSED' | 'RADIO' | 'TV' | 'STREAM'
broadcastType: 'LIVE' | 'RECORDING'
broadcastStation: string
facebook: string
youtube: string
genres: any[]
description: string
hearingAssistance: boolean
highlight: boolean
dateOfEvent: localdate
entrance: localtime
start: localtime
cast: any[]
venue: any
tickets: any
tour: any
remark: string
publication: any
}
Künstler
Basis URL
https://copilot-office.de/$KUNDE/public/api/artists
Liste
https://copilot-office.de/$KUNDE/public/api/artists/search
| Parameter | Typ | Optional | Default | Beschreibung |
|---|---|---|---|---|
| page.page | integer | ja | 0 | Seitennummer |
| page.size | integer | ja | 30 | Seitengröße |
| channel | string[] | ja | Channel |
By ID
https://copilot-office.de/$KUNDE/public/api/artists/{ARTIST_ID}
Response Object
{
id: string
stageName: string
web: string
facebook: string
myspace: string
youtube: string
twitter: string
instagram: string
snapchat: string
shortBio: string
longBio: string
assets: any[]
}
Events
https://copilot-office.de/$KUNDE/public/api/artists/{ARTIST_ID}/events
| Parameter | Typ | Optional | Default | Beschreibung |
|---|---|---|---|---|
| page.page | integer | ja | 0 | Seitennummer |
| page.size | integer | ja | 30 | Seitengröße |
| channel | string[] | ja | Channel |
Tour
Basis URL
https://copilot-office.de/$KUNDE/public/api/tours
Liste
https://copilot-office.de/$KUNDE/public/api/tours
| Parameter | Typ | Optional | Default | Beschreibung |
|---|---|---|---|---|
| page.page | integer | ja | 0 | Seitennummer |
| page.size | integer | ja | 30 | Seitengröße |
| channel | string[] | ja | Channel |
Response Object
{
id: string
title: string
description: string
assets: any[]
}
Venue
Basis URL
https://copilot-office.de/$KUNDE/public/api/venues
Liste
https://copilot-office.de/$KUNDE/public/api/venues
| Parameter | Typ | Optional | Default | Beschreibung |
|---|---|---|---|---|
| page.page | integer | ja | 0 | Seitennummer |
| page.size | integer | ja | 30 | Seitengröße |
| channel | string[] | ja | Channel |
By ID
https://copilot-office.de/$KUNDE/public/api/venues/{VENUE_ID}
Response Object
{
id: string
title: string
description: string
web: string
address: any
rooms: any[]
assets: any[]
}