Skip to content

Commit 101544f

Browse files
author
Pablo Panero
committed
run: fix identation
1 parent 7273c35 commit 101544f

File tree

2 files changed

+61
-64
lines changed

2 files changed

+61
-64
lines changed

docs/develop/config.md

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -37,18 +37,18 @@ Did the changes work? We are going to try to create a new record:
3737

3838
``` console
3939
$ curl -k -XPOST -H "Content-Type: application/json" https://localhost:5000/api/records/ -d '{
40-
"_access": {
41-
"metadata_restricted": false,
42-
"files_restricted": false
43-
},
44-
"_owners": [1],
45-
"_created_by": 1,
46-
"access_right": "open",
47-
"resource_type": {
48-
"type": "image",
49-
"subtype": "photo"
50-
},
51-
"identifiers": [
40+
"_access": {
41+
"metadata_restricted": false,
42+
"files_restricted": false
43+
},
44+
"_owners": [1],
45+
"_created_by": 1,
46+
"access_right": "open",
47+
"resource_type": {
48+
"type": "image",
49+
"subtype": "photo"
50+
},
51+
"identifiers": [
5252
{
5353
"identifier": "10.9999/rdm.9999999",
5454
"scheme": "DOI"
@@ -57,7 +57,7 @@ $ curl -k -XPOST -H "Content-Type: application/json" https://localhost:5000/api/
5757
"scheme": "arXiv"
5858
}
5959
],
60-
"creators": [
60+
"creators": [
6161
{
6262
"name": "Julio Cesar",
6363
"type": "Personal",
@@ -76,14 +76,14 @@ $ curl -k -XPOST -H "Content-Type: application/json" https://localhost:5000/api/
7676
"scheme": "entity-id-scheme"
7777
}
7878
]
79-
}
79+
}
8080
],
81-
"titles": [
81+
"titles": [
8282
{
83-
"title": "A Romans story",
84-
"type": "Other",
85-
"lang": "eng"
86-
}
83+
"title": "A Romans story",
84+
"type": "Other",
85+
"lang": "eng"
86+
}
8787
],
8888
"descriptions": [
8989
{
@@ -141,18 +141,18 @@ Afterwards we can test if the new permissions are working correctly.
141141

142142
``` console
143143
$ curl -k -XPOST -H "Authorization:Bearer sHHq1K9y7a2v5doKDRSFmSFOxa1tZDHFcbs31npaxm1sFEt27yomLMt0ynkl" -H "Content-Type: application/json" https://localhost:5000/api/records/ -d '{
144-
"_access": {
145-
"metadata_restricted": false,
146-
"files_restricted": false
147-
},
148-
"_owners": [1],
149-
"_created_by": 1,
150-
"access_right": "open",
151-
"resource_type": {
152-
"type": "image",
153-
"subtype": "photo"
154-
},
155-
"identifiers": [
144+
"_access": {
145+
"metadata_restricted": false,
146+
"files_restricted": false
147+
},
148+
"_owners": [1],
149+
"_created_by": 1,
150+
"access_right": "open",
151+
"resource_type": {
152+
"type": "image",
153+
"subtype": "photo"
154+
},
155+
"identifiers": [
156156
{
157157
"identifier": "10.9999/rdm.9999999",
158158
"scheme": "DOI"
@@ -161,7 +161,7 @@ $ curl -k -XPOST -H "Authorization:Bearer sHHq1K9y7a2v5doKDRSFmSFOxa1tZDHFcbs31n
161161
"scheme": "arXiv"
162162
}
163163
],
164-
"creators": [
164+
"creators": [
165165
{
166166
"name": "Julio Cesar",
167167
"type": "Personal",
@@ -180,14 +180,14 @@ $ curl -k -XPOST -H "Authorization:Bearer sHHq1K9y7a2v5doKDRSFmSFOxa1tZDHFcbs31n
180180
"scheme": "entity-id-scheme"
181181
}
182182
]
183-
}
183+
}
184184
],
185-
"titles": [
185+
"titles": [
186186
{
187-
"title": "A Romans story",
188-
"type": "Other",
189-
"lang": "eng"
190-
}
187+
"title": "A Romans story",
188+
"type": "Other",
189+
"lang": "eng"
190+
}
191191
],
192192
"descriptions": [
193193
{

docs/develop/run.md

Lines changed: 23 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -70,16 +70,11 @@ $ curl -k -XGET https://localhost:5000/api/records/ | python3 -m json.tool
7070
"user": "inveniouser"
7171
}
7272
],
73-
"_owners": [
74-
1
75-
],
73+
"_owners": [1],
7674
"access_right": "open",
7775
"community": {
7876
"primary": "Maincom",
79-
"secondary": [
80-
"Subcom One",
81-
"Subcom Two"
82-
]
77+
"secondary": ["Subcom One", "Subcom Two"]
8378
},
8479
"contact": "[email protected]",
8580
"contributors": [
@@ -206,7 +201,9 @@ $ curl -k -XGET https://localhost:5000/api/records/ | python3 -m json.tool
206201
"version": "v0.0.1"
207202
}
208203
},
209-
...
204+
...
205+
]
206+
}
210207
}
211208
```
212209

@@ -226,17 +223,17 @@ You can create a new record using the API:
226223
```console
227224
$ curl -k -XPOST -H "Content-Type: application/json" https://localhost:5000/api/records/ -d '{
228225
"_access": {
229-
"metadata_restricted": false,
230-
"files_restricted": false
231-
},
232-
"_owners": [1],
233-
"_created_by": 1,
234-
"access_right": "open",
235-
"resource_type": {
236-
"type": "image",
237-
"subtype": "photo"
238-
},
239-
"identifiers": [
226+
"metadata_restricted": false,
227+
"files_restricted": false
228+
},
229+
"_owners": [1],
230+
"_created_by": 1,
231+
"access_right": "open",
232+
"resource_type": {
233+
"type": "image",
234+
"subtype": "photo"
235+
},
236+
"identifiers": [
240237
{
241238
"identifier": "10.9999/rdm.9999999",
242239
"scheme": "DOI"
@@ -245,7 +242,7 @@ $ curl -k -XPOST -H "Content-Type: application/json" https://localhost:5000/api/
245242
"scheme": "arXiv"
246243
}
247244
],
248-
"creators": [
245+
"creators": [
249246
{
250247
"name": "Julio Cesar",
251248
"type": "Personal",
@@ -264,14 +261,14 @@ $ curl -k -XPOST -H "Content-Type: application/json" https://localhost:5000/api/
264261
"scheme": "entity-id-scheme"
265262
}
266263
]
267-
}
264+
}
268265
],
269-
"titles": [
266+
"titles": [
270267
{
271-
"title": "A Romans story",
272-
"type": "Other",
273-
"lang": "eng"
274-
}
268+
"title": "A Romans story",
269+
"type": "Other",
270+
"lang": "eng"
271+
}
275272
],
276273
"descriptions": [
277274
{

0 commit comments

Comments
 (0)