Pelle API v10 » Historique » Version 12
« Précédent -
Version 12/45
(diff) -
Suivant » -
Version actuelle
Nicolas BERTRAND, 08/09/2016 15:13
Pelle API v10¶
API Base URL¶
https://tuco.tdcpb.org/pelle/v1.0
Authentication¶
HTTP requests to the REST API are protected with HTTP Basic authentication
Example:
curl -u <username>:<pass> -H "Content-Type: application/json" -X GET https://tuco.tdcpb.org/pelle/v1.0/exhibitors
Exhibitors Resources¶
Exhibitor Properties¶
NAME | DESCRIPTION |
---|---|
cncid | Unique exhibitor authorization ID given by CNC |
id | Unique ID given by tuco (internal usage) |
name | Theater name |
address | Exhibitor address |
city | Exhibitor city |
contact | Person to contact |
List all exhibitors¶
GET exhibitors
Output sample:
{ exhibitors:[ { 'cncid': '123456', 'name': 'UN CINEMA' 'city' : LA VILLE }, .... ] }
Retrieve a exhibitor¶
GET exhibitors/<cncid>
Output sample:
{ exhibitors: { 'cncid': '123456', 'name': 'UN CINEMA' 'city' : LA VILLE }, }
Retrieve a exhibitor current downloads¶
GET exhibitors/<cncid>/current_downloads
Output sample:
Distributor Resources¶
Distributor Properties¶
List all distributors¶
GET distributors
Output sample:
Retrieve a distributor¶
GET distributors/<cncid>
Output sample:
List distributor catalog
GET distributors/<cncid>/movies
Output sample:
Distribute a DCP to a distributor¶
POST distributions/<cncid>/<dcpid>