Pelle API v10 » Historique » Version 10
Nicolas BERTRAND, 07/09/2016 18:03
1 | 1 | Nicolas BERTRAND | h1. Pelle API v10 |
---|---|---|---|
2 | 2 | Nicolas BERTRAND | |
3 | 2 | Nicolas BERTRAND | h2. API Base URL |
4 | 3 | Nicolas BERTRAND | |
5 | 3 | Nicolas BERTRAND | |
6 | 2 | Nicolas BERTRAND | <pre> |
7 | 2 | Nicolas BERTRAND | https://tuco.tdcpb.org/pelle/v1.0 |
8 | 2 | Nicolas BERTRAND | </pre> |
9 | 2 | Nicolas BERTRAND | |
10 | 2 | Nicolas BERTRAND | h2. Authentication |
11 | 2 | Nicolas BERTRAND | |
12 | 2 | Nicolas BERTRAND | HTTP requests to the REST API are protected with HTTP Basic authentication |
13 | 2 | Nicolas BERTRAND | |
14 | 2 | Nicolas BERTRAND | Example: |
15 | 2 | Nicolas BERTRAND | <pre> |
16 | 2 | Nicolas BERTRAND | curl -u <username>:<pass> -H "Content-Type: application/json" -X GET https://tuco.tdcpb.org/pelle/v1.0/exhibitors |
17 | 2 | Nicolas BERTRAND | </pre> |
18 | 4 | Nicolas BERTRAND | |
19 | 9 | Nicolas BERTRAND | h2. Exhibitors Resources |
20 | 4 | Nicolas BERTRAND | |
21 | 6 | Nicolas BERTRAND | h3. Exhibitor Properties |
22 | 8 | Nicolas BERTRAND | |
23 | 8 | Nicolas BERTRAND | |_. NAME |_. DESCRIPTION | |
24 | 7 | Nicolas BERTRAND | | cncid | Unique exhibitor authorization ID given by CNC | |
25 | 7 | Nicolas BERTRAND | | id | Unique ID given by tuco (internal usage) | |
26 | 7 | Nicolas BERTRAND | | name | Theater name | |
27 | 7 | Nicolas BERTRAND | | address | Exhibitor address | |
28 | 7 | Nicolas BERTRAND | | city | Exhibitor city | |
29 | 7 | Nicolas BERTRAND | | contact | Person to contact | |
30 | 1 | Nicolas BERTRAND | |
31 | 7 | Nicolas BERTRAND | |
32 | 6 | Nicolas BERTRAND | |
33 | 5 | Nicolas BERTRAND | |
34 | 4 | Nicolas BERTRAND | h3. List all exhibitors |
35 | 4 | Nicolas BERTRAND | |
36 | 4 | Nicolas BERTRAND | <pre> |
37 | 4 | Nicolas BERTRAND | GET exhibitors |
38 | 4 | Nicolas BERTRAND | </pre> |
39 | 4 | Nicolas BERTRAND | |
40 | 9 | Nicolas BERTRAND | Output sample: |
41 | 1 | Nicolas BERTRAND | |
42 | 1 | Nicolas BERTRAND | <pre> |
43 | 1 | Nicolas BERTRAND | { |
44 | 5 | Nicolas BERTRAND | exhibitors:[ |
45 | 5 | Nicolas BERTRAND | { |
46 | 1 | Nicolas BERTRAND | 'cncid': '123456', |
47 | 9 | Nicolas BERTRAND | 'name': 'UN CINEMA' |
48 | 1 | Nicolas BERTRAND | 'city' : LA VILLE |
49 | 9 | Nicolas BERTRAND | }, |
50 | 9 | Nicolas BERTRAND | .... |
51 | 1 | Nicolas BERTRAND | ] |
52 | 9 | Nicolas BERTRAND | } |
53 | 9 | Nicolas BERTRAND | </pre> |
54 | 9 | Nicolas BERTRAND | |
55 | 9 | Nicolas BERTRAND | h3. Retrieve a exhibitor |
56 | 9 | Nicolas BERTRAND | |
57 | 9 | Nicolas BERTRAND | <pre> |
58 | 9 | Nicolas BERTRAND | GET exhibitors/<cncid> |
59 | 9 | Nicolas BERTRAND | </pre> |
60 | 9 | Nicolas BERTRAND | |
61 | 9 | Nicolas BERTRAND | |
62 | 9 | Nicolas BERTRAND | Output sample: |
63 | 9 | Nicolas BERTRAND | |
64 | 9 | Nicolas BERTRAND | <pre> |
65 | 9 | Nicolas BERTRAND | { |
66 | 9 | Nicolas BERTRAND | exhibitors: |
67 | 9 | Nicolas BERTRAND | { |
68 | 9 | Nicolas BERTRAND | 'cncid': '123456', |
69 | 9 | Nicolas BERTRAND | 'name': 'UN CINEMA' |
70 | 9 | Nicolas BERTRAND | 'city' : LA VILLE |
71 | 9 | Nicolas BERTRAND | }, |
72 | 4 | Nicolas BERTRAND | } |
73 | 4 | Nicolas BERTRAND | </pre> |
74 | 10 | Nicolas BERTRAND | |
75 | 10 | Nicolas BERTRAND | |
76 | 10 | Nicolas BERTRAND | h3. Retrieve a exhibitor current downloads |
77 | 10 | Nicolas BERTRAND | |
78 | 10 | Nicolas BERTRAND | |
79 | 10 | Nicolas BERTRAND | <pre> |
80 | 10 | Nicolas BERTRAND | GET exhibitors/<cncid>/current_downloads |
81 | 10 | Nicolas BERTRAND | </pre> |
82 | 10 | Nicolas BERTRAND | |
83 | 10 | Nicolas BERTRAND | |
84 | 10 | Nicolas BERTRAND | Output sample: |
85 | 10 | Nicolas BERTRAND | <pre> |
86 | 10 | Nicolas BERTRAND | </pre> |