Skip to content

Commit

Permalink
add requirements.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
Jermiah committed Nov 18, 2023
1 parent 58a75cf commit 2075f9e
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/nbia.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,6 @@ def __init__(self,


def query_api(self, endpoint: NBIA_ENDPOINTS, params: dict = {}) -> dict:
"""
Queries the NBIA API with the specified endpoint and parameters.
Args:
endpoint (NBIA_ENDPOINTS): The endpoint to query.
params (dict, optional): The parameters to include in the query. Defaults to {}.
Returns:
dict: The JSON response from the API.
"""
base_url = "https://services.cancerimagingarchive.net/nbia-api/services/"
query_url = base_url + endpoint.value

Expand Down

0 comments on commit 2075f9e

Please sign in to comment.