Skip to content

Commit

Permalink
rebuilt api examples from a clean test db
Browse files Browse the repository at this point in the history
  • Loading branch information
stuzart committed Jun 20, 2024
1 parent 7a01ef8 commit fc4bfea
Show file tree
Hide file tree
Showing 117 changed files with 1,949 additions and 1,447 deletions.
18 changes: 9 additions & 9 deletions public/api/examples/assayPatch.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"data": {
"type": "assays",
"id": "52",
"id": "112",
"attributes": {
"title": "A Maximal Assay",
"assay_class": {
Expand All @@ -20,7 +20,7 @@
"permissions": [
{
"resource": {
"id": "343",
"id": "1115",
"type": "projects"
},
"access": "manage"
Expand All @@ -34,54 +34,54 @@
"relationships": {
"study": {
"data": {
"id": "57",
"id": "143",
"type": "studies"
}
},
"publications": {
"data": [
{
"id": "24",
"id": "46",
"type": "publications"
}
]
},
"organisms": {
"data": [
{
"id": "13",
"id": "64",
"type": "organisms"
}
]
},
"sops": {
"data": [
{
"id": "22",
"id": "80",
"type": "sops"
}
]
},
"data_files": {
"data": [
{
"id": "18",
"id": "58",
"type": "data_files"
}
]
},
"documents": {
"data": [
{
"id": "32",
"id": "103",
"type": "documents"
}
]
},
"creators": {
"data": [
{
"id": "328",
"id": "951",
"type": "people"
}
]
Expand Down
45 changes: 25 additions & 20 deletions public/api/examples/assayPatchResponse.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"data": {
"id": "52",
"id": "112",
"type": "assays",
"attributes": {
"policy": {
"access": "download",
"permissions": [
{
"resource": {
"id": "343",
"id": "1115",
"type": "projects"
},
"access": "manage"
Expand Down Expand Up @@ -43,10 +43,10 @@
],
"creators": [
{
"profile": "/people/328",
"profile": "/people/951",
"family_name": "Last",
"given_name": "Person272",
"affiliation": "An Institution: 330",
"given_name": "Person763",
"affiliation": "An Institution: 978",
"orcid": null
}
]
Expand All @@ -55,23 +55,23 @@
"creators": {
"data": [
{
"id": "328",
"id": "951",
"type": "people"
}
]
},
"submitter": {
"data": [
{
"id": "328",
"id": "951",
"type": "people"
}
]
},
"organisms": {
"data": [
{
"id": "13",
"id": "64",
"type": "organisms"
}
]
Expand All @@ -84,39 +84,44 @@
"people": {
"data": [
{
"id": "328",
"id": "951",
"type": "people"
}
]
},
"projects": {
"data": [
{
"id": "343",
"id": "1115",
"type": "projects"
}
]
},
"investigation": {
"data": {
"id": "59",
"id": "152",
"type": "investigations"
}
},
"study": {
"data": {
"id": "57",
"id": "143",
"type": "studies"
}
},
"data_files": {
"data": [
{
"id": "18",
"id": "58",
"type": "data_files"
}
]
},
"samples": {
"data": [

]
},
"models": {
"data": [

Expand All @@ -125,15 +130,15 @@
"sops": {
"data": [
{
"id": "22",
"id": "80",
"type": "sops"
}
]
},
"publications": {
"data": [
{
"id": "24",
"id": "46",
"type": "publications"
}
]
Expand All @@ -146,21 +151,21 @@
"documents": {
"data": [
{
"id": "32",
"id": "103",
"type": "documents"
}
]
}
},
"links": {
"self": "/assays/52"
"self": "/assays/112"
},
"meta": {
"created": "2022-06-07T14:13:12.000Z",
"modified": "2022-06-07T14:13:13.000Z",
"created": "2024-06-20T12:31:34.000Z",
"modified": "2024-06-20T12:31:35.000Z",
"api_version": "0.3",
"base_url": "http://localhost:3000",
"uuid": "e3d848d0-c899-013a-0f7e-0a81884ed284"
"uuid": "f44538c0-112e-013d-1f9d-0a81884ed284"
}
},
"jsonapi": {
Expand Down
24 changes: 16 additions & 8 deletions public/api/examples/assayPost.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"permissions": [
{
"resource": {
"id": "293",
"id": "1053",
"type": "projects"
},
"access": "manage"
Expand All @@ -33,54 +33,62 @@
"relationships": {
"study": {
"data": {
"id": "40",
"id": "124",
"type": "studies"
}
},
"publications": {
"data": [
{
"id": "19",
"id": "41",
"type": "publications"
}
]
},
"organisms": {
"data": [
{
"id": "8",
"id": "59",
"type": "organisms"
}
]
},
"sops": {
"data": [
{
"id": "17",
"id": "75",
"type": "sops"
}
]
},
"data_files": {
"data": [
{
"id": "13",
"id": "53",
"type": "data_files"
}
]
},
"samples": {
"data": [
{
"id": "33",
"type": "samples"
}
]
},
"documents": {
"data": [
{
"id": "27",
"id": "98",
"type": "documents"
}
]
},
"creators": {
"data": [
{
"id": "283",
"id": "894",
"type": "people"
}
]
Expand Down
Loading

0 comments on commit fc4bfea

Please sign in to comment.