Trying to learn a little bit of Python and Biopython I ended up figuring out what a Rest API is when the RCSB PDB repository released its new Rest API.
I tried to retrieve info from the PDB repository using python3 requests,
then I managed to use OpenAPI-generator to generate what they call a 'Python3 Client'.
Now I am at loss I have this ApiClient class:
print dir():
['NATIVE_TYPES_MAPPING', 'PRIMITIVE_TYPES', '_ApiClient__call_api',
'_ApiClient__deserialize', '_ApiClient__deserialize_date',
'_ApiClient__deserialize_datetime', '_ApiClient__deserialize_file',
'_ApiClient__deserialize_model', '_ApiClient__deserialize_object',
'_ApiClient__deserialize_primitive', '__class__', '__delattr__',
'__dict__', '__dir__', '__doc__', '__enter__', '__eq__', '__exit__',
'__format__', '__ge__', '__getattribute__', '__gt__', '__hash__',
'__init__', '__init_subclass__', '__le__', '__lt__', '__module__',
'__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__',
'__setattr__', '__sizeof__', '__str__', '__subclasshook__',
'__weakref__', '_pool', 'call_api', 'client_side_validation',
'close', 'configuration', 'cookie', 'default_headers',
'deserialize', 'files_parameters', 'parameters_to_tuples',
'pool', 'pool_threads', 'request', 'rest_client',
'sanitize_for_serialization', 'select_header_accept',
'select_header_content_type', 'set_default_header',
'update_params_for_auth', 'user_agent']
and don't know how to use it. Googling for examples or searching for info on the OpenAPI-generator website doesn't seem to work for me, I find plenty of tutorials and examples on how to generate the client but none about how to use it.
The generated client class should help to better interact with the server as I understood (I could be wrong here). I am asking for helps and hints here because the OpenAPI webpage under Community points to stackoverflow under [openapi-generator] tag. Any tutorial, easy documentation that could help me understand the output of the generator?