Actu API Doc
Add yourself or your unit/group as a member of the group actu-api-rest-consumers (https://groups.epfl.ch/cgi-bin/groups/viewgroup?groupid=S23511) in order to be notified of changes in the API.
# Install the command line client
$ pip install coreapi-cli
categories
list
List all Category objects.
Query Parameters
The following parameters should be included as part of a URL query string.
Parameter | Description |
---|---|
limit | Number of results to return per page. |
offset | The initial index from which to return the results. |
fr_label | |
en_label | |
de_label | |
search | A search term. |
# Load the schema document
$ coreapi get http://actu.epfl.ch/api-docs/
# Interact with the API endpoint
$ coreapi action categories list -p limit=... -p offset=... -p fr_label=... -p en_label=... -p de_label=... -p search=...
read
Return the details about the given Category id.
Path Parameters
The following parameters should be included in the URL path.
Parameter | Description |
---|---|
id required | A unique integer value identifying this category. |
Query Parameters
The following parameters should be included as part of a URL query string.
Parameter | Description |
---|---|
fr_label | |
en_label | |
de_label | |
search | A search term. |
# Load the schema document
$ coreapi get http://actu.epfl.ch/api-docs/
# Interact with the API endpoint
$ coreapi action categories read -p id=... -p fr_label=... -p en_label=... -p de_label=... -p search=...
channels
list
List all Channel objects.
Query Parameters
The following parameters should be included as part of a URL query string.
Parameter | Description |
---|---|
limit | Number of results to return per page. |
offset | The initial index from which to return the results. |
name | |
fr_description | |
en_description | |
de_description | |
is_active | |
search | A search term. |
# Load the schema document
$ coreapi get http://actu.epfl.ch/api-docs/
# Interact with the API endpoint
$ coreapi action channels list -p limit=... -p offset=... -p name=... -p fr_description=... -p en_description=... -p de_description=... -p is_active=... -p search=...
read
Return the details about the given Channel id.
Path Parameters
The following parameters should be included in the URL path.
Parameter | Description |
---|---|
id required |
Query Parameters
The following parameters should be included as part of a URL query string.
Parameter | Description |
---|---|
name | |
fr_description | |
en_description | |
de_description | |
is_active | |
search | A search term. |
# Load the schema document
$ coreapi get http://actu.epfl.ch/api-docs/
# Interact with the API endpoint
$ coreapi action channels read -p id=... -p name=... -p fr_description=... -p en_description=... -p de_description=... -p is_active=... -p search=...
news
Path Parameters
The following parameters should be included in the URL path.
Parameter | Description |
---|---|
id required |
# Load the schema document
$ coreapi get http://actu.epfl.ch/api-docs/
# Interact with the API endpoint
$ coreapi action channels news -p id=...
projects
Path Parameters
The following parameters should be included in the URL path.
Parameter | Description |
---|---|
id required |
# Load the schema document
$ coreapi get http://actu.epfl.ch/api-docs/
# Interact with the API endpoint
$ coreapi action channels projects -p id=...
faculties
list
List all Faculty objects.
Query Parameters
The following parameters should be included as part of a URL query string.
Parameter | Description |
---|---|
limit | Number of results to return per page. |
offset | The initial index from which to return the results. |
fr_label | |
en_label | |
de_label | |
search | A search term. |
# Load the schema document
$ coreapi get http://actu.epfl.ch/api-docs/
# Interact with the API endpoint
$ coreapi action faculties list -p limit=... -p offset=... -p fr_label=... -p en_label=... -p de_label=... -p search=...
read
Return the details about the given Faculty id.
Path Parameters
The following parameters should be included in the URL path.
Parameter | Description |
---|---|
id required | A unique integer value identifying this Faculty. |
Query Parameters
The following parameters should be included as part of a URL query string.
Parameter | Description |
---|---|
fr_label | |
en_label | |
de_label | |
search | A search term. |
# Load the schema document
$ coreapi get http://actu.epfl.ch/api-docs/
# Interact with the API endpoint
$ coreapi action faculties read -p id=... -p fr_label=... -p en_label=... -p de_label=... -p search=...
news
list
List all News objects.
Query Parameters
The following parameters should be included as part of a URL query string.
Parameter | Description |
---|---|
limit | Number of results to return per page. |
offset | The initial index from which to return the results. |
title | Filters the news containing the given text in their title. Case insensitive. |
subtitle | Filters the news containing the given text in their subtitle. Case insensitive. |
text | Filters the news containing the given text in their text. Case insensitive. |
channel | Integer: Channel ID. Return only the news in the given channel. |
category | Integer: Category ID. Return only the news linked to the given category. |
themes | Integer: Theme ID. Return only the news linked to the given theme. |
publics | Integer: Public ID. Return only the news linked to the given public. |
faculties | Integer: Faculty ID. Return only the news linked to the given faculty. |
projects | Integer: Project ID. Return only the news linked to the given project. |
search | A search term. |
lang | Prefered language for the news |
# Load the schema document
$ coreapi get http://actu.epfl.ch/api-docs/
# Interact with the API endpoint
$ coreapi action news list -p limit=... -p offset=... -p title=... -p subtitle=... -p text=... -p channel=... -p category=... -p themes=... -p publics=... -p faculties=... -p projects=... -p search=... -p lang=...
read
Return the details about the given News id.
Path Parameters
The following parameters should be included in the URL path.
Parameter | Description |
---|---|
news__pk required |
Query Parameters
The following parameters should be included as part of a URL query string.
Parameter | Description |
---|---|
title | Filters the news containing the given text in their title. Case insensitive. |
subtitle | Filters the news containing the given text in their subtitle. Case insensitive. |
text | Filters the news containing the given text in their text. Case insensitive. |
channel | Integer: Channel ID. Return only the news in the given channel. |
category | Integer: Category ID. Return only the news linked to the given category. |
themes | Integer: Theme ID. Return only the news linked to the given theme. |
publics | Integer: Public ID. Return only the news linked to the given public. |
faculties | Integer: Faculty ID. Return only the news linked to the given faculty. |
projects | Integer: Project ID. Return only the news linked to the given project. |
search | A search term. |
lang | Prefered language for the news |
# Load the schema document
$ coreapi get http://actu.epfl.ch/api-docs/
# Interact with the API endpoint
$ coreapi action news read -p news__pk=... -p title=... -p subtitle=... -p text=... -p channel=... -p category=... -p themes=... -p publics=... -p faculties=... -p projects=... -p search=... -p lang=...
projects
list
List all Project objects.
Query Parameters
The following parameters should be included as part of a URL query string.
Parameter | Description |
---|---|
limit | Number of results to return per page. |
offset | The initial index from which to return the results. |
fr_label | |
en_label | |
de_label | |
search | A search term. |
# Load the schema document
$ coreapi get http://actu.epfl.ch/api-docs/
# Interact with the API endpoint
$ coreapi action projects list -p limit=... -p offset=... -p fr_label=... -p en_label=... -p de_label=... -p search=...
read
Return the details about the given Project id.
Path Parameters
The following parameters should be included in the URL path.
Parameter | Description |
---|---|
id required | A unique integer value identifying this project. |
Query Parameters
The following parameters should be included as part of a URL query string.
Parameter | Description |
---|---|
fr_label | |
en_label | |
de_label | |
search | A search term. |
# Load the schema document
$ coreapi get http://actu.epfl.ch/api-docs/
# Interact with the API endpoint
$ coreapi action projects read -p id=... -p fr_label=... -p en_label=... -p de_label=... -p search=...
publics
list
List all Public objects.
Query Parameters
The following parameters should be included as part of a URL query string.
Parameter | Description |
---|---|
limit | Number of results to return per page. |
offset | The initial index from which to return the results. |
fr_label | |
en_label | |
de_label | |
search | A search term. |
# Load the schema document
$ coreapi get http://actu.epfl.ch/api-docs/
# Interact with the API endpoint
$ coreapi action publics list -p limit=... -p offset=... -p fr_label=... -p en_label=... -p de_label=... -p search=...
read
Return the details about the given Public id.
Path Parameters
The following parameters should be included in the URL path.
Parameter | Description |
---|---|
id required | A unique integer value identifying this public. |
Query Parameters
The following parameters should be included as part of a URL query string.
Parameter | Description |
---|---|
fr_label | |
en_label | |
de_label | |
search | A search term. |
# Load the schema document
$ coreapi get http://actu.epfl.ch/api-docs/
# Interact with the API endpoint
$ coreapi action publics read -p id=... -p fr_label=... -p en_label=... -p de_label=... -p search=...
themes
list
List all Theme objects.
Query Parameters
The following parameters should be included as part of a URL query string.
Parameter | Description |
---|---|
limit | Number of results to return per page. |
offset | The initial index from which to return the results. |
fr_label | |
en_label | |
de_label | |
search | A search term. |
# Load the schema document
$ coreapi get http://actu.epfl.ch/api-docs/
# Interact with the API endpoint
$ coreapi action themes list -p limit=... -p offset=... -p fr_label=... -p en_label=... -p de_label=... -p search=...
read
Return the details about the given Theme id.
Path Parameters
The following parameters should be included in the URL path.
Parameter | Description |
---|---|
id required | A unique integer value identifying this theme. |
Query Parameters
The following parameters should be included as part of a URL query string.
Parameter | Description |
---|---|
fr_label | |
en_label | |
de_label | |
search | A search term. |
# Load the schema document
$ coreapi get http://actu.epfl.ch/api-docs/
# Interact with the API endpoint
$ coreapi action themes read -p id=... -p fr_label=... -p en_label=... -p de_label=... -p search=...