-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.meshrc.yaml
257 lines (257 loc) · 10.2 KB
/
.meshrc.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
sources:
- name: CZIDGQL
handler:
graphql:
endpoint: ${API_URL}/graphql
source: ./sources/czid-schema.graphql
operationHeaders:
Cookie: "{context.headers['cookie']}"
- name: NextGenEntities
handler:
graphql:
endpoint: ${NEXTGEN_ENTITIES_URL}/graphql
source: ./sources/nextgen-entities-schema.graphql
operationHeaders:
Cookie: "{context.headers['authorization']}"
Authorization: "{context.headers.authorization}"
- name: NextGenWorkflows
handler:
graphql:
endpoint: ${NEXTGEN_WORKFLOWS_URL}/graphql
source: ./sources/nextgen-workflows-schema.graphql
operationHeaders:
Cookie: "{context.headers['authorization']}"
Authorization: "{context.headers.authorization}"
- name: CZIDREST
handler:
jsonSchema:
endpoint: ${API_URL}/
operations:
- type: Query
field: adminSamples
path: /samples/index_v2.json
method: GET
requestSchema: ./json-schemas/adminSamplesRequest.json
responseSchema: ./json-schemas/adminSamplesResponse.json
responseTypeName: adminSamples
- type: Query
field: adminWorkflowRuns
path: /workflow_runs.json
method: GET
requestSchema: ./json-schemas/adminWorkflowRunsRequest.json
responseSchema: ./json-schemas/adminWorkflowRunsResponse.json
responseTypeName: adminWorkflowRuns
- type: Query
field: AmrDeprecatedResults
path: /samples/{args.sampleId}/amr.json
method: GET
responseSchema: ./json-schemas/amrDeprecatedResults.json
responseTypeName: AmrDeprecatedResults
headers:
Cookie: "{context.headers['cookie']}"
- type: Query
field: AmrWorkflowResults
path: /workflow_runs/{args.workflowRunId}/results
method: GET
responseSchema: ./json-schemas/amrWorkflowResults.json
responseTypeName: AmrWorkflowResults
- type: Query
field: Background
path: /pub/{args.snapshotLinkId}/backgrounds.json
method: GET
responseSchema: ./json-schemas/snapshotBackground.json
responseTypeName: Background
- type: Query
field: fedBulkDownloads
path: /bulk_downloads?searchBy=${searchBy}&n=${limit}
method: GET
requestSample: { searchBy: "string to search", limit: 10 }
responseSchema: ./json-schemas/bulkDownloads.json
responseTypeName: fedBulkDownloads
- type: Query
field: BulkDownloadCGOverview
path: /bulk_downloads
method: POST
requestSchema: ./json-schemas/createBulkDownloadCSV.json
responseSchema: ./json-schemas/cgOverview.json
responseTypeName: ConsensusGenomeOverviewRows
- type: Query
field: fedConsensusGenomes
method: GET
path: /workflow_runs.json
requestSchema: ./json-schemas/consensusGenomesRequest.json
responseSchema: ./json-schemas/consensusGenomesResponse.json
responseTypeName: fedConsensusGenomes
- type: Query
field: ConsensusGenomeWorkflowResults
path: /workflow_runs/{args.workflowRunId}/results
method: GET
responseSchema: ./json-schemas/consensusGenomeWorkflowResults.json
responseTypeName: ConsensusGenomeWorkflowResults
- type: Query
field: MetadataFields
path: /pub/{args.snapshotLinkId}/samples/metadata_fields
method: POST
requestSchema: ./json-schemas/sampleArray.json
responseSchema: ./json-schemas/metadataFields.json
responseTypeName: MetadataFields
headers:
Cookie: "{context.headers['cookie']}"
- type: Query
field: SampleMetadata
path: /pub/{args.snapshotLinkId}/samples/{args.sampleId}/metadata
method: GET
requestSample: { pipelineVersion: "8.0" }
responseSchema: ./json-schemas/sampleMetadata.json
responseTypeName: SampleMetadata
- type: Query
field: SampleForReport
method: GET
path: /pub/{args.snapshotLinkId}/samples/{args.railsSampleId}.json
responseSchema: ./json-schemas/sampleForReportResponse.json
responseTypeName: SampleForReport
- type: Query
field: fedSequencingReads
method: GET
path: /workflow_runs.json
requestSchema: ./json-schemas/sequencingReadsRequest.json
responseSchema: ./json-schemas/sequencingReadsResponse.json
responseTypeName: fedSequencingReads
- type: Query
field: ValidateUserCanDeleteObjects
path: /samples/validate_user_can_delete_objects.json
method: POST
requestSample:
{
"selectedIds": [28114, 28151],
"selectedIdsStrings": ["28114", "28151"],
"workflow": "short-read-mngs",
"authenticityToken": "token",
}
responseSchema: ./json-schemas/validateUsersCanDeleteObjects.json
responseTypeName: ValidateUserCanDeleteObjects
- type: Query
field: fedWorkflowRuns
path: /workflow_runs.json
method: POST
requestSchema: ./json-schemas/workflowRunsRequest.json
responseSchema: ./json-schemas/workflowRunsResponse.json
responseTypeName: fedWorkflowRuns
- type: Query
field: fedWorkflowRunsAggregate
path: /projects.json
method: GET
requestSchema: ./json-schemas/workflowRunsAggregateRequest.json
responseSchema: ./json-schemas/workflowRunsAggregateResponse.json
responseTypeName: fedWorkflowRunsAggregate
- type: Query
field: fedWorkflowRunsAggregateTotalCount
path: /samples/stats.json
method: GET
requestSchema: ./json-schemas/fedWorkflowRunsAggregateTotalCountRequest.json
responseSchema: ./json-schemas/fedWorkflowRunsAggregateTotalCountResponse.json
responseTypeName: fedWorkflowRunsAggregateTotalCount
- type: Query
field: ZipLink
path: /workflow_runs/{args.workflowRunId}/zip_link.json
method: GET
responseSchema: ./json-schemas/zipLink.json
responseTypeName: ZipLink
- type: Mutation
field: CreateBulkDownload
path: /bulk_download
method: POST
requestSchema: ./json-schemas/createBulkDownload.json
responseTypeName: BulkDownload
- type: Mutation
field: createAsyncBulkDownload
path: /bulk_download
method: POST
requestSchema: ./json-schemas/createBulkDownload.json
responseSchema: ./json-schemas/createBulkDownloadResponse.json
responseTypeName: fedCreateBulkDownload
- type: Mutation
field: DeleteSamples
path: /samples/bulk_delete
method: POST
requestSample:
{
"ids": [1],
"idsStrings": ["1"],
"workflow": "short-read-mngs",
"authenticityToken": "token",
}
responseSchema: ./json-schemas/deleteSamples.json
responseTypeName: DeleteSamples
- type: Mutation
field: UpdateSampleNotes
path: /samples/{args.sampleId}/save_metadata
method: POST
requestSchema: ./json-schemas/updateMetadataSimple.json
responseSchema: ./json-schemas/updateSampleNotes.json
responseTypeName: UpdateSampleNotes
headers:
Cookie: "{context.headers['cookie']}"
- type: Mutation
field: UpdateSampleName
path: /samples/{args.sampleId}/save_metadata
method: POST
requestSchema: ./json-schemas/updateMetadataSimple.json
responseSchema: ./json-schemas/updateSampleName.json
responseTypeName: UpdateSampleName
headers:
Cookie: "{context.headers['cookie']}"
- type: Mutation
field: KickoffWGSWorkflow
path: /samples/{args.sampleId}/kickoff_workflow
method: POST
requestSample:
{
"inputs_json":
{
"accession_id": "KX882832.1",
"accession_name": "Hubei mosquito virus 2 strain mosZJ35453 segment 1 hypothetical protein 1 and hypothetical protein 2 genes, complete cds",
"taxon_id": "1922926",
"taxon_name": "Menispermaceae",
"alignment_config_name": "config_name",
"technology": "Illumina",
},
"workflow": "amr",
"authenticityToken": "token",
}
responseSchema: ./json-schemas/kickoffWorkflow.json
responseTypeName: KickoffWGSWorkflow
headers:
Cookie: "{context.headers['cookie']}"
- type: Mutation
field: UpdateMetadata
path: /samples/{args.sampleId}/save_metadata_v2
method: POST
requestSchema: ./json-schemas/updateMetadata.json
responseSchema: ./json-schemas/updateMetadataResponse.json
responseTypeName: UpdateMetadataReponse
headers:
Cookie: "{context.headers['cookie']}"
transforms:
- namingConvention:
typeNames: camelCase
fieldNames: camelCase
additionalTypeDefs: |
type GraphQLFederationVersion {
version: String
gitCommit: String
}
extend type Query {
GraphQLFederationVersion: GraphQLFederationVersion
}
additionalResolvers:
- ./resolvers.ts
plugins:
- csrfPrevention:
requestHeaders: ["x-graphql-yoga-csrf"]
serve:
port: 4444
endpoint: "/graphqlfed"
playground: true
cors:
origin: "${ALLOWED_CORS_ORIGINS}"