Skip to content

Commit 613ffd7

Browse files
committed
.jade for concerts added and a new include in home.jade
1 parent 88211a3 commit 613ffd7

File tree

2 files changed

+68
-0
lines changed

2 files changed

+68
-0
lines changed

app/views/apis/concerts.jade

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
.offset#endpoint-cinema
2+
article.article.dark.endpoint
3+
.limit.padding
4+
hgroup
5+
h3 Concerts in Iceland
6+
h4 Source: <a href="http://midi.is/atburdir/?c=1&p=1" target="_blank">midi.is</a>
7+
8+
.box.light.api
9+
.content.title.blue
10+
.method get
11+
.path: a(href="http://apis.is/concerts", target="_blank") /concerts
12+
13+
.content
14+
p Get a list of all the concerts in Iceland sorted by date
15+
16+
h5.leading.collapse-next curl demo
17+
pre.prettyprint.curl-demo.
18+
curl -X GET 'apis.is/concerts' -H 'accept-version:1' -H 'Content-Type: application/json'
19+
20+
h5.leading.collapse-next jQuery demo
21+
pre.prettyprint.linenums.jquery-demo.
22+
$.ajax({
23+
'url': 'http://apis.is/concerts',
24+
'type': 'GET',
25+
'dataType': 'json',
26+
'success': function(response) {
27+
console.log(response);
28+
}
29+
});
30+
31+
h5.leading.collapse-next Response
32+
pre.prettyprint.linenums.response.
33+
{
34+
"results" : [
35+
{
36+
"date": "Laugardagur, 12. júlí 2014",
37+
"concerts": [
38+
{
39+
"title":"All Tomorrow's Parties Iceland",
40+
"info":"Day pass - Saturday - w/bus transfers",
41+
"date":"12.07.2014 kl 17:00",
42+
"location":"Ásbrú",
43+
"type":"Tónleikar"
44+
},
45+
{
46+
"title":"All Tomorrow's Parties Iceland",
47+
"info":"Day pass - Saturday",
48+
"date":"12.07.2014 kl. 19:00",
49+
"location":"Ásbrú",
50+
"type":"Tónleikar"
51+
}
52+
]
53+
},
54+
{
55+
"date":"Miðvikudagur, 5. nóvember 2014",
56+
"concerts":[
57+
{
58+
"title":"Iceland Airwaves 2014",
59+
"info":"November 5th - November 9th",
60+
"date":"05.11.2014 kl. 18:00",
61+
"location":"Reykjavík",
62+
"type":"Tónleikar"
63+
}
64+
]
65+
}
66+
]
67+
}

app/views/home.jade

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ block apis
1414
include apis/car
1515
include apis/cinema
1616
include apis/company
17+
include apis/concerts
1718
include apis/currency
1819
include apis/cyclecounter
1920
include apis/earthquake

0 commit comments

Comments
 (0)