-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #203 from ox-it/events-dashboard-199
Events dashboard 199
- Loading branch information
Showing
12 changed files
with
205 additions
and
47 deletions.
There are no files selected for viewing
6 changes: 3 additions & 3 deletions
6
...urce/http_api/endpoints/events_search.rst → ...tp_api/endpoints/Search/events_search.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
************** | ||
Retrieve event | ||
************** | ||
|
||
Endpoint to retrieve a specific event by id | ||
|
||
All the responses conform to the `HAL specification <http://stateless.co/hal_specification.html>`_. | ||
|
||
.. http:get:: /events/(string:id) | ||
Retrieve event by ID | ||
|
||
**Example request**: | ||
|
||
.. sourcecode:: http | ||
|
||
GET /api/events/example-event-id | ||
Host: talks.ox.ac.uk | ||
Accept: application/json | ||
|
||
**Example response**: | ||
|
||
.. sourcecode:: xml | ||
|
||
<root> | ||
<slug>complete-regeneration-of-skin</slug> | ||
<url>/talks/id/complete-regeneration-of-skin/</url> | ||
<title>Complete Regeneration of Skin</title> | ||
<start>2015-01-30T23:00:00Z</start> | ||
<end>2015-01-31T00:00:00Z</end> | ||
<description>Skin</description> | ||
<formatted_date>30 January 2015, 23:00</formatted_date> | ||
<formatted_time>23:00</formatted_time> | ||
<speakers> | ||
<list-item> | ||
<id>2</id> | ||
<name>Professor Kazuo Kishi</name> | ||
<bio> | ||
Professor of Department of Reconstructive & Plastic Surgery, Keio University, Tokyo | ||
</bio> | ||
<title> | ||
Professor Kazuo Kishi, Professor of Department of Reconstructive & Plastic Surgery, Keio University, Tokyo | ||
</title> | ||
</list-item> | ||
</speakers> | ||
<organisers/> | ||
<hosts/> | ||
<happening_today>False</happening_today> | ||
<audience>oxonly</audience> | ||
|
||
:param id: The unique slug identifier for the talk | ||
:type id: string | ||
|
||
:statuscode 200: Talk found | ||
:statuscode 404: Talk not found | ||
:statuscode 503: Service not available |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
*************** | ||
Retrieve Series | ||
*************** | ||
|
||
.. http:get:: /series/ | ||
Retrieve series by ID, including all talks | ||
|
||
**Example request**: | ||
|
||
.. sourcecode:: http | ||
|
||
GET /api/series/series-id | ||
Host: talks.ox.ac.uk | ||
Accept: application/json | ||
|
||
**Example response** | ||
|
||
.. sourcecode:: xml | ||
<root> | ||
<id>1</id> | ||
<title>A conference</title> | ||
<description>A conference featuring a diverse array of groups</description> | ||
<department_organiser/> | ||
<events> | ||
<list-item> | ||
<slug> | ||
deformation-and-melts-litosphere-astenosphere-boundary | ||
</slug> | ||
<url> | ||
/talks/id/deformation-and-melts-litosphere-astenosphere-boundary/ | ||
</url> | ||
<title> | ||
Feedbacks between deformation and melts in the lithosphere-asthenosphere boundary | ||
</title> | ||
<start>2014-12-10T12:00:00Z</start> | ||
<end>2014-12-10T14:00:00Z</end> | ||
<description>Geo sciences</description> | ||
<formatted_date>10 December 2014, 12:00</formatted_date> | ||
<formatted_time>12:00</formatted_time> | ||
<speakers> | ||
<list-item> | ||
<id>3</id> | ||
<name>Dr Andrea Tommasi</name> | ||
<bio>Geosciences Montpellier</bio> | ||
<title>Dr Andrea Tommasi, Geosciences Montpellier</title> | ||
</list-item> | ||
</speakers> | ||
<organisers/> | ||
<hosts/> | ||
<happening_today>False</happening_today> | ||
<audience>oxonly</audience> | ||
<api_location>...</api_location> | ||
<api_organisation>...</api_organisation> | ||
<api_topics>...</api_topics> | ||
<class_name>Event</class_name> | ||
</list-item> | ||
</events> | ||
</root> | ||
|
||
:param id: The unique slug identifier for the series | ||
:type id: string | ||
|
||
:statuscode 200: Series found | ||
:statuscode 404: Series not found | ||
:statuscode 503: Service not available |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/*These styles are used in the faceted navigation part of the dashboard pages*/ | ||
.filter-selected { | ||
border-color: #b1cbe3; | ||
border-style: solid; | ||
border-width: 1px; | ||
border-radius: 5px; | ||
} | ||
|
||
span.filter-active { | ||
display: none; | ||
} | ||
|
||
.filter-selected>span { | ||
display: inline; | ||
float: right; | ||
} | ||
|
||
.nav>li>a.filter-absent { | ||
display: none; | ||
} | ||
|
||
.nav>li>a.filter-exists { | ||
font-size: smaller; | ||
font-style: italic; | ||
padding: 10px 0px 20px 30px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters