Skip to content

Commit 1e09e78

Browse files
committed
Add postman scripts
1 parent d0467e7 commit 1e09e78

4 files changed

Lines changed: 386 additions & 0 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
*.DS_Store
12
.idea/
23

34
# Created by https://www.gitignore.io/api/pycharm
Lines changed: 230 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,230 @@
1+
{
2+
"info": {
3+
"_postman_id": "500d9a2f-5c5e-445f-b1bd-bba7dcac3fc8",
4+
"name": "solid basic operations",
5+
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
6+
},
7+
"item": [
8+
{
9+
"name": "/ accept default (turtle)",
10+
"protocolProfileBehavior": {
11+
"disabledSystemHeaders": {
12+
"accept": true
13+
}
14+
},
15+
"request": {
16+
"method": "GET",
17+
"header": [],
18+
"url": {
19+
"raw": "{{endpoint}}/",
20+
"host": [
21+
"{{endpoint}}"
22+
],
23+
"path": [
24+
""
25+
]
26+
}
27+
},
28+
"response": []
29+
},
30+
{
31+
"name": "/ accept JSON",
32+
"protocolProfileBehavior": {
33+
"disabledSystemHeaders": {
34+
"accept": true
35+
}
36+
},
37+
"request": {
38+
"method": "GET",
39+
"header": [
40+
{
41+
"key": "Accept",
42+
"value": "application/ld+json",
43+
"type": "text"
44+
}
45+
],
46+
"url": {
47+
"raw": "{{endpoint}}/",
48+
"host": [
49+
"{{endpoint}}"
50+
],
51+
"path": [
52+
""
53+
]
54+
}
55+
},
56+
"response": []
57+
},
58+
{
59+
"name": "create folder /testdir/",
60+
"protocolProfileBehavior": {
61+
"disabledSystemHeaders": {
62+
"content-type": true
63+
}
64+
},
65+
"request": {
66+
"method": "POST",
67+
"header": [
68+
{
69+
"key": "Link",
70+
"value": "<http://www.w3.org/ns/ldp#BasicContainer>; rel=\"type\"",
71+
"type": "text"
72+
},
73+
{
74+
"key": "Slug",
75+
"value": "testdir",
76+
"type": "text"
77+
},
78+
{
79+
"key": "Content-Type",
80+
"value": "text/turtle",
81+
"type": "text"
82+
}
83+
],
84+
"body": {
85+
"mode": "raw",
86+
"raw": "<> <http://purl.org/dc/terms/title> \"Basic container\" .\n"
87+
},
88+
"url": {
89+
"raw": "{{endpoint}}/",
90+
"host": [
91+
"{{endpoint}}"
92+
],
93+
"path": [
94+
""
95+
]
96+
}
97+
},
98+
"response": []
99+
},
100+
{
101+
"name": "/testdir/test.md",
102+
"protocolProfileBehavior": {
103+
"disabledSystemHeaders": {
104+
"content-type": true
105+
}
106+
},
107+
"request": {
108+
"method": "PUT",
109+
"header": [
110+
{
111+
"key": "Content-Type",
112+
"value": "text/plain",
113+
"type": "text"
114+
}
115+
],
116+
"body": {
117+
"mode": "raw",
118+
"raw": "# hello world"
119+
},
120+
"url": {
121+
"raw": "{{endpoint}}/testdir/test.md",
122+
"host": [
123+
"{{endpoint}}"
124+
],
125+
"path": [
126+
"testdir",
127+
"test.md"
128+
]
129+
},
130+
"description": "test"
131+
},
132+
"response": []
133+
},
134+
{
135+
"name": "/testdir/",
136+
"protocolProfileBehavior": {
137+
"disabledSystemHeaders": {
138+
"accept": true
139+
}
140+
},
141+
"request": {
142+
"method": "GET",
143+
"header": [
144+
{
145+
"key": "Accept",
146+
"value": "application/ld+json",
147+
"type": "text"
148+
}
149+
],
150+
"url": {
151+
"raw": "{{endpoint}}/testdir/",
152+
"host": [
153+
"{{endpoint}}"
154+
],
155+
"path": [
156+
"testdir",
157+
""
158+
]
159+
}
160+
},
161+
"response": []
162+
},
163+
{
164+
"name": "/testdir/test.md",
165+
"protocolProfileBehavior": {
166+
"disabledSystemHeaders": {
167+
"accept": true
168+
}
169+
},
170+
"request": {
171+
"method": "GET",
172+
"header": [
173+
{
174+
"key": "Accept",
175+
"value": "application/ld+json",
176+
"type": "text",
177+
"disabled": true
178+
}
179+
],
180+
"url": {
181+
"raw": "{{endpoint}}/testdir/test.md",
182+
"host": [
183+
"{{endpoint}}"
184+
],
185+
"path": [
186+
"testdir",
187+
"test.md"
188+
]
189+
}
190+
},
191+
"response": []
192+
},
193+
{
194+
"name": "/testdir/test.md",
195+
"request": {
196+
"method": "DELETE",
197+
"header": [],
198+
"url": {
199+
"raw": "{{endpoint}}/testdir/test.md",
200+
"host": [
201+
"{{endpoint}}"
202+
],
203+
"path": [
204+
"testdir",
205+
"test.md"
206+
]
207+
}
208+
},
209+
"response": []
210+
},
211+
{
212+
"name": "/testdir/",
213+
"request": {
214+
"method": "DELETE",
215+
"header": [],
216+
"url": {
217+
"raw": "{{endpoint}}/testdir/",
218+
"host": [
219+
"{{endpoint}}"
220+
],
221+
"path": [
222+
"testdir",
223+
""
224+
]
225+
}
226+
},
227+
"response": []
228+
}
229+
]
230+
}

resources/postman/nss-login.json

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
{
2+
"info": {
3+
"_postman_id": "058eaa67-da8f-4799-83e0-3cda06693a56",
4+
"name": "id/pwd authentication (NSS only)",
5+
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
6+
},
7+
"item": [
8+
{
9+
"name": "get private resouce",
10+
"request": {
11+
"method": "GET",
12+
"header": [],
13+
"url": {
14+
"raw": "{{endpoint}}/private/test.md.md",
15+
"host": [
16+
"{{endpoint}}"
17+
],
18+
"path": [
19+
"private",
20+
"test.md.md"
21+
]
22+
}
23+
},
24+
"response": []
25+
},
26+
{
27+
"name": "login",
28+
"request": {
29+
"method": "POST",
30+
"header": [
31+
{
32+
"key": "Content-Type",
33+
"value": "application/x-www-form-urlencoded",
34+
"type": "text",
35+
"disabled": true
36+
}
37+
],
38+
"body": {
39+
"mode": "urlencoded",
40+
"urlencoded": [
41+
{
42+
"key": "username",
43+
"value": "{{username}}",
44+
"type": "text"
45+
},
46+
{
47+
"key": "password",
48+
"value": "{{password}}",
49+
"type": "text"
50+
}
51+
]
52+
},
53+
"url": {
54+
"raw": "https://solidcommunity.net/login/password",
55+
"protocol": "https",
56+
"host": [
57+
"solidcommunity",
58+
"net"
59+
],
60+
"path": [
61+
"login",
62+
"password"
63+
]
64+
}
65+
},
66+
"response": []
67+
},
68+
{
69+
"name": "get private resouce",
70+
"request": {
71+
"method": "GET",
72+
"header": [],
73+
"url": {
74+
"raw": "{{endpoint}}/private/test.md.md",
75+
"host": [
76+
"{{endpoint}}"
77+
],
78+
"path": [
79+
"private",
80+
"test.md.md"
81+
]
82+
}
83+
},
84+
"response": []
85+
}
86+
]
87+
}
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
{
2+
"info": {
3+
"_postman_id": "1f564a0c-9efb-4b40-a9a1-a903ed3b6143",
4+
"name": "/profile/card#me",
5+
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
6+
},
7+
"item": [
8+
{
9+
"name": "GET card",
10+
"protocolProfileBehavior": {
11+
"disabledSystemHeaders": {
12+
"accept": true
13+
}
14+
},
15+
"request": {
16+
"method": "GET",
17+
"header": [
18+
{
19+
"key": "Accept",
20+
"value": "application/ld+json",
21+
"type": "text"
22+
}
23+
],
24+
"url": {
25+
"raw": "{{endpoint}}/profile/card",
26+
"host": [
27+
"{{endpoint}}"
28+
],
29+
"path": [
30+
"profile",
31+
"card"
32+
]
33+
}
34+
},
35+
"response": []
36+
},
37+
{
38+
"name": "GET card#me",
39+
"protocolProfileBehavior": {
40+
"disabledSystemHeaders": {
41+
"accept": true
42+
}
43+
},
44+
"request": {
45+
"method": "GET",
46+
"header": [
47+
{
48+
"key": "Accept",
49+
"value": "application/ld+json",
50+
"type": "text"
51+
}
52+
],
53+
"url": {
54+
"raw": "{{endpoint}}/profile/card#me",
55+
"host": [
56+
"{{endpoint}}"
57+
],
58+
"path": [
59+
"profile",
60+
"card"
61+
],
62+
"hash": "me"
63+
}
64+
},
65+
"response": []
66+
}
67+
]
68+
}

0 commit comments

Comments
 (0)