From ed975ea2146455b7806553860876bc3501a89746 Mon Sep 17 00:00:00 2001 From: Brianna Dirks <148362578+bridirks@users.noreply.github.com> Date: Tue, 9 Dec 2025 17:07:11 -0500 Subject: [PATCH 1/3] Update chemical.json --- public/docs/chemical.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/docs/chemical.json b/public/docs/chemical.json index 56effe5..41c46c7 100644 --- a/public/docs/chemical.json +++ b/public/docs/chemical.json @@ -8,7 +8,7 @@ "servers": [ { "url": "https://ctx-api-dev.ccte.epa.gov", - "description": "Staging Environment" + "description": "Development Environment" } ], "tags": [ From 5f2503e1deb3000f425cc51bbaef3fab50248eee Mon Sep 17 00:00:00 2001 From: bedirks Date: Thu, 11 Dec 2025 16:27:35 -0500 Subject: [PATCH 2/3] Hide additional chemical endpoints from public view (DEV) #19 --- public/docs/chemical.json | 232 -------------------------------------- 1 file changed, 232 deletions(-) diff --git a/public/docs/chemical.json b/public/docs/chemical.json index 41c46c7..231895c 100644 --- a/public/docs/chemical.json +++ b/public/docs/chemical.json @@ -39,62 +39,9 @@ { "name": "Lit Search Data Resource", "description": "Collection of endpoints containing extra chemical data pertaining to literature and patents." - }, - { - "name": "PubChem to GHS Classification Resource", - "description": "Collection of endpoints to check if GHS classification safety data in available in PubChem." - }, - { - "name": "Wikipedia to GHS Classification Resource", - "description": "Collection of endpoints to check if GHS classification safety data is available on Wikipedia." } ], "paths": { - "/chemical/wikipedia/by-dtxsid/": { - "post": { - "tags": [ - "Wikipedia to GHS Classification Resource" - ], - "summary": "Check for link for a batch of DTXSIDs", - "description": "This endpoint will return Y if Wikipedia has GHS Safety data, otherwise N.", - "operationId": "byBatchDtxsid", - "requestBody": { - "description": "JSON array of DSSTox Substance Identifiers", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "string" - } - }, - "example": "[\"DTXSID7020182\",\"DTXSID9020112\"]" - } - }, - "required": true - }, - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/WikipediaLinkResponse" - } - } - } - } - } - }, - "security": [ - { - "api_key": [] - } - ] - } - }, "/chemical/synonym/search/by-dtxsid/": { "post": { "tags": [ @@ -441,51 +388,6 @@ ] } }, - "/chemical/ghslink/to-dtxsid/": { - "post": { - "tags": [ - "PubChem to GHS Classification Resource" - ], - "summary": "Check for link for a batch of DTXSIDs", - "description": "This endpoint will return Y if Pubchem has GHS Safety data, otherwise N.", - "operationId": "byBatchDtxsid_1", - "requestBody": { - "description": "JSON array of DSSTox Substance Identifiers", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "string" - } - }, - "example": "[\"DTXSID7020182\",\"DTXSID9020112\"]" - } - }, - "required": true - }, - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/GhsLinkResponse" - } - } - } - } - } - }, - "security": [ - { - "api_key": [] - } - ] - } - }, "/chemical/fate/search/by-dtxsid/": { "post": { "tags": [ @@ -768,45 +670,6 @@ ] } }, - "/chemical/wikipedia/by-dtxsid/{dtxsid}": { - "get": { - "tags": [ - "Wikipedia to GHS Classification Resource" - ], - "summary": "Check for link by DTXSID", - "description": "This endpoint will return Y if Wikipedia has GHS Safety data, otherwise N.", - "operationId": "byDtxsid", - "parameters": [ - { - "name": "dtxsid", - "in": "path", - "description": "DSSTox Substance Identifier", - "required": true, - "schema": { - "type": "string" - }, - "example": "DTXSID7020182" - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/WikipediaLinkResponse" - } - } - } - } - }, - "security": [ - { - "api_key": [] - } - ] - } - }, "/chemical/synonym/search/by-dtxsid/{dtxsid}": { "get": { "tags": [ @@ -2218,45 +2081,6 @@ ] } }, - "/chemical/ghslink/to-dtxsid/{dtxsid}": { - "get": { - "tags": [ - "PubChem to GHS Classification Resource" - ], - "summary": "Check for link by DTXSID", - "description": "This endpoint will return Y if Pubchem has GHS Safety data, otherwise N.", - "operationId": "byDtxsid_1", - "parameters": [ - { - "name": "dtxsid", - "in": "path", - "description": "DSSTox Substance Identifier", - "required": true, - "schema": { - "type": "string" - }, - "example": "DTXSID7020182" - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GhsLinkResponse" - } - } - } - } - }, - "security": [ - { - "api_key": [] - } - ] - } - }, "/chemical/file/mol/search/by-dtxsid/{dtxsid}": { "get": { "tags": [ @@ -3000,62 +2824,6 @@ } ] } - }, - "/chemical/all": { - "get": { - "tags": [ - "Chemical Details Resource" - ], - "summary": "Get all data", - "description": "return all chemical details. The next parameter allows pagination for retrieval, but retrieval is limited to batches of 1000 per request. Please consider downloading the DSSTOX database instead accessing this information via API.", - "operationId": "getAllChemicalDetails", - "parameters": [ - { - "name": "next", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "format": "int64", - "default": 1 - } - }, - { - "name": "projection", - "in": "query", - "description": "Specifies if projection is used. Option: all-ids. If omitted, the default ChemicalDetailStandard2 data is returned.", - "required": false, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "type": "string", - "oneOf": [ - { - "$ref": "#/components/schemas/ChemicalDetailStandard2" - }, - { - "$ref": "#/components/schemas/ChemicalDetailAllIds" - } - ] - } - } - } - } - }, - "security": [ - { - "api_key": [] - } - ] - } } }, "components": { From ff4c781bd8a317deff9d4bb340ff252a41a4afbc Mon Sep 17 00:00:00 2001 From: Brianna Dirks <148362578+bridirks@users.noreply.github.com> Date: Thu, 11 Dec 2025 16:40:52 -0500 Subject: [PATCH 3/3] Update chemical.json --- public/docs/chemical.json | 40 --------------------------------------- 1 file changed, 40 deletions(-) diff --git a/public/docs/chemical.json b/public/docs/chemical.json index 231895c..9d5b9e7 100644 --- a/public/docs/chemical.json +++ b/public/docs/chemical.json @@ -2828,17 +2828,6 @@ }, "components": { "schemas": { - "WikipediaLinkResponse": { - "type": "object", - "properties": { - "dtxsid": { - "type": "string" - }, - "safetyUrl": { - "type": "string" - } - } - }, "ChemicalSynonymAll": { "type": "object", "description": "Different types of synonyms for request dtxsid", @@ -3293,20 +3282,6 @@ "masses" ] }, - "GhsLinkResponse": { - "type": "object", - "properties": { - "dtxsid": { - "type": "string" - }, - "isSafetyData": { - "type": "boolean" - }, - "safetyUrl": { - "type": "string" - } - } - }, "ChemicalFateBatchDto": { "type": "object", "properties": { @@ -4274,21 +4249,6 @@ } } }, - "ChemicalDetailAllIds": { - "type": "object", - "properties": { - "id": { - "type": "integer", - "format": "int64" - }, - "dtxcid": { - "type": "string" - }, - "dtxsid": { - "type": "string" - } - } - }, "Link": { "type": "object", "properties": {