Returns an Event based on the supplied occation ID.

GET /api/occations/{occation_id}.{ext}?language={language} HTTP/1.1
Host: event.stockholmpride.org
Accept: application/json, text/json, application/atom+xml, application/rss+xml, application/rss+xml+wp, text/calendar, text/plain, text/html

Request Information

Path Parameters

Name Description
occation_id Occation ID for event to return
language ISO code for return language
ext

Body Parameters

None


Response Information

Resource Description

Event

Name Description
ID Event ID
Area The area (physical) where event is held
SubArea Optional sub area (physical or logical) for the event
Title Event title
Organizer Information about the organizer
SignInterpreted Flag for if the event is sign language interpreted
Highlighted Flag for if the event is highlighted (an event of special interest)
Cancelled Flag for if the event has been cancelled
Recurring Flag for if the event is a recurring event (has more than one occation)
Language The language in which the event is beeing held
Type The event type for categorization
Location Information about the physical location
Occation The current occation
Price Pricing information
Intro Short intro/information text
Description Longer description of the event
ImageUrl URL of an image representing the event
ExternalUrl External URL for more information about the event
AllOccations All occations of an event (an event might occur one or more times)
Updated Flag for if the event information has been updated within the last 36 hours
ChangeInfo Internal information about the last change (if supplied)
ChangeTimestamp Timestamp for when the event information was last updated

Response Formats

application/json (.json) text/json
{
  "id": 1,
  "area": {
    "id": 1,
    "name": "sample string 2",
    "fullName": "sample string 3",
    "color": "sample string 4",
    "location": "sample string 5",
    "address": "sample string 6",
    "info": {
      "en": "english string 7",
      "sv": "swedish string 7"
    },
    "externalUrl": "sample string 8",
    "eventCount": 1,
    "occationCount": 1,
    "subAreaEventCount": 1,
    "subAreaOccationCount": 1,
    "days": [
      {
        "date": "2019-11-21",
        "name": "torsdag 21 november",
        "opens": "00:00:00",
        "closes": "00:00:00",
        "ticketOpens": "00:00:00",
        "ticketCloses": "00:00:00",
        "priceInfo": "sample string 2",
        "occationCount": 3
      },
      {
        "date": "2019-11-21",
        "name": "torsdag 21 november",
        "opens": "00:00:00",
        "closes": "00:00:00",
        "ticketOpens": "00:00:00",
        "ticketCloses": "00:00:00",
        "priceInfo": "sample string 2",
        "occationCount": 3
      }
    ]
  },
  "subArea": {
    "id": 1,
    "name": "sample string 2",
    "fullName": "sample string 3",
    "color": "sample string 4",
    "location": "sample string 5",
    "address": "sample string 6",
    "info": {
      "en": "english string 7",
      "sv": "swedish string 7"
    },
    "externalUrl": "sample string 8",
    "eventCount": 1,
    "occationCount": 1,
    "days": [
      {
        "date": "2019-11-21",
        "name": "torsdag 21 november",
        "opens": "00:00:00",
        "closes": "00:00:00",
        "ticketOpens": "00:00:00",
        "ticketCloses": "00:00:00",
        "priceInfo": "sample string 2",
        "occationCount": 3
      },
      {
        "date": "2019-11-21",
        "name": "torsdag 21 november",
        "opens": "00:00:00",
        "closes": "00:00:00",
        "ticketOpens": "00:00:00",
        "ticketCloses": "00:00:00",
        "priceInfo": "sample string 2",
        "occationCount": 3
      }
    ]
  },
  "title": "sample string 2",
  "organizer": {
    "id": 1,
    "name": "sample string 2",
    "info": {
      "en": "english string 3",
      "sv": "swedish string 3"
    },
    "externalUrl": "sample string 4"
  },
  "signInterpreted": true,
  "highlighted": true,
  "cancelled": true,
  "recurring": true,
  "language": {
    "code": "sample string 1",
    "name": {
      "en": "english string 2",
      "sv": "swedish string 2"
    }
  },
  "type": {
    "id": 1,
    "name": {
      "en": "english string 2",
      "sv": "swedish string 2"
    },
    "color": "sample string 3"
  },
  "location": {
    "name": "sample string 1",
    "address": "sample string 2",
    "room": "sample string 3",
    "floor": "sample string 4",
    "accessibilityInfo": {
      "en": "english string 5",
      "sv": "swedish string 5"
    },
    "roomAccessibilityInfo": {
      "en": "english string 6",
      "sv": "swedish string 6"
    },
    "publicTransportStation": "sample string 7"
  },
  "occation": {
    "id": 1,
    "dayID": 2,
    "date": "2019-11-21",
    "startTime": "00:00:00",
    "endTime": "00:00:00",
    "start": "23:35",
    "timeSpan": "idag 23:35–fre 22 nov 23:35",
    "url": {
      "en": "http://example.se/en/5",
      "sv": "http://example.se/sv/5"
    }
  },
  "price": "sample string 6",
  "intro": {
    "en": "english string 7",
    "sv": "swedish string 7"
  },
  "description": {
    "en": "english string 8",
    "sv": "swedish string 8"
  },
  "imageUrl": "sample string 9",
  "externalUrl": "sample string 10",
  "allOccations": [
    {
      "id": 1,
      "dayID": 2,
      "date": "2019-11-21",
      "startTime": "00:00:00",
      "endTime": "00:00:00",
      "start": "23:35",
      "timeSpan": "idag 23:35–fre 22 nov 23:35",
      "url": {
        "en": "http://example.se/en/5",
        "sv": "http://example.se/sv/5"
      }
    },
    {
      "id": 1,
      "dayID": 2,
      "date": "2019-11-21",
      "startTime": "00:00:00",
      "endTime": "00:00:00",
      "start": "23:35",
      "timeSpan": "idag 23:35–fre 22 nov 23:35",
      "url": {
        "en": "http://example.se/en/5",
        "sv": "http://example.se/sv/5"
      }
    }
  ],
  "updated": true,
  "changeInfo": "sample string 11",
  "changeTimestamp": "2019-11-21T23:35:07.7673488+01:00"
}
application/atom+xml (.atom)
<feed xml:lang="sv" xmlns:pride="http://www.stockholmpride.org/ns/2.0" xmlns="http://www.w3.org/2005/Atom">
  <title type="text">Event Name</title>
  <subtitle type="text">Selected events from Stockholm Pride EM system</subtitle>
  <id>uuid:84fdb7e8-cdcb-4270-9f29-054a2c77961f;id=7</id>
  <updated>2019-11-21T23:35:07+01:00</updated>
  <entry>
    <id>http://example.se/sv/5</id>
    <title type="text">idag 23:35–fre 22 nov 23:35 sample string 2</title>
    <summary type="text">swedish string 7</summary>
    <published>2019-11-21T23:35:07+01:00</published>
    <updated>2019-11-21T22:35:07Z</updated>
    <link rel="alternate" href="http://example.se/sv/5" />
    <category term="swedish string 2 &gt; swedish string 2" />
    <pride:areaName>sample string 3</pride:areaName>
    <pride:eventCancelled>true</pride:eventCancelled>
    <pride:eventChangedInfo>sample string 11</pride:eventChangedInfo>
    <pride:eventHighlighted>true</pride:eventHighlighted>
    <pride:eventSignInterpreted>true</pride:eventSignInterpreted>
    <pride:eventTitle>sample string 2</pride:eventTitle>
    <pride:locationAccessability>swedish string 5</pride:locationAccessability>
    <pride:locationAddress>sample string 2</pride:locationAddress>
    <pride:locationName>sample string 1</pride:locationName>
    <pride:locationPublicTransportStation>sample string 7</pride:locationPublicTransportStation>
    <pride:organizerName>sample string 2</pride:organizerName>
    <pride:subAreaName>sample string 3</pride:subAreaName>
  </entry>
</feed>
application/rss+xml (.rss)
<rss version="2.0">
  <channel xmlns:pride="http://www.stockholmpride.org/ns/2.0" xmlns:atom="http://www.w3.org/2005/Atom">
    <title>Event Name</title>
    <description>Selected events from Stockholm Pride EM system</description>
    <language>sv</language>
    <lastBuildDate>Thu, 21 Nov 2019 23:35:07 +0100</lastBuildDate>
    <link>http://www.site.se/</link>
    <atom:link href="http://www.site.se" rel="self" type="application/rss+xml" />
    <item>
      <guid isPermaLink="true">http://example.se/sv/5</guid>
      <link>http://example.se/sv/5</link>
      <category>swedish string 2 &gt; swedish string 2</category>
      <title>idag 23:35–fre 22 nov 23:35 sample string 2</title>
      <description>swedish string 7</description>
      <pubDate>Thu, 21 Nov 2019 23:35:07 +0100</pubDate>
      <pride:areaName>sample string 3</pride:areaName>
      <pride:eventCancelled>true</pride:eventCancelled>
      <pride:eventChangedInfo>sample string 11</pride:eventChangedInfo>
      <pride:eventHighlighted>true</pride:eventHighlighted>
      <pride:eventSignInterpreted>true</pride:eventSignInterpreted>
      <pride:eventTitle>sample string 2</pride:eventTitle>
      <pride:locationAccessability>swedish string 5</pride:locationAccessability>
      <pride:locationAddress>sample string 2</pride:locationAddress>
      <pride:locationName>sample string 1</pride:locationName>
      <pride:locationPublicTransportStation>sample string 7</pride:locationPublicTransportStation>
      <pride:organizerName>sample string 2</pride:organizerName>
      <pride:subAreaName>sample string 3</pride:subAreaName>
    </item>
  </channel>
</rss>
application/rss+xml+wp (.rss-wp)
<rss version="2.0">
  <channel xmlns:pride="http://www.stockholmpride.org/ns/2.0" xmlns:atom="http://www.w3.org/2005/Atom">
    <title>Event Name</title>
    <description>Selected events from Stockholm Pride EM system</description>
    <language>sv</language>
    <lastBuildDate>Thu, 21 Nov 2019 23:35:07 +0100</lastBuildDate>
    <link>http://www.site.se/</link>
    <atom:link href="http://www.site.se" rel="self" type="application/rss+xml" />
    <item>
      <guid isPermaLink="true">http://example.se/sv/5</guid>
      <link>http://example.se/sv/5</link>
      <category>swedish string 2 &gt; swedish string 2</category>
      <title>idag 23:35–fre 22 nov 23:35 sample string 2</title>
      <description>swedish string 7</description>
      <pubDate>Sat, 26 Oct 2019 23:35:07 +0200</pubDate>
      <pride:areaName>sample string 3</pride:areaName>
      <pride:eventCancelled>true</pride:eventCancelled>
      <pride:eventChangedInfo>sample string 11</pride:eventChangedInfo>
      <pride:eventHighlighted>true</pride:eventHighlighted>
      <pride:eventSignInterpreted>true</pride:eventSignInterpreted>
      <pride:eventTitle>sample string 2</pride:eventTitle>
      <pride:locationAccessability>swedish string 5</pride:locationAccessability>
      <pride:locationAddress>sample string 2</pride:locationAddress>
      <pride:locationName>sample string 1</pride:locationName>
      <pride:locationPublicTransportStation>sample string 7</pride:locationPublicTransportStation>
      <pride:organizerName>sample string 2</pride:organizerName>
      <pride:subAreaName>sample string 3</pride:subAreaName>
    </item>
  </channel>
</rss>
text/calendar (.ics) text/plain; charset=utf-8 (.ics-text)
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//Stockholm Pride//Event Calendar//X-X-X//SV
NAME:Event Name
DESCRIPTION:Programpunkter under Event Name
X-WR-CALNAME:Event Name
X-WR-CALDESC:Programpunkter under Event Name
X-PUBLISHED-TTL:PT6H
BEGIN:VEVENT
UID:[email protected]
DTSTAMP:20191121T223507Z
DTSTART:20191121T223507Z
DTEND:20191122T223507Z
SUMMARY:sample string 2
DESCRIPTION:swedish string 7\n\nArrangör: sample string 2
LOCATION:sample string 1\, sample string 3\nsample string 2
CATEGORIES:swedish string 2,swedish string 2
URL:http://example.se/sv/5
END:VEVENT
END:VCALENDAR
text/plain; charset=utf-8 (.bbcode)
[b]00:00–00:00 [url=http://example.se/sv/5]sample string 2[/url][/b]
swedish string 7
swedish string 8
[i]Arrangör: sample string 2[/i]

text/html (.html-titles)
<div class="event-list">
  <div>23:35 <a href="http://example.se/sv/5" target="_blank">sample string 2</a></div>
</div>