generated from slatedocs/slate
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathspec.yaml
545 lines (545 loc) · 12.8 KB
/
spec.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
---
swagger: "2.0"
info:
description: OpenAlex APIs
version: 0.0.1
title: OpenAlex
license:
name: MIT
url: https://github.com/ourresearch/openalex-guts/blob/main/LICENSE
basePath: /
tags:
- name: work
description: An OpenAlex work
- name: author
description: An OpenAlex author
- name: institution
description: An OpenAlex institution
- name: journal
description: An OpenAlex journal
- name: concept
description: An OpenAlex concept
consumes:
- application/json
produces:
- application/json
paths:
/author/id/{author_id}:
get:
tags:
- author
description: An endpoint to get an author from the author_id
operationId: get_author_id
parameters:
- name: author_id
in: path
description: Author ID
required: true
type: integer
responses:
"200":
description: Success
schema:
$ref: '#/definitions/Author'
"404":
description: Not found
/author/orcid/{orcid}:
get:
tags:
- author
description: An endpoint to get an author from the orcid
operationId: get_author_orcid
parameters:
- name: orcid
in: path
description: ORCID of the author (eg 0000-0002-6133-2581)
required: true
type: string
responses:
"200":
description: Success
schema:
$ref: '#/definitions/Author'
"404":
description: Not found
/concept/id/{concept_id}:
get:
tags:
- concept
description: An endpoint to get concept from the id
operationId: get_concept_id
parameters:
- name: concept_id
in: path
description: OpenAlex id of the concept
required: true
type: integer
responses:
"200":
description: Success
schema:
$ref: '#/definitions/Concept'
"404":
description: Not found
/institution/id/{institution_id}:
get:
tags:
- institution
description: An endpoint to get institution from the id
operationId: get_institution_id
parameters:
- name: institution_id
in: path
description: OpenAlex id of the institution
required: true
type: integer
responses:
"200":
description: Success
schema:
$ref: '#/definitions/Institution'
"404":
description: Not found
/institution/ror/{ror_id}:
get:
tags:
- institution
description: An endpoint to get institution from the ROR id
operationId: get_institution_ror
parameters:
- name: ror_id
in: path
description: ROR id of the institution
required: true
type: string
responses:
"200":
description: Success
schema:
$ref: '#/definitions/Institution'
"404":
description: Not found
/journal/id/{journal_id}:
get:
tags:
- journal
description: An endpoint to get journal from the id
operationId: get_journal_id
parameters:
- name: journal_id
in: path
description: OpenAlex id of the journal
required: true
type: integer
responses:
"200":
description: Success
schema:
$ref: '#/definitions/Journal'
"404":
description: Not found
/journal/issn/{issn}:
get:
tags:
- journal
description: An endpoint to get journal from an ISSN
operationId: get_journal_issn
parameters:
- name: issn
in: path
description: ISSN of the journal
required: true
type: string
responses:
"200":
description: Success
schema:
$ref: '#/definitions/Journal'
"404":
description: Not found
/work/doi/{doi}:
get:
tags:
- work
description: An endpoint to get work from the doi
operationId: get_work_doi
parameters:
- name: doi
in: path
description: DOI of the work (eg 10.7717/peerj.4375)
required: true
type: string
responses:
"200":
description: Success
schema:
$ref: '#/definitions/Work'
"404":
description: Not found
/work/id/{work_id}:
get:
tags:
- work
description: An endpoint to get work from the id
operationId: get_work_id
parameters:
- name: work_id
in: path
description: OpenAlex id of the work (eg 2741809807)
required: true
type: integer
responses:
"200":
description: Success
schema:
$ref: '#/definitions/Work'
"404":
description: Not found
/work/pmid/{pmid}:
get:
tags:
- work
description: An endpoint to get work from the PubMed ID
operationId: get_work_pmid
parameters:
- name: pmid
in: path
description: PMID of the work (eg 21801268)
required: true
type: string
responses:
"200":
description: Success
schema:
$ref: '#/definitions/Work'
"404":
description: Not found
definitions:
AbstractInvertedIndex:
type: object
properties:
'*':
type: object
Affiliation:
type: object
properties:
author:
$ref: '#/definitions/Author'
author_sequence_number:
type: integer
description: author order
institution:
$ref: '#/definitions/InstitutionSmall'
AncestorConcept:
type: object
properties:
display_name:
type: string
Author:
type: object
properties:
all_institutions:
type: array
citation_count:
type: integer
description: number of times this author has been cited
created_date:
type: string
format: date
display_name:
type: string
format: author_display_name
example: Jane Calvo
description: full name of the author
last_known_institution:
$ref: '#/definitions/Institution'
orcid:
type: string
format: 0000-0000-0000-0000
example: 0000-0002-6133-2581
orcid_url:
type: string
format: url
example: https://orcid.org/0000-0002-6133-2581
paper_count:
type: integer
description: number of papers this author has published
updated_date:
type: string
format: date
Concept:
type: object
properties:
ancestors:
type: array
items:
$ref: '#/definitions/AncestorConcept'
citation_count:
type: integer
description: number of times papers with this tag have been cited
created_date:
type: string
format: date
display_name:
type: string
description: full name of the journal
main_type:
type: string
paper_count:
type: integer
description: number of papers associated with this concept
Institution:
type: object
properties:
city:
type: string
description: city of institution
country:
type: string
description: name of country
country_code:
type: string
description: 2-character country code
created_date:
type: string
format: date
display_name:
type: string
format: institution_display_name
example: University of Examples
grid_id:
type: string
description: GRID id (deprecated in favour of ROR id)
official_url:
type: string
description: url of institution
ror_id:
type: string
format: ror_id
example: 001ykb961
ror_url:
type: string
format: url
example: https://ror.org/001ykb961
wikipedia_url:
type: string
description: url of Wikipedia page of institution
InstitutionSmall:
type: object
properties:
original_affiliation:
type: string
Journal:
type: object
properties:
citation_count:
type: integer
description: number of times this author has been cited
created_date:
type: string
format: date
display_name:
type: string
description: full name of the journal
is_in_doaj:
type: boolean
is_oa:
type: boolean
issn_l:
type: string
format: 0000-0000
example: 0123-345X
description: linking ISSN for this journal
issns:
type: array
description: all ISSNs for this journal, print and electronic
items:
type: string
format: 0000-0000
example: 0123-345X
paper_count:
type: integer
description: number of papers this author has published
publisher:
type: string
updated_date:
type: string
format: date
Location:
type: object
properties:
host_type:
type: string
example: repository
description: Host type
enum:
- repository
- publisher
language_code:
type: string
license:
type: string
oai_pmh_id:
type: string
repository_institution:
type: string
source_description:
type: string
example: html
description: Type of resource at the Source URL
enum:
- html
- text
- pdf
- doc
- ppt
- xls
- ods
- rtf
- xml
- rss
- odp
- mp3
- odt
- swf
- zip
- ics
- pub
source_type:
type: integer
source_url:
type: string
url_for_landing_page:
type: string
url_for_pdf:
type: string
version:
type: string
example: submittedVersion
description: Version of the paper
enum:
- submittedVersion
- acceptedVersion
- publishedVersion
Mesh:
type: object
properties:
descriptor_name:
type: string
descriptor_ui:
type: string
qualifier_name:
type: string
qualifier_ui:
type: string
Work:
type: object
properties:
abstract_inverted_index:
$ref: '#/definitions/AbstractInvertedIndex'
affiliations:
type: array
items:
$ref: '#/definitions/Affiliation'
best_host_type:
type: string
example: repository
description: Host type
enum:
- repository
- publisher
best_license:
type: string
best_url:
type: string
best_version:
type: string
example: submittedVersion
description: Version of the paper
enum:
- submittedVersion
- acceptedVersion
- publishedVersion
citation_count:
type: integer
description: number of times this paper has been cited
citations:
type: array
concepts:
type: array
description: concepts
items:
$ref: '#/definitions/Concept'
created_date:
type: string
format: date
doc_type:
type: string
description: doc_type
first_page:
type: string
genre:
type: string
description: genre
ids:
$ref: '#/definitions/WorkExtraIds'
issue:
type: string
journal:
$ref: '#/definitions/Journal'
last_page:
type: string
locations:
type: array
items:
$ref: '#/definitions/Location'
mesh:
type: array
items:
$ref: '#/definitions/Mesh'
oa_status:
type: string
example: closed
description: Open Access status of the paper
enum:
- closed
- green
- gold
- hybrid
- bronze
paper_title:
type: string
description: title of the paper
publication_date:
type: string
format: date
description: date of publication
volume:
type: string
year:
type: integer
description: year of publication
WorkExtraIds:
type: object
properties:
doi:
type: string
format: 10.XXX/XXX
example: 10.123/abc.def
doi_url:
type: string
format: url
example: https://doi.org/10.123/abc.def
pmid:
type: string
format: pmid
example: "21801268"
pmid_url:
type: string
responses:
MaskError:
description: When any error occurs on mask
NoResultFound:
description: Return a custom not found error message and 404 status code
ParseError:
description: When a mask can't be parsed