All URIs are relative to https://neurostore.org/api
Method | HTTP request | Description |
---|---|---|
annotation_analyses_get | GET /annotation-analyses/ | Get annotation analyses |
annotation_analyses_id_get | GET /annotation-analyses/{id} | Your GET endpoint |
annotation_analyses_id_put | PUT /annotation-analyses/{id} | Your PUT endpoint |
annotation_analyses_post | POST /annotation-analyses/ | Your POST endpoint |
annotations_get | GET /annotations/ | Your GET endpoint |
annotations_id_delete | DELETE /annotations/{id} | DELETE an annotation |
annotations_id_get | GET /annotations/{id} | Your GET endpoint |
annotations_id_put | PUT /annotations/{id} | Update an annotation |
annotations_post | POST /annotations/ | Post Annotation |
NoteCollectionList annotation_analyses_get()
Get annotation analyses
import time
import os
import neurostore_sdk
from neurostore_sdk.models.note_collection_list import NoteCollectionList
from neurostore_sdk.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://neurostore.org/api
# See configuration.py for a list of all supported configuration parameters.
configuration = neurostore_sdk.Configuration(
host = "https://neurostore.org/api"
)
# Enter a context with an instance of the API client
with neurostore_sdk.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = neurostore_sdk.AnnotationsApi(api_client)
try:
# Get annotation analyses
api_response = api_instance.annotation_analyses_get()
print("The response of AnnotationsApi->annotation_analyses_get:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling AnnotationsApi->annotation_analyses_get: %s\n" % e)
This endpoint does not need any parameter.
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
2XX | Success | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
NoteCollectionReturn annotation_analyses_id_get(id)
Your GET endpoint
- Bearer Authentication (JSON-Web-Token):
import time
import os
import neurostore_sdk
from neurostore_sdk.models.note_collection_return import NoteCollectionReturn
from neurostore_sdk.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://neurostore.org/api
# See configuration.py for a list of all supported configuration parameters.
configuration = neurostore_sdk.Configuration(
host = "https://neurostore.org/api"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure Bearer authorization: JSON-Web-Token
configuration = neurostore_sdk.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with neurostore_sdk.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = neurostore_sdk.AnnotationsApi(api_client)
id = 'id_example' # str |
try:
# Your GET endpoint
api_response = api_instance.annotation_analyses_id_get(id)
print("The response of AnnotationsApi->annotation_analyses_id_get:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling AnnotationsApi->annotation_analyses_id_get: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | str |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
NoteCollectionReturn annotation_analyses_id_put(id, note_collection_request=note_collection_request)
Your PUT endpoint
- Bearer Authentication (JSON-Web-Token):
import time
import os
import neurostore_sdk
from neurostore_sdk.models.note_collection_request import NoteCollectionRequest
from neurostore_sdk.models.note_collection_return import NoteCollectionReturn
from neurostore_sdk.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://neurostore.org/api
# See configuration.py for a list of all supported configuration parameters.
configuration = neurostore_sdk.Configuration(
host = "https://neurostore.org/api"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure Bearer authorization: JSON-Web-Token
configuration = neurostore_sdk.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with neurostore_sdk.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = neurostore_sdk.AnnotationsApi(api_client)
id = 'id_example' # str |
note_collection_request = neurostore_sdk.NoteCollectionRequest() # NoteCollectionRequest | (optional)
try:
# Your PUT endpoint
api_response = api_instance.annotation_analyses_id_put(id, note_collection_request=note_collection_request)
print("The response of AnnotationsApi->annotation_analyses_id_put:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling AnnotationsApi->annotation_analyses_id_put: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | str | ||
note_collection_request | NoteCollectionRequest | [optional] |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List[NoteCollectionReturn] annotation_analyses_post(note_collection_request=note_collection_request)
Your POST endpoint
This endpoint does not allow for creation, only modification of existing annotation-analyses. If you wish to create an annotation-analysis, post to the annotations endpoint and/or add the analysis to the appropriate study in the studyset, and the annotation-analysis will be created automatically.
- Bearer Authentication (JSON-Web-Token):
import time
import os
import neurostore_sdk
from neurostore_sdk.models.note_collection_request import NoteCollectionRequest
from neurostore_sdk.models.note_collection_return import NoteCollectionReturn
from neurostore_sdk.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://neurostore.org/api
# See configuration.py for a list of all supported configuration parameters.
configuration = neurostore_sdk.Configuration(
host = "https://neurostore.org/api"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure Bearer authorization: JSON-Web-Token
configuration = neurostore_sdk.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with neurostore_sdk.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = neurostore_sdk.AnnotationsApi(api_client)
note_collection_request = [neurostore_sdk.NoteCollectionRequest()] # List[NoteCollectionRequest] | (optional)
try:
# Your POST endpoint
api_response = api_instance.annotation_analyses_post(note_collection_request=note_collection_request)
print("The response of AnnotationsApi->annotation_analyses_post:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling AnnotationsApi->annotation_analyses_post: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
note_collection_request | List[NoteCollectionRequest] | [optional] |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AnnotationList annotations_get(studyset_id=studyset_id)
Your GET endpoint
get annotations for an available studyset
import time
import os
import neurostore_sdk
from neurostore_sdk.models.annotation_list import AnnotationList
from neurostore_sdk.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://neurostore.org/api
# See configuration.py for a list of all supported configuration parameters.
configuration = neurostore_sdk.Configuration(
host = "https://neurostore.org/api"
)
# Enter a context with an instance of the API client
with neurostore_sdk.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = neurostore_sdk.AnnotationsApi(api_client)
studyset_id = 'studyset_id_example' # str | see all annotations connected to this studyset (optional)
try:
# Your GET endpoint
api_response = api_instance.annotations_get(studyset_id=studyset_id)
print("The response of AnnotationsApi->annotations_get:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling AnnotationsApi->annotations_get: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
studyset_id | str | see all annotations connected to this studyset | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
annotations_id_delete(id)
DELETE an annotation
delete annotation
- Bearer Authentication (JSON-Web-Token):
import time
import os
import neurostore_sdk
from neurostore_sdk.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://neurostore.org/api
# See configuration.py for a list of all supported configuration parameters.
configuration = neurostore_sdk.Configuration(
host = "https://neurostore.org/api"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure Bearer authorization: JSON-Web-Token
configuration = neurostore_sdk.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with neurostore_sdk.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = neurostore_sdk.AnnotationsApi(api_client)
id = 'id_example' # str |
try:
# DELETE an annotation
api_instance.annotations_id_delete(id)
except Exception as e:
print("Exception when calling AnnotationsApi->annotations_id_delete: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | str |
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AnnotationReturn annotations_id_get(id, export=export)
Your GET endpoint
get an individual annotation
import time
import os
import neurostore_sdk
from neurostore_sdk.models.annotation_return import AnnotationReturn
from neurostore_sdk.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://neurostore.org/api
# See configuration.py for a list of all supported configuration parameters.
configuration = neurostore_sdk.Configuration(
host = "https://neurostore.org/api"
)
# Enter a context with an instance of the API client
with neurostore_sdk.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = neurostore_sdk.AnnotationsApi(api_client)
id = 'id_example' # str |
export = True # bool | return endpoint data in consumable/readable format (optional)
try:
# Your GET endpoint
api_response = api_instance.annotations_id_get(id, export=export)
print("The response of AnnotationsApi->annotations_id_get:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling AnnotationsApi->annotations_id_get: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | str | ||
export | bool | return endpoint data in consumable/readable format | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AnnotationReturn annotations_id_put(id, annotation_request=annotation_request)
Update an annotation
edit an existing annotation
- Bearer Authentication (JSON-Web-Token):
import time
import os
import neurostore_sdk
from neurostore_sdk.models.annotation_request import AnnotationRequest
from neurostore_sdk.models.annotation_return import AnnotationReturn
from neurostore_sdk.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://neurostore.org/api
# See configuration.py for a list of all supported configuration parameters.
configuration = neurostore_sdk.Configuration(
host = "https://neurostore.org/api"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure Bearer authorization: JSON-Web-Token
configuration = neurostore_sdk.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with neurostore_sdk.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = neurostore_sdk.AnnotationsApi(api_client)
id = 'id_example' # str |
annotation_request = neurostore_sdk.AnnotationRequest() # AnnotationRequest | (optional)
try:
# Update an annotation
api_response = api_instance.annotations_id_put(id, annotation_request=annotation_request)
print("The response of AnnotationsApi->annotations_id_put:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling AnnotationsApi->annotations_id_put: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | str | ||
annotation_request | AnnotationRequest | [optional] |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AnnotationReturn annotations_post(source=source, source_id=source_id, annotation_request=annotation_request)
Post Annotation
Create an annotation
- Bearer Authentication (JSON-Web-Token):
import time
import os
import neurostore_sdk
from neurostore_sdk.models.annotation_request import AnnotationRequest
from neurostore_sdk.models.annotation_return import AnnotationReturn
from neurostore_sdk.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://neurostore.org/api
# See configuration.py for a list of all supported configuration parameters.
configuration = neurostore_sdk.Configuration(
host = "https://neurostore.org/api"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure Bearer authorization: JSON-Web-Token
configuration = neurostore_sdk.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with neurostore_sdk.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = neurostore_sdk.AnnotationsApi(api_client)
source = 'neurostore' # str | the source of the resource you would like to filter/copy from (optional) (default to 'neurostore')
source_id = '1234567890ab' # str | id of the resource you are either filtering/copying on (optional)
annotation_request = neurostore_sdk.AnnotationRequest() # AnnotationRequest | (optional)
try:
# Post Annotation
api_response = api_instance.annotations_post(source=source, source_id=source_id, annotation_request=annotation_request)
print("The response of AnnotationsApi->annotations_post:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling AnnotationsApi->annotations_post: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
source | str | the source of the resource you would like to filter/copy from | [optional] [default to 'neurostore'] |
source_id | str | id of the resource you are either filtering/copying on | [optional] |
annotation_request | AnnotationRequest | [optional] |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]