Package: rocc-client
ROCC Client Library for PythonIntroductionTBAThis Python package is automatically generated by theOpenAPI Generatorproject:API version: 0.1.3Package version: 1.0.0Build package: org.openapitools.codegen.languages.PythonClientCodegen
For more information, please visithttps://Sage-Bionetworks.github.io/rocc-schemasRequirements.Python 2.7 and 3.4+Installation & Usagepip installIf the python package is hosted on a repository, you can install directly using:pipinstallgit+https://github.com/GIT_USER_ID/GIT_REPO_ID.git(you may need to runpipwith root permission:sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git)Then import the package:importroccclientSetuptoolsInstall viaSetuptools.pythonsetup.pyinstall--user(orsudo python setup.py installto install the package for all users)Then import the package:importroccclientGetting StartedPlease follow theinstallation procedureand then run the following:from__future__importprint_functionimporttimeimportroccclientfromroccclient.restimportApiExceptionfrompprintimportpprint# Defining the host is optional and defaults to https://rocc.org/api/v1# See configuration.py for a list of all supported configuration parameters.configuration=roccclient.Configuration(host="https://rocc.org/api/v1")# Enter a context with an instance of the API clientwithroccclient.ApiClient(configuration)asapi_client:# Create an instance of the API classapi_instance=roccclient.ChallengeApi(api_client)challenge=roccclient.Challenge()# Challenge |try:# Add a challengeapi_response=api_instance.create_challenge(challenge)pprint(api_response)exceptApiExceptionase:print("Exception when calling ChallengeApi->create_challenge:%s\n"%e)Documentation for API EndpointsAll URIs are relative tohttps://rocc.org/api/v1ClassMethodHTTP requestDescriptionChallengeApicreate_challengePOST/challengesAdd a challengeChallengeApidelete_challengeDELETE/challenges/{challengeId}Delete a challengeChallengeApiget_challengeGET/challenges/{challengeId}Get a challengeChallengeApilist_challengesGET/challengesList all the challengesGrantApicreate_grantPOST/grantsCreate a grantGrantApidelete_grantDELETE/grants/{grantId}Delete a grantGrantApiget_grantGET/grants/{grantId}Get a grantGrantApilist_grantsGET/grantsGet all grantsOrganizationApicreate_organizationPOST/organizationsCreate an organizationOrganizationApidelete_organizationDELETE/organizations/{organizationId}Delete an organizationOrganizationApiget_organizationGET/organizations/{organizationId}Get an organizationOrganizationApilist_organizationsGET/organizationsGet all organizationsPersonApicreate_personPOST/personsCreate a personPersonApidelete_personDELETE/persons/{personId}Delete a personPersonApiget_personGET/persons/{personId}Get a personPersonApilist_personsGET/personsGet all personsTagApicreate_tagPOST/tagsCreate a tagTagApidelete_tagDELETE/tags/{tagId}Delete a tagTagApiget_tagGET/tags/{tagId}Get a tagTagApilist_tagsGET/tagsGet all tagsDocumentation For ModelsChallengeChallengeFilterChallengeResultsChallengeStatusErrorGrantOrganizationPageOfChallengesPageOfChallengesAllOfPageOfGrantsPageOfGrantsAllOfPageOfOrganizationsPageOfOrganizationsAllOfPageOfPersonsPageOfPersonsAllOfPageOfTagsPageOfTagsAllOfPersonPersonFilterResponsePageMetadataResponsePageMetadataLinksTagTagFilterDocumentation For AuthorizationAll endpoints do not require authorization.Authorthomas.schaffter@sagebionetworks.org