generated from ensaremirerol/nextjs-fastapi-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
openapi.json
1 lines (1 loc) · 46.5 KB
/
openapi.json
1
{"openapi":"3.1.0","info":{"title":"FastAPI","version":"0.1.0"},"paths":{"/users/":{"get":{"tags":["users"],"summary":"Get Users","operationId":"get_users_users__get","security":[{"OAuth2PasswordBearer":["admin","curator"]}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UserDocument"},"title":"Response Get Users Users Get"}}}}}},"post":{"tags":["users"],"summary":"Create User","operationId":"create_user_users__post","security":[{"OAuth2PasswordBearer":["admin"]}],"parameters":[{"name":"username","in":"query","required":true,"schema":{"type":"string","title":"Username"}},{"name":"password","in":"query","required":true,"schema":{"type":"string","title":"Password"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"type":"string"},"title":"Roles"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserDocument"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users/{user_id}":{"get":{"tags":["users"],"summary":"Get User By Id","operationId":"get_user_by_id_users__user_id__get","security":[{"OAuth2PasswordBearer":["admin","curator"]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserDocument"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["users"],"summary":"Update User","operationId":"update_user_users__user_id__put","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"username","in":"query","required":true,"schema":{"type":"string","title":"Username"}},{"name":"password","in":"query","required":true,"schema":{"type":"string","title":"Password"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"type":"string"},"title":"Roles"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserDocument"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["users"],"summary":"Delete User","operationId":"delete_user_users__user_id__delete","security":[{"OAuth2PasswordBearer":["admin"]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserDocument"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users/username/{username}":{"get":{"tags":["users"],"summary":"Get User By Username","operationId":"get_user_by_username_users_username__username__get","security":[{"OAuth2PasswordBearer":["admin","curator"]}],"parameters":[{"name":"username","in":"path","required":true,"schema":{"type":"string","title":"Username"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserDocument"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/login":{"post":{"tags":["auth"],"summary":"Login","operationId":"login_auth_login_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_login_auth_login_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JWT"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/authz/{collection}/{document}":{"get":{"tags":["authz"],"summary":"Get Authorization Document","operationId":"get_authorization_document_authz__collection___document__get","security":[{"OAuth2PasswordBearer":["admin","curator"]}],"parameters":[{"name":"collection","in":"path","required":true,"schema":{"type":"string","title":"Collection"}},{"name":"document","in":"path","required":true,"schema":{"type":"string","title":"Document"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthorizationDocument"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/authz/{collection}/{document}/add/{user_id}/{access_level}":{"post":{"tags":["authz"],"summary":"Add User To Resource","operationId":"add_user_to_resource_authz__collection___document__add__user_id___access_level__post","security":[{"OAuth2PasswordBearer":["admin","curator"]}],"parameters":[{"name":"collection","in":"path","required":true,"schema":{"type":"string","title":"Collection"}},{"name":"document","in":"path","required":true,"schema":{"type":"string","title":"Document"}},{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"access_level","in":"path","required":true,"schema":{"type":"string","title":"Access Level"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthorizationDocument"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/authz/{collection}/{document}/remove/{user_id}":{"post":{"tags":["authz"],"summary":"Remove User From Resource","operationId":"remove_user_from_resource_authz__collection___document__remove__user_id__post","security":[{"OAuth2PasswordBearer":["admin","curator"]}],"parameters":[{"name":"collection","in":"path","required":true,"schema":{"type":"string","title":"Collection"}},{"name":"document","in":"path","required":true,"schema":{"type":"string","title":"Document"}},{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthorizationDocument"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/files/{file_id}":{"get":{"tags":["files"],"summary":"Get File Document","operationId":"get_file_document_files__file_id__get","security":[{"OAuth2PasswordBearer":["admin","curator","reader"]}],"parameters":[{"name":"file_id","in":"path","required":true,"schema":{"type":"string","title":"File Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileDocument"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/files/{file_id}/download":{"get":{"tags":["files"],"summary":"Download File","operationId":"download_file_files__file_id__download_get","security":[{"OAuth2PasswordBearer":["admin","curator","reader"]}],"parameters":[{"name":"file_id","in":"path","required":true,"schema":{"type":"string","title":"File Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/files/upload":{"post":{"tags":["files"],"summary":"Upload File","operationId":"upload_file_files_upload_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_file_files_upload_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileDocument"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":["admin"]}]}},"/prefixes/":{"get":{"tags":["prefixes"],"summary":"Get Prefixes","operationId":"get_prefixes_prefixes__get","security":[{"OAuth2PasswordBearer":[]}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PrefixDocument"},"title":"Response Get Prefixes Prefixes Get"}}}}}},"post":{"tags":["prefixes"],"summary":"Create Prefix","operationId":"create_prefix_prefixes__post","security":[{"OAuth2PasswordBearer":["admin","curator"]}],"parameters":[{"name":"prefix","in":"query","required":true,"schema":{"type":"string","title":"Prefix"}},{"name":"uri","in":"query","required":true,"schema":{"type":"string","title":"Uri"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrefixDocument"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/prefixes/{prefix_id}":{"get":{"tags":["prefixes"],"summary":"Get Prefix By Id","operationId":"get_prefix_by_id_prefixes__prefix_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"prefix_id","in":"path","required":true,"schema":{"type":"string","title":"Prefix Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrefixDocument"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["prefixes"],"summary":"Delete Prefix","operationId":"delete_prefix_prefixes__prefix_id__delete","security":[{"OAuth2PasswordBearer":["admin","curator"]}],"parameters":[{"name":"prefix_id","in":"path","required":true,"schema":{"type":"string","title":"Prefix Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrefixDocument"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["prefixes"],"summary":"Update Prefix","operationId":"update_prefix_prefixes__prefix_id__put","security":[{"OAuth2PasswordBearer":["admin","curator"]}],"parameters":[{"name":"prefix_id","in":"path","required":true,"schema":{"type":"string","title":"Prefix Id"}},{"name":"prefix","in":"query","required":true,"schema":{"type":"string","title":"Prefix"}},{"name":"uri","in":"query","required":true,"schema":{"type":"string","title":"Uri"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrefixDocument"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/prefixes/prefix/{prefix}":{"get":{"tags":["prefixes"],"summary":"Get Prefix By Prefix","operationId":"get_prefix_by_prefix_prefixes_prefix__prefix__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"prefix","in":"path","required":true,"schema":{"type":"string","title":"Prefix"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrefixDocument"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/prefixes/uri/{uri}":{"get":{"tags":["prefixes"],"summary":"Get Prefix By Uri","operationId":"get_prefix_by_uri_prefixes_uri__uri__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"uri","in":"path","required":true,"schema":{"type":"string","title":"Uri"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrefixDocument"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ontologies/{ontology_id}":{"get":{"tags":["ontologies"],"summary":"Get Ontologies","operationId":"get_ontologies_ontologies__ontology_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"ontology_id","in":"path","required":true,"schema":{"type":"string","title":"Ontology Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OntologyDocument"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["ontologies"],"summary":"Delete Ontology","operationId":"delete_ontology_ontologies__ontology_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"ontology_id","in":"path","required":true,"schema":{"type":"string","title":"Ontology Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OntologyDocument"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ontologies/":{"post":{"tags":["ontologies"],"summary":"Create Ontology","operationId":"create_ontology_ontologies__post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"name","in":"query","required":true,"schema":{"type":"string","title":"Name"}},{"name":"description","in":"query","required":true,"schema":{"type":"string","title":"Description"}},{"name":"prefix_id","in":"query","required":true,"schema":{"type":"string","title":"Prefix Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_create_ontology_ontologies__post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OntologyDocument"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ontologies/{ontology_id}/file/download":{"get":{"tags":["ontologies"],"summary":"Download Ontology File","operationId":"download_ontology_file_ontologies__ontology_id__file_download_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"ontology_id","in":"path","required":true,"schema":{"type":"string","title":"Ontology Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ontologies/{ontology_id}/classes":{"get":{"tags":["ontologies"],"summary":"Get Ontology Classes","operationId":"get_ontology_classes_ontologies__ontology_id__classes_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"ontology_id","in":"path","required":true,"schema":{"type":"string","title":"Ontology Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OntologyClassDocument"},"title":"Response Get Ontology Classes Ontologies Ontology Id Classes Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ontologies/{ontology_id}/properties":{"get":{"tags":["ontologies"],"summary":"Get Ontology Data Properties","operationId":"get_ontology_data_properties_ontologies__ontology_id__properties_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"ontology_id","in":"path","required":true,"schema":{"type":"string","title":"Ontology Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OntologyPropertyDocument"},"title":"Response Get Ontology Data Properties Ontologies Ontology Id Properties Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ontologies/{ontology_id}/individuals":{"get":{"tags":["ontologies"],"summary":"Get Ontology Individuals","operationId":"get_ontology_individuals_ontologies__ontology_id__individuals_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"ontology_id","in":"path","required":true,"schema":{"type":"string","title":"Ontology Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OntologyIndividualModel"},"title":"Response Get Ontology Individuals Ontologies Ontology Id Individuals Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/sources/":{"get":{"tags":["sources"],"summary":"Get Sources","operationId":"get_sources_sources__get","security":[{"OAuth2PasswordBearer":[]}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SourceDocument"},"title":"Response Get Sources Sources Get"}}}}}},"post":{"tags":["sources"],"summary":"Create Source","operationId":"create_source_sources__post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"name","in":"query","required":true,"schema":{"type":"string","title":"Name"}},{"name":"description","in":"query","required":true,"schema":{"type":"string","title":"Description"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_create_source_sources__post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SourceDocument"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/sources/{source_id}":{"get":{"tags":["sources"],"summary":"Get Source","operationId":"get_source_sources__source_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"source_id","in":"path","required":true,"schema":{"type":"string","title":"Source Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SourceDocument"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["sources"],"summary":"Remove Source","operationId":"remove_source_sources__source_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"source_id","in":"path","required":true,"schema":{"type":"string","title":"Source Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SourceDocument"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["sources"],"summary":"Update Source","operationId":"update_source_sources__source_id__put","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"source_id","in":"path","required":true,"schema":{"type":"string","title":"Source Id"}},{"name":"name","in":"query","required":true,"schema":{"type":"string","title":"Name"}},{"name":"description","in":"query","required":true,"schema":{"type":"string","title":"Description"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SourceDocument"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/sources/{source_id}/file":{"get":{"tags":["sources"],"summary":"Get Source File","operationId":"get_source_file_sources__source_id__file_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"source_id","in":"path","required":true,"schema":{"type":"string","title":"Source Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["sources"],"summary":"Update Source File","operationId":"update_source_file_sources__source_id__file_put","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"source_id","in":"path","required":true,"schema":{"type":"string","title":"Source Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_update_source_file_sources__source_id__file_put"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SourceDocument"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/mappings/":{"post":{"tags":["mappings"],"summary":"Create Mapping","operationId":"create_mapping_mappings__post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"name","in":"query","required":true,"schema":{"type":"string","title":"Name"}},{"name":"description","in":"query","required":true,"schema":{"type":"string","title":"Description"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_create_mapping_mappings__post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MappingDocument"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/mappings/{mapping_id}":{"get":{"tags":["mappings"],"summary":"Get Mapping","operationId":"get_mapping_mappings__mapping_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"mapping_id","in":"path","required":true,"schema":{"type":"string","title":"Mapping Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MappingDocument"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["mappings"],"summary":"Delete Mapping","operationId":"delete_mapping_mappings__mapping_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"mapping_id","in":"path","required":true,"schema":{"type":"string","title":"Mapping Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Response Delete Mapping Mappings Mapping Id Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/mappings/{mapping_id}/revert/{mapping_model_id}":{"post":{"tags":["mappings"],"summary":"Revert Mapping","operationId":"revert_mapping_mappings__mapping_id__revert__mapping_model_id__post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"mapping_id","in":"path","required":true,"schema":{"type":"string","title":"Mapping Id"}},{"name":"mapping_model_id","in":"path","required":true,"schema":{"type":"string","title":"Mapping Model Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MappingDocument"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/mappings/{mapping_id}/save":{"post":{"tags":["mappings"],"summary":"Save Mapping","operationId":"save_mapping_mappings__mapping_id__save_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"mapping_id","in":"path","required":true,"schema":{"type":"string","title":"Mapping Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MappingDocument"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workspaces/":{"get":{"tags":["workspaces"],"summary":"Get All Workspaces","operationId":"get_all_workspaces_workspaces__get","security":[{"OAuth2PasswordBearer":[]}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WorkspaceDocument"},"title":"Response Get All Workspaces Workspaces Get"}}}}}},"post":{"tags":["workspaces"],"summary":"Create Workspace","operationId":"create_workspace_workspaces__post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"name","in":"query","required":true,"schema":{"type":"string","title":"Name"}},{"name":"description","in":"query","required":true,"schema":{"type":"string","title":"Description"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceDocument"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workspaces/{workspace_id}":{"get":{"tags":["workspaces"],"summary":"Get Workspace","operationId":"get_workspace_workspaces__workspace_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceDocument"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["workspaces"],"summary":"Update Workspace","operationId":"update_workspace_workspaces__workspace_id__put","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"name","in":"query","required":true,"schema":{"type":"string","title":"Name"}},{"name":"description","in":"query","required":true,"schema":{"type":"string","title":"Description"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceDocument"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["workspaces"],"summary":"Delete Workspace","operationId":"delete_workspace_workspaces__workspace_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceDocument"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workspaces/{workspace_id}/mapping":{"post":{"tags":["workspaces"],"summary":"Create Mapping","operationId":"create_mapping_workspaces__workspace_id__mapping_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"name","in":"query","required":true,"schema":{"type":"string","title":"Name"}},{"name":"description","in":"query","required":true,"schema":{"type":"string","title":"Description"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_create_mapping_workspaces__workspace_id__mapping_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceDocument"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workspaces/{workspace_id}/mapping/{mapping_id}":{"delete":{"tags":["workspaces"],"summary":"Delete Mapping","operationId":"delete_mapping_workspaces__workspace_id__mapping__mapping_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"mapping_id","in":"path","required":true,"schema":{"type":"string","title":"Mapping Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceDocument"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workspaces/{workspace_id}/prefix/":{"post":{"tags":["workspaces"],"summary":"Add Prefix","operationId":"add_prefix_workspaces__workspace_id__prefix__post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"prefix","in":"query","required":true,"schema":{"type":"string","title":"Prefix"}},{"name":"uri","in":"query","required":true,"schema":{"type":"string","title":"Uri"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceDocument"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workspaces/{workspace_id}/prefix/{prefix_id}":{"delete":{"tags":["workspaces"],"summary":"Delete Prefix","operationId":"delete_prefix_workspaces__workspace_id__prefix__prefix_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"prefix_id","in":"path","required":true,"schema":{"type":"string","title":"Prefix Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceDocument"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workspaces/{workspace_id}/ontology/":{"post":{"tags":["workspaces"],"summary":"Add Ontology","operationId":"add_ontology_workspaces__workspace_id__ontology__post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"prefix_id","in":"query","required":true,"schema":{"type":"string","title":"Prefix Id"}},{"name":"name","in":"query","required":true,"schema":{"type":"string","title":"Name"}},{"name":"description","in":"query","required":true,"schema":{"type":"string","title":"Description"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_add_ontology_workspaces__workspace_id__ontology__post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceDocument"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workspaces/{workspace_id}/ontology/{ontology_id}":{"delete":{"tags":["workspaces"],"summary":"Delete Ontology","operationId":"delete_ontology_workspaces__workspace_id__ontology__ontology_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"ontology_id","in":"path","required":true,"schema":{"type":"string","title":"Ontology Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workspaces/{workspace_id}/ontology/{ontology_id}/assign-prefix":{"post":{"tags":["workspaces"],"summary":"Assign Prefix","operationId":"assign_prefix_workspaces__workspace_id__ontology__ontology_id__assign_prefix_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"ontology_id","in":"path","required":true,"schema":{"type":"string","title":"Ontology Id"}},{"name":"prefix_id","in":"query","required":true,"schema":{"type":"string","title":"Prefix Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AuthorizationDocument":{"properties":{"_id":{"anyOf":[{"type":"string","example":"5eb7cf5a86d9755df3a6c593"},{"type":"null"}],"title":" Id","description":"MongoDB document ObjectID"},"collection":{"type":"string","title":"Collection"},"object_id":{"type":"string","title":"Object Id","example":"5eb7cf5a86d9755df3a6c593"},"records":{"items":{"$ref":"#/components/schemas/AuthorizationRecordModel"},"type":"array","title":"Records"}},"type":"object","title":"AuthorizationDocument"},"AuthorizationRecordModel":{"properties":{"user_id":{"type":"string","title":"User Id","example":"5eb7cf5a86d9755df3a6c593"},"access_level":{"type":"string","title":"Access Level"}},"type":"object","required":["access_level"],"title":"AuthorizationRecordModel"},"Body_add_ontology_workspaces__workspace_id__ontology__post":{"properties":{"file":{"type":"string","format":"binary","title":"File"}},"type":"object","required":["file"],"title":"Body_add_ontology_workspaces__workspace_id__ontology__post"},"Body_create_mapping_mappings__post":{"properties":{"file":{"type":"string","format":"binary","title":"File"}},"type":"object","required":["file"],"title":"Body_create_mapping_mappings__post"},"Body_create_mapping_workspaces__workspace_id__mapping_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"}},"type":"object","required":["file"],"title":"Body_create_mapping_workspaces__workspace_id__mapping_post"},"Body_create_ontology_ontologies__post":{"properties":{"file":{"type":"string","format":"binary","title":"File"}},"type":"object","required":["file"],"title":"Body_create_ontology_ontologies__post"},"Body_create_source_sources__post":{"properties":{"file":{"type":"string","format":"binary","title":"File"}},"type":"object","required":["file"],"title":"Body_create_source_sources__post"},"Body_login_auth_login_post":{"properties":{"grant_type":{"anyOf":[{"type":"string","pattern":"password"},{"type":"null"}],"title":"Grant Type"},"username":{"type":"string","title":"Username"},"password":{"type":"string","title":"Password"},"scope":{"type":"string","title":"Scope","default":""},"client_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Id"},"client_secret":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Secret"}},"type":"object","required":["username","password"],"title":"Body_login_auth_login_post"},"Body_update_source_file_sources__source_id__file_put":{"properties":{"file":{"type":"string","format":"binary","title":"File"}},"type":"object","required":["file"],"title":"Body_update_source_file_sources__source_id__file_put"},"Body_upload_file_files_upload_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_file_files_upload_post"},"EdgeDataModel":{"properties":{"label":{"type":"string","title":"Label"},"full_uri":{"type":"string","title":"Full Uri"},"predicate_type":{"$ref":"#/components/schemas/EdgeType"}},"type":"object","required":["label","full_uri","predicate_type"],"title":"EdgeDataModel"},"EdgeModel":{"properties":{"id":{"type":"string","title":"Id"},"source":{"type":"string","title":"Source"},"target":{"type":"string","title":"Target"},"data":{"$ref":"#/components/schemas/EdgeDataModel"}},"type":"object","required":["id","source","target","data"],"title":"EdgeModel"},"EdgeType":{"type":"string","enum":["data_property","object_property"],"title":"EdgeType"},"FileDocument":{"properties":{"_id":{"anyOf":[{"type":"string","example":"5eb7cf5a86d9755df3a6c593"},{"type":"null"}],"title":" Id","description":"MongoDB document ObjectID"},"name":{"type":"string","title":"Name"},"byte_size":{"type":"integer","title":"Byte Size"},"extension":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Extension"},"md5":{"type":"string","title":"Md5"},"path":{"type":"string","format":"path","title":"Path"}},"type":"object","required":["name","byte_size","extension","md5","path"],"title":"FileDocument"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"JWT":{"properties":{"access_token":{"type":"string","title":"Access Token"},"token_type":{"type":"string","title":"Token Type","default":"bearer"}},"type":"object","required":["access_token"],"title":"JWT"},"LiteralNodeDataModel":{"properties":{"rdf_type":{"type":"string","title":"Rdf Type"},"pattern":{"type":"string","title":"Pattern"}},"type":"object","required":["rdf_type","pattern"],"title":"LiteralNodeDataModel"},"MappingDocument":{"properties":{"_id":{"anyOf":[{"type":"string","example":"5eb7cf5a86d9755df3a6c593"},{"type":"null"}],"title":" Id","description":"MongoDB document ObjectID"},"name":{"type":"string","title":"Name"},"source":{"properties":{"id":{"type":"string","title":"Id"},"collection":{"type":"string","title":"Collection"}},"type":"object","required":["id","collection"],"title":"Source"},"mappings":{"items":{"properties":{"id":{"type":"string","title":"Id"},"collection":{"type":"string","title":"Collection"}},"type":"object","required":["id","collection"]},"type":"array","title":"Mappings"},"current_mapping":{"properties":{"id":{"type":"string","title":"Id"},"collection":{"type":"string","title":"Collection"}},"type":"object","required":["id","collection"],"title":"Current Mapping"},"notes":{"items":{"$ref":"#/components/schemas/NodeNoteModel"},"type":"array","title":"Notes","default":[]}},"type":"object","required":["name","source","mappings","current_mapping"],"title":"MappingDocument"},"NodeModel":{"properties":{"id":{"type":"string","title":"Id"},"type":{"$ref":"#/components/schemas/NodeType"},"position":{"$ref":"#/components/schemas/PositionModel"},"width":{"type":"integer","title":"Width"},"height":{"type":"integer","title":"Height"},"data":{"anyOf":[{"$ref":"#/components/schemas/ObjectNodeDataModel"},{"$ref":"#/components/schemas/LiteralNodeDataModel"},{"$ref":"#/components/schemas/UriRefNodeDataModel"}],"title":"Data"}},"type":"object","required":["id","type","position","width","height","data"],"title":"NodeModel"},"NodeNoteModel":{"properties":{"id":{"type":"string","title":"Id"},"note":{"type":"string","title":"Note"}},"type":"object","required":["id","note"],"title":"NodeNoteModel","description":"Add note to node"},"NodeType":{"type":"string","enum":["object","literal","uriref"],"title":"NodeType"},"ObjectNodeDataModel":{"properties":{"label":{"type":"string","title":"Label","default":""},"rdf_type":{"type":"string","title":"Rdf Type"},"is_blank_node":{"type":"boolean","title":"Is Blank Node","default":false},"pattern_prefix":{"type":"string","title":"Pattern Prefix"},"pattern":{"type":"string","title":"Pattern"}},"type":"object","required":["rdf_type","pattern_prefix","pattern"],"title":"ObjectNodeDataModel"},"OntologyClassDocument":{"properties":{"_id":{"anyOf":[{"type":"string","example":"5eb7cf5a86d9755df3a6c593"},{"type":"null"}],"title":" Id","description":"MongoDB document ObjectID"},"full_uri":{"type":"string","title":"Full Uri","example":"http://example.com/"},"ontology_id":{"type":"string","title":"Ontology Id","example":"5eb7cf5a86d9755df3a6c593"},"label":{"type":"string","title":"Label"},"description":{"type":"string","title":"Description"},"is_deprecated":{"type":"boolean","title":"Is Deprecated"}},"type":"object","required":["ontology_id","label","description","is_deprecated"],"title":"OntologyClassDocument"},"OntologyDocument":{"properties":{"_id":{"anyOf":[{"type":"string","example":"5eb7cf5a86d9755df3a6c593"},{"type":"null"}],"title":" Id","description":"MongoDB document ObjectID"},"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"file":{"properties":{"id":{"type":"string","title":"Id"},"collection":{"type":"string","title":"Collection"}},"type":"object","required":["id","collection"],"title":"File"},"prefix":{"properties":{"id":{"type":"string","title":"Id"},"collection":{"type":"string","title":"Collection"}},"type":"object","required":["id","collection"],"title":"Prefix"}},"type":"object","required":["name","description","file","prefix"],"title":"OntologyDocument"},"OntologyIndividualModel":{"properties":{"_id":{"anyOf":[{"type":"string","example":"5eb7cf5a86d9755df3a6c593"},{"type":"null"}],"title":" Id","description":"MongoDB document ObjectID"},"full_uri":{"type":"string","title":"Full Uri","example":"http://example.com/"},"ontology_id":{"type":"string","title":"Ontology Id","example":"5eb7cf5a86d9755df3a6c593"},"label":{"type":"string","title":"Label"},"description":{"type":"string","title":"Description"},"is_deprecated":{"type":"boolean","title":"Is Deprecated"}},"type":"object","required":["ontology_id","label","description","is_deprecated"],"title":"OntologyIndividualModel"},"OntologyPropertyDocument":{"properties":{"_id":{"anyOf":[{"type":"string","example":"5eb7cf5a86d9755df3a6c593"},{"type":"null"}],"title":" Id","description":"MongoDB document ObjectID"},"full_uri":{"type":"string","title":"Full Uri","example":"http://example.com/"},"ontology_id":{"type":"string","title":"Ontology Id","example":"5eb7cf5a86d9755df3a6c593"},"label":{"type":"string","title":"Label"},"description":{"type":"string","title":"Description"},"is_deprecated":{"type":"boolean","title":"Is Deprecated"},"property_type":{"$ref":"#/components/schemas/PropertyType"},"property_range":{"items":{"type":"string","example":"http://example.com/"},"type":"array","title":"Property Range"},"property_domain":{"items":{"type":"string","example":"http://example.com/"},"type":"array","title":"Property Domain"}},"type":"object","required":["ontology_id","label","description","is_deprecated","property_type","property_range","property_domain"],"title":"OntologyPropertyDocument"},"PositionModel":{"properties":{"x":{"type":"number","title":"X"},"y":{"type":"number","title":"Y"}},"type":"object","required":["x","y"],"title":"PositionModel"},"PrefixDocument":{"properties":{"_id":{"anyOf":[{"type":"string","example":"5eb7cf5a86d9755df3a6c593"},{"type":"null"}],"title":" Id","description":"MongoDB document ObjectID"},"prefix":{"type":"string","title":"Prefix"},"uri":{"type":"string","title":"Uri","example":"http://example.com/"}},"type":"object","title":"PrefixDocument"},"PropertyType":{"type":"string","enum":["object_property","data_property"],"title":"PropertyType"},"SaveRequest":{"properties":{"nodes":{"items":{"$ref":"#/components/schemas/NodeModel"},"type":"array","title":"Nodes"},"edges":{"items":{"$ref":"#/components/schemas/EdgeModel"},"type":"array","title":"Edges"}},"type":"object","required":["nodes","edges"],"title":"SaveRequest"},"SourceDocument":{"properties":{"_id":{"anyOf":[{"type":"string","example":"5eb7cf5a86d9755df3a6c593"},{"type":"null"}],"title":" Id","description":"MongoDB document ObjectID"},"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"source_type":{"$ref":"#/components/schemas/SourceType"},"file":{"properties":{"id":{"type":"string","title":"Id"},"collection":{"type":"string","title":"Collection"}},"type":"object","required":["id","collection"],"title":"File"},"refs":{"items":{"type":"string"},"type":"array","title":"Refs"}},"type":"object","required":["name","description","source_type","file","refs"],"title":"SourceDocument"},"SourceType":{"type":"string","enum":["csv","json"],"title":"SourceType"},"UriRefNodeDataModel":{"properties":{"label":{"type":"string","title":"Label","default":""},"pattern_prefix":{"type":"string","title":"Pattern Prefix"},"pattern":{"type":"string","title":"Pattern"}},"type":"object","required":["pattern_prefix","pattern"],"title":"UriRefNodeDataModel"},"UserDocument":{"properties":{"_id":{"anyOf":[{"type":"string","example":"5eb7cf5a86d9755df3a6c593"},{"type":"null"}],"title":" Id","description":"MongoDB document ObjectID"},"username":{"type":"string","title":"Username"},"password":{"type":"string","title":"Password"},"roles":{"items":{"type":"string"},"type":"array","title":"Roles"}},"type":"object","required":["password","roles"],"title":"UserDocument"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"WorkspaceDocument":{"properties":{"_id":{"anyOf":[{"type":"string","example":"5eb7cf5a86d9755df3a6c593"},{"type":"null"}],"title":" Id","description":"MongoDB document ObjectID"},"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"sources":{"items":{"properties":{"id":{"type":"string","title":"Id"},"collection":{"type":"string","title":"Collection"}},"type":"object","required":["id","collection"]},"type":"array","title":"Sources","default":[]},"prefixes":{"items":{"properties":{"id":{"type":"string","title":"Id"},"collection":{"type":"string","title":"Collection"}},"type":"object","required":["id","collection"]},"type":"array","title":"Prefixes","default":[]},"ontologies":{"items":{"properties":{"id":{"type":"string","title":"Id"},"collection":{"type":"string","title":"Collection"}},"type":"object","required":["id","collection"]},"type":"array","title":"Ontologies","default":[]},"mappings":{"items":{"properties":{"id":{"type":"string","title":"Id"},"collection":{"type":"string","title":"Collection"}},"type":"object","required":["id","collection"]},"type":"array","title":"Mappings","default":[]}},"type":"object","required":["name","description"],"title":"WorkspaceDocument"}},"securitySchemes":{"OAuth2PasswordBearer":{"type":"oauth2","flows":{"password":{"scopes":{},"tokenUrl":"/auth/login"}}}}}}