Skip to content

Commit fc4bfea

Browse files
committed
rebuilt api examples from a clean test db
1 parent 7a01ef8 commit fc4bfea

File tree

117 files changed

+1949
-1447
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

117 files changed

+1949
-1447
lines changed

public/api/examples/assayPatch.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"data": {
33
"type": "assays",
4-
"id": "52",
4+
"id": "112",
55
"attributes": {
66
"title": "A Maximal Assay",
77
"assay_class": {
@@ -20,7 +20,7 @@
2020
"permissions": [
2121
{
2222
"resource": {
23-
"id": "343",
23+
"id": "1115",
2424
"type": "projects"
2525
},
2626
"access": "manage"
@@ -34,54 +34,54 @@
3434
"relationships": {
3535
"study": {
3636
"data": {
37-
"id": "57",
37+
"id": "143",
3838
"type": "studies"
3939
}
4040
},
4141
"publications": {
4242
"data": [
4343
{
44-
"id": "24",
44+
"id": "46",
4545
"type": "publications"
4646
}
4747
]
4848
},
4949
"organisms": {
5050
"data": [
5151
{
52-
"id": "13",
52+
"id": "64",
5353
"type": "organisms"
5454
}
5555
]
5656
},
5757
"sops": {
5858
"data": [
5959
{
60-
"id": "22",
60+
"id": "80",
6161
"type": "sops"
6262
}
6363
]
6464
},
6565
"data_files": {
6666
"data": [
6767
{
68-
"id": "18",
68+
"id": "58",
6969
"type": "data_files"
7070
}
7171
]
7272
},
7373
"documents": {
7474
"data": [
7575
{
76-
"id": "32",
76+
"id": "103",
7777
"type": "documents"
7878
}
7979
]
8080
},
8181
"creators": {
8282
"data": [
8383
{
84-
"id": "328",
84+
"id": "951",
8585
"type": "people"
8686
}
8787
]

public/api/examples/assayPatchResponse.json

Lines changed: 25 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
"data": {
3-
"id": "52",
3+
"id": "112",
44
"type": "assays",
55
"attributes": {
66
"policy": {
77
"access": "download",
88
"permissions": [
99
{
1010
"resource": {
11-
"id": "343",
11+
"id": "1115",
1212
"type": "projects"
1313
},
1414
"access": "manage"
@@ -43,10 +43,10 @@
4343
],
4444
"creators": [
4545
{
46-
"profile": "/people/328",
46+
"profile": "/people/951",
4747
"family_name": "Last",
48-
"given_name": "Person272",
49-
"affiliation": "An Institution: 330",
48+
"given_name": "Person763",
49+
"affiliation": "An Institution: 978",
5050
"orcid": null
5151
}
5252
]
@@ -55,23 +55,23 @@
5555
"creators": {
5656
"data": [
5757
{
58-
"id": "328",
58+
"id": "951",
5959
"type": "people"
6060
}
6161
]
6262
},
6363
"submitter": {
6464
"data": [
6565
{
66-
"id": "328",
66+
"id": "951",
6767
"type": "people"
6868
}
6969
]
7070
},
7171
"organisms": {
7272
"data": [
7373
{
74-
"id": "13",
74+
"id": "64",
7575
"type": "organisms"
7676
}
7777
]
@@ -84,39 +84,44 @@
8484
"people": {
8585
"data": [
8686
{
87-
"id": "328",
87+
"id": "951",
8888
"type": "people"
8989
}
9090
]
9191
},
9292
"projects": {
9393
"data": [
9494
{
95-
"id": "343",
95+
"id": "1115",
9696
"type": "projects"
9797
}
9898
]
9999
},
100100
"investigation": {
101101
"data": {
102-
"id": "59",
102+
"id": "152",
103103
"type": "investigations"
104104
}
105105
},
106106
"study": {
107107
"data": {
108-
"id": "57",
108+
"id": "143",
109109
"type": "studies"
110110
}
111111
},
112112
"data_files": {
113113
"data": [
114114
{
115-
"id": "18",
115+
"id": "58",
116116
"type": "data_files"
117117
}
118118
]
119119
},
120+
"samples": {
121+
"data": [
122+
123+
]
124+
},
120125
"models": {
121126
"data": [
122127

@@ -125,15 +130,15 @@
125130
"sops": {
126131
"data": [
127132
{
128-
"id": "22",
133+
"id": "80",
129134
"type": "sops"
130135
}
131136
]
132137
},
133138
"publications": {
134139
"data": [
135140
{
136-
"id": "24",
141+
"id": "46",
137142
"type": "publications"
138143
}
139144
]
@@ -146,21 +151,21 @@
146151
"documents": {
147152
"data": [
148153
{
149-
"id": "32",
154+
"id": "103",
150155
"type": "documents"
151156
}
152157
]
153158
}
154159
},
155160
"links": {
156-
"self": "/assays/52"
161+
"self": "/assays/112"
157162
},
158163
"meta": {
159-
"created": "2022-06-07T14:13:12.000Z",
160-
"modified": "2022-06-07T14:13:13.000Z",
164+
"created": "2024-06-20T12:31:34.000Z",
165+
"modified": "2024-06-20T12:31:35.000Z",
161166
"api_version": "0.3",
162167
"base_url": "http://localhost:3000",
163-
"uuid": "e3d848d0-c899-013a-0f7e-0a81884ed284"
168+
"uuid": "f44538c0-112e-013d-1f9d-0a81884ed284"
164169
}
165170
},
166171
"jsonapi": {

public/api/examples/assayPost.json

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"permissions": [
2020
{
2121
"resource": {
22-
"id": "293",
22+
"id": "1053",
2323
"type": "projects"
2424
},
2525
"access": "manage"
@@ -33,54 +33,62 @@
3333
"relationships": {
3434
"study": {
3535
"data": {
36-
"id": "40",
36+
"id": "124",
3737
"type": "studies"
3838
}
3939
},
4040
"publications": {
4141
"data": [
4242
{
43-
"id": "19",
43+
"id": "41",
4444
"type": "publications"
4545
}
4646
]
4747
},
4848
"organisms": {
4949
"data": [
5050
{
51-
"id": "8",
51+
"id": "59",
5252
"type": "organisms"
5353
}
5454
]
5555
},
5656
"sops": {
5757
"data": [
5858
{
59-
"id": "17",
59+
"id": "75",
6060
"type": "sops"
6161
}
6262
]
6363
},
6464
"data_files": {
6565
"data": [
6666
{
67-
"id": "13",
67+
"id": "53",
6868
"type": "data_files"
6969
}
7070
]
7171
},
72+
"samples": {
73+
"data": [
74+
{
75+
"id": "33",
76+
"type": "samples"
77+
}
78+
]
79+
},
7280
"documents": {
7381
"data": [
7482
{
75-
"id": "27",
83+
"id": "98",
7684
"type": "documents"
7785
}
7886
]
7987
},
8088
"creators": {
8189
"data": [
8290
{
83-
"id": "283",
91+
"id": "894",
8492
"type": "people"
8593
}
8694
]

0 commit comments

Comments
 (0)