Skip to content

Commit 2a6cf97

Browse files
authored
Merge pull request #145 from seanthimons/automated/schema-update
chore: API schema updates detected
2 parents eb697fa + 7fcfff2 commit 2a6cf97

11 files changed

+318
-169
lines changed

pr_body.md

Lines changed: 6 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -3,37 +3,17 @@
33
This PR was automatically generated by the schema check workflow.
44

55
### Changed Files
6-
- `schema/chemi-chet-dev.json`
7-
- `schema/chemi-chet-staging.json`
8-
- `schema/chemi-opera-dev.json`
9-
- `schema/chemi-opera-staging.json`
10-
- `schema/chemi-pfas_cats-dev.json`
11-
- `schema/chemi-pfas_cats-staging.json`
12-
- `schema/chemi-services-dev.json`
6+
- `schema/chemi-amos-dev.json`
7+
- `schema/chemi-amos-staging.json`
8+
- `schema/chemi-arn_cats-dev.json`
9+
- `schema/chemi-ncc_cats-dev.json`
1310
- `schema/chemi-services-staging.json`
1411
- `schema/chemi-webtest-dev.json`
1512
- `schema/chemi-webtest-prod.json`
1613
- `schema/chemi-webtest-staging.json`
1714
- `schema/coverage_baseline.json`
1815

19-
### Endpoint Changes
20-
21-
**Summary:** 2 endpoints added, 1 removed, 1 modified across 2 schemas
22-
23-
24-
#### Breaking Changes
25-
26-
| Schema | Endpoint | Change | Detail |
27-
|--------|----------|--------|--------|
28-
| chemi-chet-staging.json | POST /reaction/reaction_DL | Removed | Endpoint no longer exists |
29-
| chemi-opera-staging.json | POST /api/opera | Modified | body params removed: [smiles] |
30-
31-
#### Non-Breaking Changes
32-
33-
| Schema | Endpoint | Change | Detail |
34-
|--------|----------|--------|--------|
35-
| chemi-chet-staging.json | OPTIONS /reaction/map_DL | Added | New endpoint |
36-
| chemi-chet-staging.json | POST /reaction/reaction_dl | Added | New endpoint |
16+
No endpoint-level changes detected.
3717

3818
### Function Stub Generation
3919
- **Stubs Generated:** 0
@@ -45,11 +25,10 @@ This PR was automatically generated by the schema check workflow.
4525
### API Coverage
4626
| API | Coverage | Endpoints | Functions |
4727
|-----|----------|-----------|-----------|
48-
| CompTox Dashboard (ct_*) | 100.0% | 135 | 145 (-1) |
28+
| CompTox Dashboard (ct_*) | 100.0% | 135 | 145 |
4929
| Cheminformatics (chemi_*) | 98.9% | 186 | 184 |
5030

5131
### Review Checklist
52-
- [ ] **⚠ BREAKING CHANGES detected** — review removed/modified endpoints above
5332
- [ ] Review schema changes for breaking API modifications
5433
- [ ] Review generated function stubs for correctness
5534
- [ ] Check if any existing package functions need updates

schema/chemi-amos-dev.json

Lines changed: 124 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,18 @@
344344
}
345345
}
346346
},
347+
"dtxsids_search_schema": {
348+
"properties": {
349+
"dtxsids": {
350+
"description": "Array of DTXSIDs as strings.",
351+
"example": [
352+
"DTXSID9020112",
353+
"DTXSID2023985"
354+
],
355+
"type": "array"
356+
}
357+
}
358+
},
347359
"entropy_similarity_request": {
348360
"properties": {
349361
"spectrum_1": {
@@ -799,6 +811,22 @@
799811
"summary": "Returns a summary of the records in the database, organized by record types, methodologies, and sources."
800812
}
801813
},
814+
"/api/amos/dtxsids/": {
815+
"post": {
816+
"description": "",
817+
"parameters": [
818+
{
819+
"in": "body",
820+
"name": "body",
821+
"schema": {
822+
"$ref": "#/definitions/dtxsids_search_schema"
823+
}
824+
}
825+
],
826+
"responses": {},
827+
"summary": "Returns substance information and record counts for a list of DTXSIDs."
828+
}
829+
},
802830
"/api/amos/entropy_similarity/": {
803831
"post": {
804832
"description": "",
@@ -1458,7 +1486,7 @@
14581486
],
14591487
"responses": {
14601488
"200": {
1461-
"description": "A JSON object with DTXSIDs as keys and an array of highest found entropy similarity scores as the values. The order of values in the array corresponds to their order in the list of user-submitted spectra. If no spectra were found for a given DTXSID, the DTXSID will map to None."
1489+
"description": "A JSON object with DTXSIDs as keys and an array of dictionaries as the values. Each dictionary contains a similarity score and the spectrum that had that score. The order of values in the array corresponds to their order in the list of user-submitted spectra. If no spectra were found for a given DTXSID, the result will be None instead of a dictionary."
14621490
}
14631491
},
14641492
"summary": "Given a list of DTXSIDs and a list of mass spectra, return the highest similarity score for each combination of"
@@ -1720,6 +1748,66 @@
17201748
"summary": "Returns a list of release notes for AMOS."
17211749
}
17221750
},
1751+
"/api/amos/retrieve_fact_sheets/": {
1752+
"post": {
1753+
"description": "",
1754+
"parameters": [
1755+
{
1756+
"description": "List of fact sheet IDs to return information on.",
1757+
"in": "query",
1758+
"name": "internal_ids",
1759+
"required": false,
1760+
"type": "array of strings"
1761+
}
1762+
],
1763+
"responses": {
1764+
"200": {
1765+
"description": "A list of information on the submitted batch of fact sheets."
1766+
}
1767+
},
1768+
"summary": "Returns information on a batch of fact sheets specified by internal ID."
1769+
}
1770+
},
1771+
"/api/amos/retrieve_product_declarations/": {
1772+
"post": {
1773+
"description": "",
1774+
"parameters": [
1775+
{
1776+
"description": "List of product declaration IDs to return information on.",
1777+
"in": "query",
1778+
"name": "internal_ids",
1779+
"required": false,
1780+
"type": "array of strings"
1781+
}
1782+
],
1783+
"responses": {
1784+
"200": {
1785+
"description": "A list of information on the submitted batch of product declarations."
1786+
}
1787+
},
1788+
"summary": "Returns information on a batch of product declarations specified by internal ID."
1789+
}
1790+
},
1791+
"/api/amos/retrieve_safety_data_sheets/": {
1792+
"post": {
1793+
"description": "",
1794+
"parameters": [
1795+
{
1796+
"description": "List of safety data sheet IDs to return information on.",
1797+
"in": "query",
1798+
"name": "internal_ids",
1799+
"required": false,
1800+
"type": "array of strings"
1801+
}
1802+
],
1803+
"responses": {
1804+
"200": {
1805+
"description": "A list of information on the submitted batch of safety data sheets."
1806+
}
1807+
},
1808+
"summary": "Returns information on a batch of safety data sheets specified by internal ID."
1809+
}
1810+
},
17231811
"/api/amos/safety_data_sheet_keyset_pagination/{limit}": {
17241812
"get": {
17251813
"description": "",
@@ -1814,6 +1902,41 @@
18141902
"summary": "Retrieves a list of records from the ElasticSearch database that contain a searched substring"
18151903
}
18161904
},
1905+
"/api/amos/search_for_document_ids/{record_type}": {
1906+
"post": {
1907+
"description": "matches, and document text.",
1908+
"parameters": [
1909+
{
1910+
"description": "Record type to filter by. Should be either 'Fact Sheet', 'Method', 'Product Declaration', or 'Safety Data Sheet' (capitalization included).",
1911+
"in": "path",
1912+
"name": "record_type",
1913+
"required": true,
1914+
"type": "string"
1915+
},
1916+
{
1917+
"description": "Search query parameters. Exact parameters are still in flux, but generally consist of database field names with values and flags for whether to perform exact matches or not.",
1918+
"in": "query",
1919+
"name": "search_info",
1920+
"required": false,
1921+
"type": "dict"
1922+
},
1923+
{
1924+
"description": "List of field names in search_info that are fields in the record_info table in PostgreSQL.",
1925+
"in": "query",
1926+
"name": "record_info_fields",
1927+
"type": "array of strings"
1928+
},
1929+
{
1930+
"description": "List of field names in search_info that are fields in the fact_sheets table in PostgreSQL.",
1931+
"in": "query",
1932+
"name": "table_fields",
1933+
"type": "array of strings"
1934+
}
1935+
],
1936+
"responses": {},
1937+
"summary": "Runs searches for document IDs that pass a list of submitted filters, including document metadata, substance"
1938+
}
1939+
},
18171940
"/api/amos/spectral_entropy/": {
18181941
"post": {
18191942
"description": "",

schema/chemi-amos-staging.json

Lines changed: 124 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,18 @@
344344
}
345345
}
346346
},
347+
"dtxsids_search_schema": {
348+
"properties": {
349+
"dtxsids": {
350+
"description": "Array of DTXSIDs as strings.",
351+
"example": [
352+
"DTXSID9020112",
353+
"DTXSID2023985"
354+
],
355+
"type": "array"
356+
}
357+
}
358+
},
347359
"entropy_similarity_request": {
348360
"properties": {
349361
"spectrum_1": {
@@ -799,6 +811,22 @@
799811
"summary": "Returns a summary of the records in the database, organized by record types, methodologies, and sources."
800812
}
801813
},
814+
"/api/amos/dtxsids/": {
815+
"post": {
816+
"description": "",
817+
"parameters": [
818+
{
819+
"in": "body",
820+
"name": "body",
821+
"schema": {
822+
"$ref": "#/definitions/dtxsids_search_schema"
823+
}
824+
}
825+
],
826+
"responses": {},
827+
"summary": "Returns substance information and record counts for a list of DTXSIDs."
828+
}
829+
},
802830
"/api/amos/entropy_similarity/": {
803831
"post": {
804832
"description": "",
@@ -1458,7 +1486,7 @@
14581486
],
14591487
"responses": {
14601488
"200": {
1461-
"description": "A JSON object with DTXSIDs as keys and an array of highest found entropy similarity scores as the values. The order of values in the array corresponds to their order in the list of user-submitted spectra. If no spectra were found for a given DTXSID, the DTXSID will map to None."
1489+
"description": "A JSON object with DTXSIDs as keys and an array of dictionaries as the values. Each dictionary contains a similarity score and the spectrum that had that score. The order of values in the array corresponds to their order in the list of user-submitted spectra. If no spectra were found for a given DTXSID, the result will be None instead of a dictionary."
14621490
}
14631491
},
14641492
"summary": "Given a list of DTXSIDs and a list of mass spectra, return the highest similarity score for each combination of"
@@ -1720,6 +1748,66 @@
17201748
"summary": "Returns a list of release notes for AMOS."
17211749
}
17221750
},
1751+
"/api/amos/retrieve_fact_sheets/": {
1752+
"post": {
1753+
"description": "",
1754+
"parameters": [
1755+
{
1756+
"description": "List of fact sheet IDs to return information on.",
1757+
"in": "query",
1758+
"name": "internal_ids",
1759+
"required": false,
1760+
"type": "array of strings"
1761+
}
1762+
],
1763+
"responses": {
1764+
"200": {
1765+
"description": "A list of information on the submitted batch of fact sheets."
1766+
}
1767+
},
1768+
"summary": "Returns information on a batch of fact sheets specified by internal ID."
1769+
}
1770+
},
1771+
"/api/amos/retrieve_product_declarations/": {
1772+
"post": {
1773+
"description": "",
1774+
"parameters": [
1775+
{
1776+
"description": "List of product declaration IDs to return information on.",
1777+
"in": "query",
1778+
"name": "internal_ids",
1779+
"required": false,
1780+
"type": "array of strings"
1781+
}
1782+
],
1783+
"responses": {
1784+
"200": {
1785+
"description": "A list of information on the submitted batch of product declarations."
1786+
}
1787+
},
1788+
"summary": "Returns information on a batch of product declarations specified by internal ID."
1789+
}
1790+
},
1791+
"/api/amos/retrieve_safety_data_sheets/": {
1792+
"post": {
1793+
"description": "",
1794+
"parameters": [
1795+
{
1796+
"description": "List of safety data sheet IDs to return information on.",
1797+
"in": "query",
1798+
"name": "internal_ids",
1799+
"required": false,
1800+
"type": "array of strings"
1801+
}
1802+
],
1803+
"responses": {
1804+
"200": {
1805+
"description": "A list of information on the submitted batch of safety data sheets."
1806+
}
1807+
},
1808+
"summary": "Returns information on a batch of safety data sheets specified by internal ID."
1809+
}
1810+
},
17231811
"/api/amos/safety_data_sheet_keyset_pagination/{limit}": {
17241812
"get": {
17251813
"description": "",
@@ -1814,6 +1902,41 @@
18141902
"summary": "Retrieves a list of records from the ElasticSearch database that contain a searched substring"
18151903
}
18161904
},
1905+
"/api/amos/search_for_document_ids/{record_type}": {
1906+
"post": {
1907+
"description": "matches, and document text.",
1908+
"parameters": [
1909+
{
1910+
"description": "Record type to filter by. Should be either 'Fact Sheet', 'Method', 'Product Declaration', or 'Safety Data Sheet' (capitalization included).",
1911+
"in": "path",
1912+
"name": "record_type",
1913+
"required": true,
1914+
"type": "string"
1915+
},
1916+
{
1917+
"description": "Search query parameters. Exact parameters are still in flux, but generally consist of database field names with values and flags for whether to perform exact matches or not.",
1918+
"in": "query",
1919+
"name": "search_info",
1920+
"required": false,
1921+
"type": "dict"
1922+
},
1923+
{
1924+
"description": "List of field names in search_info that are fields in the record_info table in PostgreSQL.",
1925+
"in": "query",
1926+
"name": "record_info_fields",
1927+
"type": "array of strings"
1928+
},
1929+
{
1930+
"description": "List of field names in search_info that are fields in the fact_sheets table in PostgreSQL.",
1931+
"in": "query",
1932+
"name": "table_fields",
1933+
"type": "array of strings"
1934+
}
1935+
],
1936+
"responses": {},
1937+
"summary": "Runs searches for document IDs that pass a list of submitted filters, including document metadata, substance"
1938+
}
1939+
},
18171940
"/api/amos/spectral_entropy/": {
18181941
"post": {
18191942
"description": "",

0 commit comments

Comments
 (0)