File tree Expand file tree Collapse file tree 5 files changed +194
-136
lines changed Expand file tree Collapse file tree 5 files changed +194
-136
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"info" : {
3
- "name" : " Codemash" ,
4
3
"_postman_id" : " 79d9618c-e999-d611-fe4c-19d0c1522626" ,
5
- "description " : " " ,
4
+ "name " : " Codemash " ,
6
5
"schema" : " https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
7
6
},
8
7
"item" : [
11
10
"request" : {
12
11
"method" : " GET" ,
13
12
"header" : [],
14
- "body" : {},
13
+ "body" : {
14
+ "mode" : " raw" ,
15
+ "raw" : " "
16
+ },
15
17
"url" : {
16
- "raw" : " https ://speakers.codemash.org /api/SessionsData?type=json " ,
17
- "protocol" : " https " ,
18
+ "raw" : " http ://localhost:8181 /api/v2/mqm7pgek/view/sessions " ,
19
+ "protocol" : " http " ,
18
20
"host" : [
19
- " speakers" ,
20
- " codemash" ,
21
- " org"
21
+ " localhost"
22
22
],
23
+ "port" : " 8181" ,
23
24
"path" : [
24
25
" api" ,
25
- " SessionsData"
26
- ],
27
- "query" : [
28
- {
29
- "key" : " type" ,
30
- "value" : " json" ,
31
- "equals" : true
32
- }
26
+ " v2" ,
27
+ " mqm7pgek" ,
28
+ " view" ,
29
+ " sessions"
33
30
]
34
- },
35
- "description" : " "
31
+ }
36
32
},
37
33
"response" : []
38
34
},
41
37
"request" : {
42
38
"method" : " GET" ,
43
39
"header" : [],
44
- "body" : {},
40
+ "body" : {
41
+ "mode" : " raw" ,
42
+ "raw" : " "
43
+ },
45
44
"url" : {
46
- "raw" : " https ://speakers.codemash.org /api/SpeakersData?type=json " ,
47
- "protocol" : " https " ,
45
+ "raw" : " http ://localhost:8181 /api/v2/mqm7pgek/view/speakers " ,
46
+ "protocol" : " http " ,
48
47
"host" : [
49
- " speakers" ,
50
- " codemash" ,
51
- " org"
48
+ " localhost"
52
49
],
50
+ "port" : " 8181" ,
53
51
"path" : [
54
52
" api" ,
55
- " SpeakersData"
56
- ],
57
- "query" : [
58
- {
59
- "key" : " type" ,
60
- "value" : " json" ,
61
- "equals" : true
62
- }
53
+ " v2" ,
54
+ " mqm7pgek" ,
55
+ " view" ,
56
+ " speakers"
63
57
]
64
- },
65
- "description" : " "
58
+ }
66
59
},
67
60
"response" : []
68
61
}
Original file line number Diff line number Diff line change @@ -12,13 +12,13 @@ let loadExpectation = (jsonFile) => {
12
12
13
13
var app = express ( ) ;
14
14
15
- app . get ( '/api/SpeakersData ' , function ( req , res ) {
15
+ app . get ( '/api/v2/mqm7pgek/view/speakers ' , function ( req , res ) {
16
16
var data = loadExpectation ( '/speakers.json' ) ;
17
17
console . log ( data ) ;
18
18
res . json ( data ) ;
19
19
} ) ;
20
20
21
- app . get ( '/api/SessionsData ' , function ( req , res ) {
21
+ app . get ( '/api/v2/mqm7pgek/view/sessions ' , function ( req , res ) {
22
22
var data = loadExpectation ( '/sessions.json' ) ;
23
23
console . log ( data ) ;
24
24
res . json ( data ) ;
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
3
curl -X GET \
4
- ' https ://speakers.codemash.org /api/SessionsData?type=json ' \
4
+ ' http ://localhost:8181 /api/v2/mqm7pgek/view/sessions ' \
5
5
-H ' cache-control: no-cache'
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
3
curl -X GET \
4
- ' https ://speakers.codemash.org /api/SpeakersData?type=json ' \
4
+ ' http ://localhost:8181 /api/v2/mqm7pgek/view/speakers ' \
5
5
-H ' cache-control: no-cache'
You can’t perform that action at this time.
0 commit comments