Skip to content

Commit c331180

Browse files
added api documentation
1 parent bcbf037 commit c331180

File tree

1 file changed

+134
-0
lines changed

1 file changed

+134
-0
lines changed

Diff for: api_documentation.txt

+134
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,134 @@
1+
Root url /api/
2+
3+
1) /events/
4+
5+
Method: GET
6+
7+
Returns
8+
9+
[
10+
{
11+
"name": "event2",
12+
"type": "test",
13+
"codename": "test",
14+
"website": "http://test.com",
15+
"details": "wow",
16+
"img": "media/terrific_minds.png",
17+
"created_at": "2019-09-17T08:28:40.155267+05:30",
18+
"contributor": null
19+
},
20+
{
21+
"name": "Testing",
22+
"type": "testing",
23+
"codename": "testing",
24+
"website": "testing",
25+
"details": "hey there how are you man",
26+
"img": "media/greenyard_wallpaper.jpg",
27+
"created_at": "2019-09-16T22:41:29.980861+05:30",
28+
"contributor": {
29+
"first_name": "",
30+
"email": "[email protected]"
31+
}
32+
}
33+
]
34+
35+
2) /competitions/
36+
37+
Method: GET
38+
39+
Returns
40+
41+
[
42+
{
43+
"id": 1,
44+
"contributor": {
45+
"first_name": "test",
46+
"email": "[email protected]"
47+
},
48+
"contact_numbers": [
49+
{
50+
"id": 1,
51+
"contributor": null,
52+
"name": "test",
53+
"designation": "test",
54+
"phone_number": "test",
55+
"created_at": "2019-09-19T23:01:03.631729+05:30",
56+
"competition": 1
57+
},
58+
{
59+
"id": 2,
60+
"contributor": null,
61+
"name": "test2",
62+
"designation": "test2",
63+
"phone_number": "test2",
64+
"created_at": "2019-09-19T23:01:03.632268+05:30",
65+
"competition": 1
66+
}
67+
],
68+
"name": "test_competition",
69+
"active": true,
70+
"codename": "test_competition",
71+
"registration": "test",
72+
"department": "test_department",
73+
"category": "test",
74+
"date": "2019-09-19",
75+
"time": "23:00:39",
76+
"venue": "test_venue"
77+
}
78+
]
79+
80+
3) /contacts/
81+
82+
Method: GET
83+
84+
Returns
85+
86+
[
87+
{
88+
"id": 1,
89+
"contributor": {
90+
"first_name": "",
91+
"email": "[email protected]"
92+
},
93+
"name": "Augustine Tharakan",
94+
"email": "[email protected]",
95+
"phone_number": "9567945420",
96+
"img": "media/greenyard_wallpaper_HBPAAsS.jpg",
97+
"created_at": "2019-09-27T14:45:06.628586+05:30"
98+
}
99+
]
100+
101+
4) /schedule/
102+
103+
Method: GET
104+
105+
Returns
106+
107+
[
108+
{
109+
"id": 1,
110+
"contributor": {
111+
"first_name": "test",
112+
"email": "[email protected]"
113+
},
114+
"name": "test_schedule",
115+
"start": "06:00:00",
116+
"end": "18:00:00",
117+
"venue": "302, 301",
118+
"department": "Non-Tech",
119+
"created_at": "2019-09-24T21:03:30.317513+05:30"
120+
},
121+
{
122+
"id": 2,
123+
"contributor": {
124+
"first_name": "",
125+
"email": "[email protected]"
126+
},
127+
"name": "test_2",
128+
"start": "21:04:03",
129+
"end": "21:04:04",
130+
"venue": "301",
131+
"department": "Tech",
132+
"created_at": "2019-09-24T21:04:18.049889+05:30"
133+
}
134+
]

0 commit comments

Comments
 (0)