-
Notifications
You must be signed in to change notification settings - Fork 5
/
openapi.yaml
906 lines (906 loc) · 29.1 KB
/
openapi.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
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
openapi: 3.0.0
info:
title: TechPort
description: TechPort RESTful API
version: 3.13.5
contact:
name: TechPort Team
email: hq-techport@mail.nasa.gov
url: https://techport.nasa.gov
servers:
- url: https://techport.nasa.gov
tags:
- name: Project
- name: Organization
- name: Resource
paths:
/api:
get:
tags:
- Resource
operationId: Resource_getSpecification
description: Returns the swagger specification for the API.
responses:
'200':
description: Successful response
default:
description: Object not found.
/api/projects:
get:
tags:
- Project
operationId: Project_listAvailableIds
description: Returns a list of available technology project IDs.
parameters:
- description: >-
ISO 8601 full-date in the format YYYY-MM-DD. Filters the list of
available ID values by their lastUpdated parameter.
name: updatedSince
in: query
required: true
schema:
type: string
format: date
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/ProjectListAvailableIdsResponse'
default:
description: Object not found.
/api/projects/search:
get:
tags:
- Project
operationId: Project_findMatchingProjects
description: Returns a list of projects matching the search term.
parameters:
- description: The specific ID of the project requested.
name: projectId
in: query
required: false
schema:
type: integer
format: int64
- description: >-
The term on which to search. Will check all project fields for the
this term.
name: searchQuery
in: query
required: false
schema:
type: string
- description: The mission directorate acronym of the projects. Used to filter.
name: missionDirectorate
in: query
required: false
schema:
type: string
- description: The program acronym of the projects. Used to filter.
name: program
in: query
required: false
schema:
type: string
- description: >-
The term on which to search. Will check only project titles for the
this term.
name: titleSearch
in: query
required: false
schema:
type: string
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/ProjectFindMatchingProjectsResponse'
default:
description: Object not found.
/api/projects/{projectId}:
get:
tags:
- Project
operationId: Project_getInfo
description: Returns information about a specific technology project.
parameters:
- description: ID of project to fetch
name: projectId
in: path
required: true
schema:
type: integer
format: int64
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/project'
default:
description: Object not found.
/api/organizations:
get:
tags:
- Organization
operationId: Organization_getListByName
description: Returns a list of organizations that match a given name.
parameters:
- description: Organization Name to filter on.
name: name
in: query
required: false
schema:
type: string
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/OrganizationGetListByNameResponse'
default:
description: Object not found.
/api/organizations/types:
get:
tags:
- Organization
operationId: Organization_listTypes
description: >-
Returns a list of available organization types, including set-aside and
MSI types.
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/OrganizationListTypesResponse'
default:
description: Object not found.
/api/organizations/{organizationId}:
get:
tags:
- Organization
operationId: Organization_getInformation
description: Get an organization and its information.
parameters:
- description: Organization Id.
name: organizationId
in: path
required: true
schema:
type: integer
format: int64
responses:
'200':
description: Success. Organization detailed data.
content:
application/json:
schema:
$ref: '#/components/schemas/OrganizationGetInformationResponse'
default:
description: Error.
components:
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: JWT
schemas:
destination:
description: >-
Represents a destination towards which the technology on this project
helps advance the Agency goals.
type: string
closeoutDocument:
description: >-
Represents a file hyperlink or external hyperlink to a project closeout
final report artifact.
type: string
technologyArea:
description: >-
The Technology Area for a given technology that corresponds to the NASA
Technology Roadmap.
type: object
properties:
title:
description: The title of the Technology Area.
type: string
id:
description: Unique identifier for the Technology Area.
type: integer
format: int64
code:
description: The code identifier for the Technology Area.
type: string
workLocation:
description: A state/territory where work on this project is performed.
type: string
programDirector:
description: The name of a Program Director responsible for management of an project.
type: string
programManager:
description: The name of a Program Manager responsible for management of an project.
type: string
projectManager:
description: The name of a Project Manager responsible for management of an project.
type: string
principalInvestigator:
description: >-
The name of the Principal Investigator who is a lead scientist or
engineer for an project.
type: string
coInvestigator:
description: >-
The name of an investigator who is a scientist or engineer for an
project.
type: string
program:
description: Represents a NASA program.
type: object
properties:
title:
description: Title for the program
type: string
description:
description: Description for the program
type: string
programId:
description: Unique ID for this program
type: integer
format: int64
acronym:
description: Acronym for this program
type: string
active:
description: True if the program is still active
type: boolean
parentProgram:
description: Program object representing the parent program
$ref: '#/components/schemas/program'
parentProgramId:
description: Unique ID for the parent program
type: integer
format: int64
responsibleMd:
description: Responsible Mission Directorate for this program
$ref: '#/components/schemas/organization'
responsibleMdId:
description: Unique ID for the parent responsible mission directorate
type: integer
format: int64
taxonomy:
description: Represents data associated with a single taxonomy root entity.
type: object
properties:
title:
description: Title for this taxonomy
type: string
taxonomyRootId:
description: Unique ID for this taxonomy
type: integer
format: int64
releaseStatusId:
description: ID for this taxonomy roots release status
type: integer
format: int64
definition:
description: Definition for this taxonomy
type: string
modifiedBy:
description: The last user to modify this taxonomy
type: string
modifiedDate:
description: The date this taxonomy was last modified
type: string
format: date
children:
type: array
items:
$ref: '#/components/schemas/treeNode'
releaseStatus:
description: The release status of this taxonomy
type: string
treeNode:
description: Represents a taxonomy node in a tree.
type: object
properties:
content:
$ref: '#/components/schemas/taxonomyNode'
children:
type: array
items:
$ref: '#/components/schemas/treeNode'
taxonomyNode:
description: Represents data associated with a single taxonomy node entity.
type: object
properties:
title:
description: Title of the taxonomy node
type: string
taxonomyNodeId:
description: Unique identifier for the taxonomy node
type: integer
format: int64
taxonomyRootId:
description: Unique identifier for the root of this taxonomy node
type: integer
format: int64
parentNodeId:
description: >-
Unique identifier for the taxonomy node/root that is the direct
parent of this taxonomy node
type: integer
format: int64
level:
description: The level of this node on the tree (0 being the root)
type: integer
format: int64
code:
description: Code of the taxonomy node
type: string
definition:
description: Definition of the taxonomy node
type: string
hasChildren:
description: Defines whether this node has children
type: boolean
publishedUrl:
description: Published URL of the taxonomy node
type: string
contact:
description: Represents an individual and their details.
type: object
properties:
title:
description: Title for the contact
type: string
contactId:
description: Unique ID for this contact
type: integer
format: int64
displayOrder:
description: Display order
type: integer
format: int64
fax:
description: Fax number for the contact
type: string
firstName:
description: First name for the contact
type: string
lastName:
description: Last name for the contact
type: string
fullName:
description: Full name for the contact, first middle initial last
type: string
fullNameInverted:
description: Full name for the contact but inverted, last first middle initial
type: string
location:
description: Location for the contact
$ref: '#/components/schemas/location'
locationId:
description: Unique ID representing the contacts location
type: integer
format: int64
middleInitial:
description: Middle initial for the contact
type: string
organization:
description: Organization that the contact works for
$ref: '#/components/schemas/organization'
prefix:
description: Prefix for the contact
type: string
primaryEmail:
description: Primary email for the contact
type: string
secondaryEmail:
description: Secondary email for the contact
type: string
suffix:
description: Suffix for the contact
type: string
workPhoneExtension:
description: Extension for contacts work phone number
type: string
workPhone:
description: Phone number for the contact
type: string
receiveEmail:
description: 1 if the contact is signed up to receive TechPort emails
type: integer
format: int64
isPublicEmail:
description: True if the contacts email is available to be shown to the public
type: boolean
organization:
description: A NASA center/facility associated with an project
type: object
properties:
organizationId:
description: Unique ID for this organization
type: integer
format: int64
acronym:
description: The acronym of the organization
type: string
fax:
description: Fax number of the organization
type: string
isActive:
description: True if the organization is an active organization
type: boolean
location:
description: Location object for the organization
$ref: '#/components/schemas/location'
locationId:
description: Unique ID representing the organizations location
type: integer
format: int64
organizationName:
description: The name of the organization
type: string
organizationType:
description: Lookup code representing the type of organization
$ref: '#/components/schemas/lkuCode'
organizationTypeId:
description: Unique ID for the lookup code representing the organization type
type: integer
format: int64
parentOrganizationId:
description: Unique ID for the parent organization
type: integer
format: int64
phone:
description: The phone number for the organization
type: string
replacementOrganizationId:
description: Unique ID for the replacement organization
type: integer
format: int64
url:
description: The URL for the organization
type: string
NAOrganization:
description: True if the organization is in North America
type: boolean
external:
description: True if the organization is external to NASA
type: boolean
linkCount:
description: Amount of links this organization has
type: integer
format: int64
murepUnitId:
description: Unique identifier assigned to U.S. academic institutions by MUREP.
type: integer
format: int64
ein:
description: The employer identification number (EIN) of the entity.
type: string
uei:
description: The unique entity identifier (UEI) of the entity.
type: string
dunsNumber:
description: The DUNS number assigned to the organization.
type: string
msiData:
description: >-
A key/value pair of strings describing the organization MSI status
by fiscal year.
type: object
additionalProperties:
description: The organization MSI status types for a given fiscal year.
type: array
items:
type: string
setAsideData:
description: The organization set-aside types.
type: array
items:
type: string
organizationType:
description: >-
A heirarchical representation of an organization type. Similar to the
LkuCode type returned for organization.organizationType, but formatted
in a parent/child relationship.
type: object
properties:
organizationTypeId:
description: Unique ID for this organization type.
type: integer
format: int64
name:
description: The name of the organization type.
type: string
hasChildren:
description: Whether or not the type has child types.
type: boolean
level:
description: The relative level of the organization type in the heirarchy.
type: string
parentId:
description: Unique ID for the parent type in the heriarchy.
type: integer
format: int64
location:
description: Represents a physical location.
type: object
properties:
locationId:
description: Unique ID for this location
type: integer
format: int64
addressLine1:
description: First line of address for location
type: string
addressLine2:
description: Second line of address for location
type: string
city:
description: City for location
type: string
locationType:
description: Lookup code representing the location type
$ref: '#/components/schemas/lkuCode'
locationTypeId:
description: Unique ID for the lookup code representing the location type
type: integer
format: int64
state:
description: State for location
type: string
stateTerritoryName:
description: State Territory name for location
type: string
zip:
description: ZIP code for location
type: string
zip2:
description: Secondary ZIP code for location
type: string
NALocation:
description: True if this location is located in North America
type: string
country:
description: Lookup code representing the location country
$ref: '#/components/schemas/lkuCode'
countryId:
description: Unique ID for the lookup code representing the location country
type: integer
format: int64
shortLocationString:
description: A string representing the full location
type: string
lkuCode:
description: >-
Lookup code representing more data about an object usually stored in our
database.
type: object
properties:
description:
description: Description of the LKU Code
type: string
lkuCodeId:
description: Unique ID for this LKU Code
type: integer
format: int64
code:
description: Unique text code that represents this LKU Code
type: string
lkuCodeTypeId:
description: Unique ID for the LKU Code Type
type: integer
format: int64
lkuCodeType:
description: >-
Lookup code type representing this LKU code, further classifying it
into a group indicating how the code will be used
$ref: '#/components/schemas/lkuCodeType'
displayOrder:
description: Display order
type: integer
format: int64
lkuCodeType:
description: >-
Lookup code type further showing how the lookup codes within this type
will be used.
type: object
properties:
description:
description: Description of the LKU Code Type
type: string
lkuCodeTypeId:
description: Unique ID for this LKU Code Type
type: integer
format: int64
codeType:
description: Unique text code type that represents this LKU Code
type: string
project:
description: >-
Top-level TechPort object representing a NASA technology project and its
associated data.
type: object
properties:
title:
description: Title of the project.
type: string
description:
description: A detailed description of the project.
type: string
projectId:
description: Unique identifier for the project.
type: integer
format: int64
lastUpdated:
description: >-
ISO 8601 full-date in the format YYYY-MM-DD describing the last time
this project was updated.
type: string
format: date
acronym:
description: Abbreviated name of the project.
type: string
statusDescription:
description: >-
Indicates whether the project is currently active, completed, or
canceled.
type: string
benefits:
description: >-
Describes the benefits offered to NASA funded and planned missions,
unfunded or planned missions, commercial space industry, and to the
nation.
type: string
startDateString:
description: The month and year the project was authorized to proceed.
type: string
endDateString:
description: The month and year the project is expected to complete its work.
type: string
startTrl:
description: >-
The technology maturity (technology readiness level) of the project
at its beginning.
type: integer
format: int64
currentTrl:
description: >-
The current technology maturity (technology readiness level) of the
project.
type: integer
format: int64
endTrl:
description: >-
The estimated technology maturity (technology readiness level) of
the project at its end.
type: integer
format: int64
primaryTaxonomyNodes:
description: >-
List of primary taxonomy nodes (from the NASA Technology Roadmap)
associated with the project.
type: array
items:
$ref: '#/components/schemas/taxonomyNode'
additionalTaxonomyNodes:
description: >-
List of additional and cross-cutting taxonomy nodes associated with
the project.
type: array
items:
$ref: '#/components/schemas/taxonomyNode'
destinations:
description: >-
List of the NASA destinations the technology on this project helps
achieve.
type: array
items:
$ref: '#/components/schemas/lkuCode'
program:
description: >-
The NASA program that is the primary funding source for this
project.
type: object
$ref: '#/components/schemas/program'
responsibleMd:
description: >-
The NASA Mission Directorate or Office that is the primary funding
source for this project.
type: object
$ref: '#/components/schemas/program'
leadOrganization:
description: >-
The lead NASA Center / Facility or external organization that is
conducting the majority of the work.
type: object
$ref: '#/components/schemas/organization'
supportingOrganizations:
description: >-
The supporting organizations for this project that are conducting
work on the project.
type: array
items:
$ref: '#/components/schemas/organization'
coFundingPartners:
description: >-
Other government agencies, NASA Mission Directoratres, universities,
or commercial entities performing contributing resources to this
project.
type: array
items:
$ref: '#/components/schemas/organization'
statesWithWork:
description: States and territories with people performing work on this project.
type: array
items:
$ref: '#/components/schemas/location'
programDirectors:
description: >-
Names of the Program Directors responsible for the management of
this project.
type: array
items:
$ref: '#/components/schemas/contact'
programManagers:
description: >-
Names of the Program Managers responsible for the management of this
project.
type: array
items:
$ref: '#/components/schemas/contact'
projectManagers:
description: >-
Names of the Project Managers responsible for the management of this
project.
type: array
items:
$ref: '#/components/schemas/contact'
principalInvestigators:
description: >-
Names of the Principal Investigators who are the lead scientists or
engineers for this project.
type: array
items:
$ref: '#/components/schemas/contact'
coInvestigators:
description: >-
Names of the additional investigators who are scientists or
engineers for this project.
type: array
items:
$ref: '#/components/schemas/contact'
website:
description: The URL for the associated website.
type: string
libraryItems:
description: List of library items in the project library.
type: array
items:
$ref: '#/components/schemas/libraryItem'
stiDaas:
description: List of STI DAAs in the project library.
type: array
items:
$ref: '#/components/schemas/libraryItem'
closeoutSummary:
description: The project closeout summary excerpt.
type: string
closeoutDocuments:
description: >-
List of document files or links to the project final report closeout
documentation.
type: array
items:
$ref: '#/components/schemas/libraryItem'
primaryImage:
description: Primary Image for the project.
type: object
$ref: '#/components/schemas/libraryItem'
viewCount:
description: The number of views for the project.
type: integer
format: int64
libraryItem:
description: Represents a specific library item.
type: object
properties:
title:
description: Title of the library item
type: string
description:
description: Description of the library item.
type: string
id:
description: Unique identifier for the library item.
type: integer
format: int64
contentType:
description: Identifies the type of library item, e.g. Image
type: object
$ref: '#/components/schemas/lkuCode'
files:
description: List of files associated with the library item.
type: array
items:
$ref: '#/components/schemas/file'
url:
description: External URL for the library item.
type: string
publishedDateString:
description: Date the library item was published.
type: string
publishedBy:
description: Publisher of the library item.
type: string
file:
description: Represents a file associated with a library item.
type: object
properties:
fileId:
description: Unique identifier for the file.
type: integer
format: int64
url:
description: The TechPort URL at which the file is accessible for download.
type: string
fileSize:
description: The size of the file in bytes.
type: integer
format: int64
fileExtension:
description: The file extension for the file.
type: string
fileName:
description: The file name.
type: string
ProjectListAvailableIdsResponse:
type: object
properties:
id:
type: integer
format: int64
lastUpdated:
type: string
ProjectFindMatchingProjectsResponse:
description: List of projects that match the criteria.
type: array
items:
type: object
properties:
title:
type: string
description:
type: string
id:
type: integer
format: int64
OrganizationGetListByNameResponse:
type: object
properties:
organizations:
type: array
items:
$ref: '#/components/schemas/organization'
OrganizationListTypesResponse:
type: object
properties:
organizations:
type: array
items:
$ref: '#/components/schemas/organizationType'
OrganizationGetInformationResponse:
type: object
properties:
organization:
$ref: '#/components/schemas/organization'