Skip to content

Instantly share code, notes, and snippets.

@mrakitin
Last active June 11, 2024 20:53
Show Gist options
  • Save mrakitin/ae273037acf1641f052db06324cac7f3 to your computer and use it in GitHub Desktop.
Save mrakitin/ae273037acf1641f052db06324cac7f3 to your computer and use it in GitHub Desktop.

Install a conda env:

conda create -n openapi python=3.12 -c conda-forge
conda activate openapi
pip install openapi-python-client

Generate the client after installing the library:

$ openapi-python-client generate --path ChannelFinder-swagger.json
Generating /Users/mrakitin/src/NSLS-II/ChannelFinder-swagger/open-api-definition-client
Warning(s) encountered while generating. Client was generated, but some pieces may be missing

WARNING parsing GET /ChannelFinder/resources/tags within tag_manager.

Cannot parse response for status code 200 (Unsupported content_type {'*/*': MediaType(media_type_schema=Schema(title=None, multipleOf=None, maximum=None, exclusiveMaximum=None, minimum=None, exclusiveMinimum=None, maxLength=None, minLength=None, pattern=None, maxItems=None, minItems=None, uniqueItems=None, maxProperties=None, minProperties=None, required=None, enum=None, const=None, type=<DataType.OBJECT: 'object'>, allOf=[], oneOf=[], anyOf=[], schema_not=None, items=None, properties=None, additionalProperties=None, description=None, schema_format=None, default=None, nullable=False, discriminator=None, readOnly=None, writeOnly=None, xml=None, externalDocs=None, example=None, deprecated=None), example=None, examples=None, encoding=None)}), response will be ommitted from generated client

Response(description='OK', headers=None, content={'*/*': MediaType(media_type_schema=Schema(title=None, multipleOf=None, maximum=None, exclusiveMaximum=None, minimum=None, exclusiveMinimum=None, maxLength=None, minLength=None, pattern=None, maxItems=None, minItems=None, uniqueItems=None, maxProperties=None, minProperties=None, required=None, enum=None, const=None, type=<DataType.OBJECT: 'object'>, allOf=[], oneOf=[], anyOf=[], schema_not=None, items=None, properties=None, additionalProperties=None, description=None, schema_format=None, default=None, nullable=False, discriminator=None, readOnly=None, writeOnly=None, xml=None, externalDocs=None, example=None, deprecated=None), example=None, examples=None, encoding=None)}, links=None)

WARNING parsing PUT /ChannelFinder/resources/tags within tag_manager.

Cannot parse response for status code 200 (Unsupported content_type {'*/*': MediaType(media_type_schema=Schema(title=None, multipleOf=None, maximum=None, exclusiveMaximum=None, minimum=None, exclusiveMinimum=None, maxLength=None, minLength=None, pattern=None, maxItems=None, minItems=None, uniqueItems=None, maxProperties=None, minProperties=None, required=None, enum=None, const=None, type=<DataType.OBJECT: 'object'>, allOf=[], oneOf=[], anyOf=[], schema_not=None, items=None, properties=None, additionalProperties=None, description=None, schema_format=None, default=None, nullable=False, discriminator=None, readOnly=None, writeOnly=None, xml=None, externalDocs=None, example=None, deprecated=None), example=None, examples=None, encoding=None)}), response will be ommitted from generated client

Response(description='OK', headers=None, content={'*/*': MediaType(media_type_schema=Schema(title=None, multipleOf=None, maximum=None, exclusiveMaximum=None, minimum=None, exclusiveMinimum=None, maxLength=None, minLength=None, pattern=None, maxItems=None, minItems=None, uniqueItems=None, maxProperties=None, minProperties=None, required=None, enum=None, const=None, type=<DataType.OBJECT: 'object'>, allOf=[], oneOf=[], anyOf=[], schema_not=None, items=None, properties=None, additionalProperties=None, description=None, schema_format=None, default=None, nullable=False, discriminator=None, readOnly=None, writeOnly=None, xml=None, externalDocs=None, example=None, deprecated=None), example=None, examples=None, encoding=None)}, links=None)

WARNING parsing POST /ChannelFinder/resources/tags within tag_manager.

Cannot parse response for status code 200 (Unsupported content_type {'*/*': MediaType(media_type_schema=Schema(title=None, multipleOf=None, maximum=None, exclusiveMaximum=None, minimum=None, exclusiveMinimum=None, maxLength=None, minLength=None, pattern=None, maxItems=None, minItems=None, uniqueItems=None, maxProperties=None, minProperties=None, required=None, enum=None, const=None, type=<DataType.OBJECT: 'object'>, allOf=[], oneOf=[], anyOf=[], schema_not=None, items=None, properties=None, additionalProperties=None, description=None, schema_format=None, default=None, nullable=False, discriminator=None, readOnly=None, writeOnly=None, xml=None, externalDocs=None, example=None, deprecated=None), example=None, examples=None, encoding=None)}), response will be ommitted from generated client

Response(description='OK', headers=None, content={'*/*': MediaType(media_type_schema=Schema(title=None, multipleOf=None, maximum=None, exclusiveMaximum=None, minimum=None, exclusiveMinimum=None, maxLength=None, minLength=None, pattern=None, maxItems=None, minItems=None, uniqueItems=None, maxProperties=None, minProperties=None, required=None, enum=None, const=None, type=<DataType.OBJECT: 'object'>, allOf=[], oneOf=[], anyOf=[], schema_not=None, items=None, properties=None, additionalProperties=None, description=None, schema_format=None, default=None, nullable=False, discriminator=None, readOnly=None, writeOnly=None, xml=None, externalDocs=None, example=None, deprecated=None), example=None, examples=None, encoding=None)}, links=None)

WARNING parsing GET /ChannelFinder/resources/tags/{tagName} within tag_manager.

Cannot parse response for status code 200 (Unsupported content_type {'*/*': MediaType(media_type_schema=Reference(ref='#/components/schemas/Tag'), example=None, examples=None, encoding=None)}), response will be ommitted from generated client

Response(description='OK', headers=None, content={'*/*': MediaType(media_type_schema=Reference(ref='#/components/schemas/Tag'), example=None, examples=None, encoding=None)}, links=None)

WARNING parsing PUT /ChannelFinder/resources/tags/{tagName} within tag_manager.

Cannot parse response for status code 200 (Unsupported content_type {'*/*': MediaType(media_type_schema=Reference(ref='#/components/schemas/Tag'), example=None, examples=None, encoding=None)}), response will be ommitted from generated client

Response(description='OK', headers=None, content={'*/*': MediaType(media_type_schema=Reference(ref='#/components/schemas/Tag'), example=None, examples=None, encoding=None)}, links=None)

WARNING parsing POST /ChannelFinder/resources/tags/{tagName} within tag_manager.

Cannot parse response for status code 200 (Unsupported content_type {'*/*': MediaType(media_type_schema=Reference(ref='#/components/schemas/Tag'), example=None, examples=None, encoding=None)}), response will be ommitted from generated client

Response(description='OK', headers=None, content={'*/*': MediaType(media_type_schema=Reference(ref='#/components/schemas/Tag'), example=None, examples=None, encoding=None)}, links=None)

WARNING parsing PUT /ChannelFinder/resources/tags/{tagName}/{channelName} within tag_manager.

Cannot parse response for status code 200 (Unsupported content_type {'*/*': MediaType(media_type_schema=Reference(ref='#/components/schemas/Tag'), example=None, examples=None, encoding=None)}), response will be ommitted from generated client

Response(description='OK', headers=None, content={'*/*': MediaType(media_type_schema=Reference(ref='#/components/schemas/Tag'), example=None, examples=None, encoding=None)}, links=None)

WARNING parsing GET /ChannelFinder/resources/properties within property_manager.

Cannot parse response for status code 200 (Unsupported content_type {'*/*': MediaType(media_type_schema=Schema(title=None, multipleOf=None, maximum=None, exclusiveMaximum=None, minimum=None, exclusiveMinimum=None, maxLength=None, minLength=None, pattern=None, maxItems=None, minItems=None, uniqueItems=None, maxProperties=None, minProperties=None, required=None, enum=None, const=None, type=<DataType.OBJECT: 'object'>, allOf=[], oneOf=[], anyOf=[], schema_not=None, items=None, properties=None, additionalProperties=None, description=None, schema_format=None, default=None, nullable=False, discriminator=None, readOnly=None, writeOnly=None, xml=None, externalDocs=None, example=None, deprecated=None), example=None, examples=None, encoding=None)}), response will be ommitted from generated client

Response(description='OK', headers=None, content={'*/*': MediaType(media_type_schema=Schema(title=None, multipleOf=None, maximum=None, exclusiveMaximum=None, minimum=None, exclusiveMinimum=None, maxLength=None, minLength=None, pattern=None, maxItems=None, minItems=None, uniqueItems=None, maxProperties=None, minProperties=None, required=None, enum=None, const=None, type=<DataType.OBJECT: 'object'>, allOf=[], oneOf=[], anyOf=[], schema_not=None, items=None, properties=None, additionalProperties=None, description=None, schema_format=None, default=None, nullable=False, discriminator=None, readOnly=None, writeOnly=None, xml=None, externalDocs=None, example=None, deprecated=None), example=None, examples=None, encoding=None)}, links=None)

WARNING parsing PUT /ChannelFinder/resources/properties within property_manager.

Cannot parse response for status code 200 (Unsupported content_type {'*/*': MediaType(media_type_schema=Schema(title=None, multipleOf=None, maximum=None, exclusiveMaximum=None, minimum=None, exclusiveMinimum=None, maxLength=None, minLength=None, pattern=None, maxItems=None, minItems=None, uniqueItems=None, maxProperties=None, minProperties=None, required=None, enum=None, const=None, type=<DataType.OBJECT: 'object'>, allOf=[], oneOf=[], anyOf=[], schema_not=None, items=None, properties=None, additionalProperties=None, description=None, schema_format=None, default=None, nullable=False, discriminator=None, readOnly=None, writeOnly=None, xml=None, externalDocs=None, example=None, deprecated=None), example=None, examples=None, encoding=None)}), response will be ommitted from generated client

Response(description='OK', headers=None, content={'*/*': MediaType(media_type_schema=Schema(title=None, multipleOf=None, maximum=None, exclusiveMaximum=None, minimum=None, exclusiveMinimum=None, maxLength=None, minLength=None, pattern=None, maxItems=None, minItems=None, uniqueItems=None, maxProperties=None, minProperties=None, required=None, enum=None, const=None, type=<DataType.OBJECT: 'object'>, allOf=[], oneOf=[], anyOf=[], schema_not=None, items=None, properties=None, additionalProperties=None, description=None, schema_format=None, default=None, nullable=False, discriminator=None, readOnly=None, writeOnly=None, xml=None, externalDocs=None, example=None, deprecated=None), example=None, examples=None, encoding=None)}, links=None)

WARNING parsing POST /ChannelFinder/resources/properties within property_manager.

Cannot parse response for status code 200 (Unsupported content_type {'*/*': MediaType(media_type_schema=Schema(title=None, multipleOf=None, maximum=None, exclusiveMaximum=None, minimum=None, exclusiveMinimum=None, maxLength=None, minLength=None, pattern=None, maxItems=None, minItems=None, uniqueItems=None, maxProperties=None, minProperties=None, required=None, enum=None, const=None, type=<DataType.OBJECT: 'object'>, allOf=[], oneOf=[], anyOf=[], schema_not=None, items=None, properties=None, additionalProperties=None, description=None, schema_format=None, default=None, nullable=False, discriminator=None, readOnly=None, writeOnly=None, xml=None, externalDocs=None, example=None, deprecated=None), example=None, examples=None, encoding=None)}), response will be ommitted from generated client

Response(description='OK', headers=None, content={'*/*': MediaType(media_type_schema=Schema(title=None, multipleOf=None, maximum=None, exclusiveMaximum=None, minimum=None, exclusiveMinimum=None, maxLength=None, minLength=None, pattern=None, maxItems=None, minItems=None, uniqueItems=None, maxProperties=None, minProperties=None, required=None, enum=None, const=None, type=<DataType.OBJECT: 'object'>, allOf=[], oneOf=[], anyOf=[], schema_not=None, items=None, properties=None, additionalProperties=None, description=None, schema_format=None, default=None, nullable=False, discriminator=None, readOnly=None, writeOnly=None, xml=None, externalDocs=None, example=None, deprecated=None), example=None, examples=None, encoding=None)}, links=None)

WARNING parsing GET /ChannelFinder/resources/properties/{propertyName} within property_manager.

Cannot parse response for status code 200 (Unsupported content_type {'*/*': MediaType(media_type_schema=Reference(ref='#/components/schemas/Property'), example=None, examples=None, encoding=None)}), response will be ommitted from generated client

Response(description='OK', headers=None, content={'*/*': MediaType(media_type_schema=Reference(ref='#/components/schemas/Property'), example=None, examples=None, encoding=None)}, links=None)

WARNING parsing PUT /ChannelFinder/resources/properties/{propertyName} within property_manager.

Cannot parse response for status code 200 (Unsupported content_type {'*/*': MediaType(media_type_schema=Reference(ref='#/components/schemas/Property'), example=None, examples=None, encoding=None)}), response will be ommitted from generated client

Response(description='OK', headers=None, content={'*/*': MediaType(media_type_schema=Reference(ref='#/components/schemas/Property'), example=None, examples=None, encoding=None)}, links=None)

WARNING parsing POST /ChannelFinder/resources/properties/{propertyName} within property_manager.

Cannot parse response for status code 200 (Unsupported content_type {'*/*': MediaType(media_type_schema=Reference(ref='#/components/schemas/Property'), example=None, examples=None, encoding=None)}), response will be ommitted from generated client

Response(description='OK', headers=None, content={'*/*': MediaType(media_type_schema=Reference(ref='#/components/schemas/Property'), example=None, examples=None, encoding=None)}, links=None)

WARNING parsing PUT /ChannelFinder/resources/properties/{propertyName}/{channelName} within property_manager.

Cannot parse response for status code 200 (Unsupported content_type {'*/*': MediaType(media_type_schema=Reference(ref='#/components/schemas/Property'), example=None, examples=None, encoding=None)}), response will be ommitted from generated client

Response(description='OK', headers=None, content={'*/*': MediaType(media_type_schema=Reference(ref='#/components/schemas/Property'), example=None, examples=None, encoding=None)}, links=None)

WARNING parsing PUT /ChannelFinder/resources/processors/process/query within channel_processor_manager.

Cannot parse response for status code 200 (Unsupported content_type {'*/*': MediaType(media_type_schema=Schema(title=None, multipleOf=None, maximum=None, exclusiveMaximum=None, minimum=None, exclusiveMinimum=None, maxLength=None, minLength=None, pattern=None, maxItems=None, minItems=None, uniqueItems=None, maxProperties=None, minProperties=None, required=None, enum=None, const=None, type=<DataType.INTEGER: 'integer'>, allOf=[], oneOf=[], anyOf=[], schema_not=None, items=None, properties=None, additionalProperties=None, description=None, schema_format='int64', default=None, nullable=False, discriminator=None, readOnly=None, writeOnly=None, xml=None, externalDocs=None, example=None, deprecated=None), example=None, examples=None, encoding=None)}), response will be ommitted from generated client

Response(description='OK', headers=None, content={'*/*': MediaType(media_type_schema=Schema(title=None, multipleOf=None, maximum=None, exclusiveMaximum=None, minimum=None, exclusiveMinimum=None, maxLength=None, minLength=None, pattern=None, maxItems=None, minItems=None, uniqueItems=None, maxProperties=None, minProperties=None, required=None, enum=None, const=None, type=<DataType.INTEGER: 'integer'>, allOf=[], oneOf=[], anyOf=[], schema_not=None, items=None, properties=None, additionalProperties=None, description=None, schema_format='int64', default=None, nullable=False, discriminator=None, readOnly=None, writeOnly=None, xml=None, externalDocs=None, example=None, deprecated=None), example=None, examples=None, encoding=None)}, links=None)

WARNING parsing PUT /ChannelFinder/resources/processors/process/all within channel_processor_manager.

Cannot parse response for status code 200 (Unsupported content_type {'*/*': MediaType(media_type_schema=Schema(title=None, multipleOf=None, maximum=None, exclusiveMaximum=None, minimum=None, exclusiveMinimum=None, maxLength=None, minLength=None, pattern=None, maxItems=None, minItems=None, uniqueItems=None, maxProperties=None, minProperties=None, required=None, enum=None, const=None, type=<DataType.INTEGER: 'integer'>, allOf=[], oneOf=[], anyOf=[], schema_not=None, items=None, properties=None, additionalProperties=None, description=None, schema_format='int64', default=None, nullable=False, discriminator=None, readOnly=None, writeOnly=None, xml=None, externalDocs=None, example=None, deprecated=None), example=None, examples=None, encoding=None)}), response will be ommitted from generated client

Response(description='OK', headers=None, content={'*/*': MediaType(media_type_schema=Schema(title=None, multipleOf=None, maximum=None, exclusiveMaximum=None, minimum=None, exclusiveMinimum=None, maxLength=None, minLength=None, pattern=None, maxItems=None, minItems=None, uniqueItems=None, maxProperties=None, minProperties=None, required=None, enum=None, const=None, type=<DataType.INTEGER: 'integer'>, allOf=[], oneOf=[], anyOf=[], schema_not=None, items=None, properties=None, additionalProperties=None, description=None, schema_format='int64', default=None, nullable=False, discriminator=None, readOnly=None, writeOnly=None, xml=None, externalDocs=None, example=None, deprecated=None), example=None, examples=None, encoding=None)}, links=None)

WARNING parsing GET /ChannelFinder/resources/processors/info within channel_processor_manager.

Cannot parse response for status code 200 (Unsupported content_type {'*/*': MediaType(media_type_schema=Schema(title=None, multipleOf=None, maximum=None, exclusiveMaximum=None, minimum=None, exclusiveMinimum=None, maxLength=None, minLength=None, pattern=None, maxItems=None, minItems=None, uniqueItems=None, maxProperties=None, minProperties=None, required=None, enum=None, const=None, type=<DataType.ARRAY: 'array'>, allOf=[], oneOf=[], anyOf=[], schema_not=None, items=Schema(title=None, multipleOf=None, maximum=None, exclusiveMaximum=None, minimum=None, exclusiveMinimum=None, maxLength=None, minLength=None, pattern=None, maxItems=None, minItems=None, uniqueItems=None, maxProperties=None, minProperties=None, required=None, enum=None, const=None, type=<DataType.STRING: 'string'>, allOf=[], oneOf=[], anyOf=[], schema_not=None, items=None, properties=None, additionalProperties=None, description=None, schema_format=None, default=None, nullable=False, discriminator=None, readOnly=None, writeOnly=None, xml=None, externalDocs=None, example=None, deprecated=None), properties=None, additionalProperties=None, description=None, schema_format=None, default=None, nullable=False, discriminator=None, readOnly=None, writeOnly=None, xml=None, externalDocs=None, example=None, deprecated=None), example=None, examples=None, encoding=None)}), response will be ommitted from generated client

Response(description='OK', headers=None, content={'*/*': MediaType(media_type_schema=Schema(title=None, multipleOf=None, maximum=None, exclusiveMaximum=None, minimum=None, exclusiveMinimum=None, maxLength=None, minLength=None, pattern=None, maxItems=None, minItems=None, uniqueItems=None, maxProperties=None, minProperties=None, required=None, enum=None, const=None, type=<DataType.ARRAY: 'array'>, allOf=[], oneOf=[], anyOf=[], schema_not=None, items=Schema(title=None, multipleOf=None, maximum=None, exclusiveMaximum=None, minimum=None, exclusiveMinimum=None, maxLength=None, minLength=None, pattern=None, maxItems=None, minItems=None, uniqueItems=None, maxProperties=None, minProperties=None, required=None, enum=None, const=None, type=<DataType.STRING: 'string'>, allOf=[], oneOf=[], anyOf=[], schema_not=None, items=None, properties=None, additionalProperties=None, description=None, schema_format=None, default=None, nullable=False, discriminator=None, readOnly=None, writeOnly=None, xml=None, externalDocs=None, example=None, deprecated=None), properties=None, additionalProperties=None, description=None, schema_format=None, default=None, nullable=False, discriminator=None, readOnly=None, writeOnly=None, xml=None, externalDocs=None, example=None, deprecated=None), example=None, examples=None, encoding=None)}, links=None)

WARNING parsing GET /ChannelFinder/resources/processors/count within channel_processor_manager.

Cannot parse response for status code 200 (Unsupported content_type {'*/*': MediaType(media_type_schema=Schema(title=None, multipleOf=None, maximum=None, exclusiveMaximum=None, minimum=None, exclusiveMinimum=None, maxLength=None, minLength=None, pattern=None, maxItems=None, minItems=None, uniqueItems=None, maxProperties=None, minProperties=None, required=None, enum=None, const=None, type=<DataType.INTEGER: 'integer'>, allOf=[], oneOf=[], anyOf=[], schema_not=None, items=None, properties=None, additionalProperties=None, description=None, schema_format='int64', default=None, nullable=False, discriminator=None, readOnly=None, writeOnly=None, xml=None, externalDocs=None, example=None, deprecated=None), example=None, examples=None, encoding=None)}), response will be ommitted from generated client

Response(description='OK', headers=None, content={'*/*': MediaType(media_type_schema=Schema(title=None, multipleOf=None, maximum=None, exclusiveMaximum=None, minimum=None, exclusiveMinimum=None, maxLength=None, minLength=None, pattern=None, maxItems=None, minItems=None, uniqueItems=None, maxProperties=None, minProperties=None, required=None, enum=None, const=None, type=<DataType.INTEGER: 'integer'>, allOf=[], oneOf=[], anyOf=[], schema_not=None, items=None, properties=None, additionalProperties=None, description=None, schema_format='int64', default=None, nullable=False, discriminator=None, readOnly=None, writeOnly=None, xml=None, externalDocs=None, example=None, deprecated=None), example=None, examples=None, encoding=None)}, links=None)

WARNING parsing GET /ChannelFinder/resources/channels within channel_manager.

Cannot parse response for status code 200 (Unsupported content_type {'*/*': MediaType(media_type_schema=Schema(title=None, multipleOf=None, maximum=None, exclusiveMaximum=None, minimum=None, exclusiveMinimum=None, maxLength=None, minLength=None, pattern=None, maxItems=None, minItems=None, uniqueItems=None, maxProperties=None, minProperties=None, required=None, enum=None, const=None, type=<DataType.ARRAY: 'array'>, allOf=[], oneOf=[], anyOf=[], schema_not=None, items=Reference(ref='#/components/schemas/Channel'), properties=None, additionalProperties=None, description=None, schema_format=None, default=None, nullable=False, discriminator=None, readOnly=None, writeOnly=None, xml=None, externalDocs=None, example=None, deprecated=None), example=None, examples=None, encoding=None)}), response will be ommitted from generated client

Response(description='OK', headers=None, content={'*/*': MediaType(media_type_schema=Schema(title=None, multipleOf=None, maximum=None, exclusiveMaximum=None, minimum=None, exclusiveMinimum=None, maxLength=None, minLength=None, pattern=None, maxItems=None, minItems=None, uniqueItems=None, maxProperties=None, minProperties=None, required=None, enum=None, const=None, type=<DataType.ARRAY: 'array'>, allOf=[], oneOf=[], anyOf=[], schema_not=None, items=Reference(ref='#/components/schemas/Channel'), properties=None, additionalProperties=None, description=None, schema_format=None, default=None, nullable=False, discriminator=None, readOnly=None, writeOnly=None, xml=None, externalDocs=None, example=None, deprecated=None), example=None, examples=None, encoding=None)}, links=None)

WARNING parsing PUT /ChannelFinder/resources/channels within channel_manager.

Cannot parse response for status code 200 (Unsupported content_type {'*/*': MediaType(media_type_schema=Schema(title=None, multipleOf=None, maximum=None, exclusiveMaximum=None, minimum=None, exclusiveMinimum=None, maxLength=None, minLength=None, pattern=None, maxItems=None, minItems=None, uniqueItems=None, maxProperties=None, minProperties=None, required=None, enum=None, const=None, type=<DataType.OBJECT: 'object'>, allOf=[], oneOf=[], anyOf=[], schema_not=None, items=None, properties=None, additionalProperties=None, description=None, schema_format=None, default=None, nullable=False, discriminator=None, readOnly=None, writeOnly=None, xml=None, externalDocs=None, example=None, deprecated=None), example=None, examples=None, encoding=None)}), response will be ommitted from generated client

Response(description='OK', headers=None, content={'*/*': MediaType(media_type_schema=Schema(title=None, multipleOf=None, maximum=None, exclusiveMaximum=None, minimum=None, exclusiveMinimum=None, maxLength=None, minLength=None, pattern=None, maxItems=None, minItems=None, uniqueItems=None, maxProperties=None, minProperties=None, required=None, enum=None, const=None, type=<DataType.OBJECT: 'object'>, allOf=[], oneOf=[], anyOf=[], schema_not=None, items=None, properties=None, additionalProperties=None, description=None, schema_format=None, default=None, nullable=False, discriminator=None, readOnly=None, writeOnly=None, xml=None, externalDocs=None, example=None, deprecated=None), example=None, examples=None, encoding=None)}, links=None)

WARNING parsing POST /ChannelFinder/resources/channels within channel_manager.

Cannot parse response for status code 200 (Unsupported content_type {'*/*': MediaType(media_type_schema=Schema(title=None, multipleOf=None, maximum=None, exclusiveMaximum=None, minimum=None, exclusiveMinimum=None, maxLength=None, minLength=None, pattern=None, maxItems=None, minItems=None, uniqueItems=None, maxProperties=None, minProperties=None, required=None, enum=None, const=None, type=<DataType.OBJECT: 'object'>, allOf=[], oneOf=[], anyOf=[], schema_not=None, items=None, properties=None, additionalProperties=None, description=None, schema_format=None, default=None, nullable=False, discriminator=None, readOnly=None, writeOnly=None, xml=None, externalDocs=None, example=None, deprecated=None), example=None, examples=None, encoding=None)}), response will be ommitted from generated client

Response(description='OK', headers=None, content={'*/*': MediaType(media_type_schema=Schema(title=None, multipleOf=None, maximum=None, exclusiveMaximum=None, minimum=None, exclusiveMinimum=None, maxLength=None, minLength=None, pattern=None, maxItems=None, minItems=None, uniqueItems=None, maxProperties=None, minProperties=None, required=None, enum=None, const=None, type=<DataType.OBJECT: 'object'>, allOf=[], oneOf=[], anyOf=[], schema_not=None, items=None, properties=None, additionalProperties=None, description=None, schema_format=None, default=None, nullable=False, discriminator=None, readOnly=None, writeOnly=None, xml=None, externalDocs=None, example=None, deprecated=None), example=None, examples=None, encoding=None)}, links=None)

WARNING parsing GET /ChannelFinder/resources/channels/{channelName} within channel_manager.

Cannot parse response for status code 200 (Unsupported content_type {'*/*': MediaType(media_type_schema=Reference(ref='#/components/schemas/Channel'), example=None, examples=None, encoding=None)}), response will be ommitted from generated client

Response(description='OK', headers=None, content={'*/*': MediaType(media_type_schema=Reference(ref='#/components/schemas/Channel'), example=None, examples=None, encoding=None)}, links=None)

WARNING parsing PUT /ChannelFinder/resources/channels/{channelName} within channel_manager.

Cannot parse response for status code 200 (Unsupported content_type {'*/*': MediaType(media_type_schema=Reference(ref='#/components/schemas/Channel'), example=None, examples=None, encoding=None)}), response will be ommitted from generated client

Response(description='OK', headers=None, content={'*/*': MediaType(media_type_schema=Reference(ref='#/components/schemas/Channel'), example=None, examples=None, encoding=None)}, links=None)

WARNING parsing POST /ChannelFinder/resources/channels/{channelName} within channel_manager.

Cannot parse response for status code 200 (Unsupported content_type {'*/*': MediaType(media_type_schema=Reference(ref='#/components/schemas/Channel'), example=None, examples=None, encoding=None)}), response will be ommitted from generated client

Response(description='OK', headers=None, content={'*/*': MediaType(media_type_schema=Reference(ref='#/components/schemas/Channel'), example=None, examples=None, encoding=None)}, links=None)

WARNING parsing GET /ChannelFinder/resources/channels/count within channel_manager.

Cannot parse response for status code 200 (Unsupported content_type {'*/*': MediaType(media_type_schema=Schema(title=None, multipleOf=None, maximum=None, exclusiveMaximum=None, minimum=None, exclusiveMinimum=None, maxLength=None, minLength=None, pattern=None, maxItems=None, minItems=None, uniqueItems=None, maxProperties=None, minProperties=None, required=None, enum=None, const=None, type=<DataType.INTEGER: 'integer'>, allOf=[], oneOf=[], anyOf=[], schema_not=None, items=None, properties=None, additionalProperties=None, description=None, schema_format='int64', default=None, nullable=False, discriminator=None, readOnly=None, writeOnly=None, xml=None, externalDocs=None, example=None, deprecated=None), example=None, examples=None, encoding=None)}), response will be ommitted from generated client

Response(description='OK', headers=None, content={'*/*': MediaType(media_type_schema=Schema(title=None, multipleOf=None, maximum=None, exclusiveMaximum=None, minimum=None, exclusiveMinimum=None, maxLength=None, minL
ength=None, pattern=None, maxItems=None, minItems=None, uniqueItems=None, maxProperties=None, minProperties=None, required=None, enum=None, const=None, type=<DataType.INTEGER: 'integer'>, allOf=[], oneOf=[], anyOf=[], schema_not=None, items=None, properties=None, additionalProperties=None, description=None, schema_format='int64', default=None, nullable=False, discriminator=None, readOnly=None, writeOnly=None, xml=None, externalDocs=None, example=None, deprecated=None), example=None, examples=None, encoding=None)}, links=None)

WARNING parsing GET /ChannelFinder/resources/channels/combined within channel_manager.

Cannot parse response for status code 200 (Unsupported content_type {'*/*': MediaType(media_type_schema=Reference(ref='#/components/schemas/SearchResult'), example=None, examples=None, encoding=None)}), response will be ommitted from generated client

Response(description='OK', headers=None, content={'*/*': MediaType(media_type_schema=Reference(ref='#/components/schemas/SearchResult'), example=None, examples=None, encoding=None)}, links=None)

WARNING parsing GET /ChannelFinder within info_manager.

Cannot parse response for status code 200 (Unsupported content_type {'*/*': MediaType(media_type_schema=Schema(title=None, multipleOf=None, maximum=None, exclusiveMaximum=None, minimum=None, exclusiveMinimum=None, maxLength=None, minLength=None, pattern=None, maxItems=None, minItems=None, uniqueItems=None, maxProperties=None, minProperties=None, required=None, enum=None, const=None, type=<DataType.STRING: 'string'>, allOf=[], oneOf=[], anyOf=[], schema_not=None, items=None, properties=None, additionalProperties=None, description=None, schema_format=None, default=None, nullable=False, discriminator=None, readOnly=None, writeOnly=None, xml=None, externalDocs=None, example=None, deprecated=None), example=None, examples=None, encoding=None)}), response will be ommitted from generated client

Response(description='OK', headers=None, content={'*/*': MediaType(media_type_schema=Schema(title=None, multipleOf=None, maximum=None, exclusiveMaximum=None, minimum=None, exclusiveMinimum=None, maxLength=None, minLength=None, pattern=None, maxItems=None, minItems=None, uniqueItems=None, maxProperties=None, minProperties=None, required=None, enum=None, const=None, type=<DataType.STRING: 'string'>, allOf=[], oneOf=[], anyOf=[], schema_not=None, items=None, properties=None, additionalProperties=None, description=None, schema_format=None, default=None, nullable=False, discriminator=None, readOnly=None, writeOnly=None, xml=None, externalDocs=None, example=None, deprecated=None), example=None, examples=None, encoding=None)}, links=None)

WARNING parsing GET /ChannelFinder/resources/scroll within channel_scroll.

Cannot parse response for status code 200 (Unsupported content_type {'*/*': MediaType(media_type_schema=Reference(ref='#/components/schemas/Scroll'), example=None, examples=None, encoding=None)}), response will be ommitted from generated client

Response(description='OK', headers=None, content={'*/*': MediaType(media_type_schema=Reference(ref='#/components/schemas/Scroll'), example=None, examples=None, encoding=None)}, links=None)

WARNING parsing GET /ChannelFinder/resources/scroll/{scrollId} within channel_scroll.

Cannot parse response for status code 200 (Unsupported content_type {'*/*': MediaType(media_type_schema=Reference(ref='#/components/schemas/Scroll'), example=None, examples=None, encoding=None)}), response will be ommitted from generated client

Response(description='OK', headers=None, content={'*/*': MediaType(media_type_schema=Reference(ref='#/components/schemas/Scroll'), example=None, examples=None, encoding=None)}, links=None)

If you believe this was a mistake or this tool is missing a feature you need, please open an issue at https://github.com/openapi-generators/openapi-python-client/issues/new/choose
$ tree open-api-definition-client/
open-api-definition-client/
├── README.md
├── open_api_definition_client
│   ├── __init__.py
│   ├── api
│   │   ├── __init__.py
│   │   ├── channel_manager
│   │   │   ├── __init__.py
│   │   │   ├── combined_query.py
│   │   │   ├── create_4.py
│   │   │   ├── create_5.py
│   │   │   ├── query_2.py
│   │   │   ├── query_count.py
│   │   │   ├── read_2.py
│   │   │   ├── remove_2.py
│   │   │   ├── update_4.py
│   │   │   └── update_5.py
│   │   ├── channel_processor_manager
│   │   │   ├── __init__.py
│   │   │   ├── process_all_channels.py
│   │   │   ├── process_channels.py
│   │   │   ├── process_channels_1.py
│   │   │   ├── processor_count.py
│   │   │   └── processor_info.py
│   │   ├── channel_scroll
│   │   │   ├── __init__.py
│   │   │   ├── query.py
│   │   │   └── query_1.py
│   │   ├── info_manager
│   │   │   ├── __init__.py
│   │   │   └── info.py
│   │   ├── property_manager
│   │   │   ├── __init__.py
│   │   │   ├── add_single_1.py
│   │   │   ├── create_2.py
│   │   │   ├── create_3.py
│   │   │   ├── list_1.py
│   │   │   ├── read_1.py
│   │   │   ├── remove_1.py
│   │   │   ├── remove_single_1.py
│   │   │   ├── update_2.py
│   │   │   └── update_3.py
│   │   └── tag_manager
│   │       ├── __init__.py
│   │       ├── add_single.py
│   │       ├── create.py
│   │       ├── create_1.py
│   │       ├── list_.py
│   │       ├── read.py
│   │       ├── remove.py
│   │       ├── remove_single.py
│   │       ├── update.py
│   │       └── update_1.py
│   ├── client.py
│   ├── errors.py
│   ├── models
│   │   ├── __init__.py
│   │   ├── channel.py
│   │   ├── create_2_body.py
│   │   ├── create_4_body.py
│   │   ├── create_body.py
│   │   ├── multi_value_map_string_string.py
│   │   ├── multi_value_map_string_string_all.py
│   │   ├── property_.py
│   │   ├── scroll.py
│   │   ├── search_result.py
│   │   ├── tag.py
│   │   ├── update_2_body.py
│   │   ├── update_4_body.py
│   │   └── update_body.py
│   ├── py.typed
│   └── types.py
└── pyproject.toml

9 directories, 63 files
{
"openapi": "3.0.1",
"info": {
"title": "OpenAPI definition",
"version": "v0"
},
"servers": [
{
"url": "http://channelfinder.tn.esss.lu.se",
"description": "Generated server url"
}
],
"paths": {
"/ChannelFinder/resources/tags": {
"get": {
"tags": [
"tag-manager"
],
"operationId": "list",
"responses": {
"200": {
"description": "OK",
"content": {
"*/*": {
"schema": {
"type": "object"
}
}
}
}
}
},
"put": {
"tags": [
"tag-manager"
],
"operationId": "create",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "OK",
"content": {
"*/*": {
"schema": {
"type": "object"
}
}
}
}
}
},
"post": {
"tags": [
"tag-manager"
],
"operationId": "update",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "OK",
"content": {
"*/*": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/ChannelFinder/resources/tags/{tagName}": {
"get": {
"tags": [
"tag-manager"
],
"operationId": "read",
"parameters": [
{
"name": "tagName",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "withChannels",
"in": "query",
"required": false,
"schema": {
"type": "boolean",
"default": true
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"*/*": {
"schema": {
"$ref": "#/components/schemas/Tag"
}
}
}
}
}
},
"put": {
"tags": [
"tag-manager"
],
"operationId": "create_1",
"parameters": [
{
"name": "tagName",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Tag"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "OK",
"content": {
"*/*": {
"schema": {
"$ref": "#/components/schemas/Tag"
}
}
}
}
}
},
"post": {
"tags": [
"tag-manager"
],
"operationId": "update_1",
"parameters": [
{
"name": "tagName",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Tag"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "OK",
"content": {
"*/*": {
"schema": {
"$ref": "#/components/schemas/Tag"
}
}
}
}
}
},
"delete": {
"tags": [
"tag-manager"
],
"operationId": "remove",
"parameters": [
{
"name": "tagName",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "OK"
}
}
}
},
"/ChannelFinder/resources/tags/{tagName}/{channelName}": {
"put": {
"tags": [
"tag-manager"
],
"operationId": "addSingle",
"parameters": [
{
"name": "tagName",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "channelName",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"*/*": {
"schema": {
"$ref": "#/components/schemas/Tag"
}
}
}
}
}
},
"delete": {
"tags": [
"tag-manager"
],
"operationId": "removeSingle",
"parameters": [
{
"name": "tagName",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "channelName",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "OK"
}
}
}
},
"/ChannelFinder/resources/properties": {
"get": {
"tags": [
"property-manager"
],
"operationId": "list_1",
"responses": {
"200": {
"description": "OK",
"content": {
"*/*": {
"schema": {
"type": "object"
}
}
}
}
}
},
"put": {
"tags": [
"property-manager"
],
"operationId": "create_2",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "OK",
"content": {
"*/*": {
"schema": {
"type": "object"
}
}
}
}
}
},
"post": {
"tags": [
"property-manager"
],
"operationId": "update_2",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "OK",
"content": {
"*/*": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/ChannelFinder/resources/properties/{propertyName}": {
"get": {
"tags": [
"property-manager"
],
"operationId": "read_1",
"parameters": [
{
"name": "propertyName",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "withChannels",
"in": "query",
"required": false,
"schema": {
"type": "boolean",
"default": true
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"*/*": {
"schema": {
"$ref": "#/components/schemas/Property"
}
}
}
}
}
},
"put": {
"tags": [
"property-manager"
],
"operationId": "create_3",
"parameters": [
{
"name": "propertyName",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Property"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "OK",
"content": {
"*/*": {
"schema": {
"$ref": "#/components/schemas/Property"
}
}
}
}
}
},
"post": {
"tags": [
"property-manager"
],
"operationId": "update_3",
"parameters": [
{
"name": "propertyName",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Property"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "OK",
"content": {
"*/*": {
"schema": {
"$ref": "#/components/schemas/Property"
}
}
}
}
}
},
"delete": {
"tags": [
"property-manager"
],
"operationId": "remove_1",
"parameters": [
{
"name": "propertyName",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "OK"
}
}
}
},
"/ChannelFinder/resources/properties/{propertyName}/{channelName}": {
"put": {
"tags": [
"property-manager"
],
"operationId": "addSingle_1",
"parameters": [
{
"name": "propertyName",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "channelName",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Property"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "OK",
"content": {
"*/*": {
"schema": {
"$ref": "#/components/schemas/Property"
}
}
}
}
}
},
"delete": {
"tags": [
"property-manager"
],
"operationId": "removeSingle_1",
"parameters": [
{
"name": "propertyName",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "channelName",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "OK"
}
}
}
},
"/ChannelFinder/resources/processors/process/query": {
"put": {
"tags": [
"channel-processor-manager"
],
"operationId": "processChannels",
"parameters": [
{
"name": "allRequestParams",
"in": "query",
"required": true,
"schema": {
"$ref": "#/components/schemas/MultiValueMapStringString"
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"*/*": {
"schema": {
"type": "integer",
"format": "int64"
}
}
}
}
}
}
},
"/ChannelFinder/resources/processors/process/channels": {
"put": {
"tags": [
"channel-processor-manager"
],
"operationId": "processChannels_1",
"parameters": [
{
"name": "channels",
"in": "query",
"required": true,
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Channel"
}
}
}
],
"responses": {
"200": {
"description": "OK"
}
}
}
},
"/ChannelFinder/resources/processors/process/all": {
"put": {
"tags": [
"channel-processor-manager"
],
"operationId": "processAllChannels",
"responses": {
"200": {
"description": "OK",
"content": {
"*/*": {
"schema": {
"type": "integer",
"format": "int64"
}
}
}
}
}
}
},
"/ChannelFinder/resources/channels": {
"get": {
"tags": [
"channel-manager"
],
"operationId": "query_2",
"parameters": [
{
"name": "allRequestParams",
"in": "query",
"required": true,
"schema": {
"$ref": "#/components/schemas/MultiValueMapStringString"
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"*/*": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Channel"
}
}
}
}
}
}
},
"put": {
"tags": [
"channel-manager"
],
"operationId": "create_4",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "OK",
"content": {
"*/*": {
"schema": {
"type": "object"
}
}
}
}
}
},
"post": {
"tags": [
"channel-manager"
],
"operationId": "update_4",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "OK",
"content": {
"*/*": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/ChannelFinder/resources/channels/{channelName}": {
"get": {
"tags": [
"channel-manager"
],
"operationId": "read_2",
"parameters": [
{
"name": "channelName",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"*/*": {
"schema": {
"$ref": "#/components/schemas/Channel"
}
}
}
}
}
},
"put": {
"tags": [
"channel-manager"
],
"operationId": "create_5",
"parameters": [
{
"name": "channelName",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Channel"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "OK",
"content": {
"*/*": {
"schema": {
"$ref": "#/components/schemas/Channel"
}
}
}
}
}
},
"post": {
"tags": [
"channel-manager"
],
"operationId": "update_5",
"parameters": [
{
"name": "channelName",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Channel"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "OK",
"content": {
"*/*": {
"schema": {
"$ref": "#/components/schemas/Channel"
}
}
}
}
}
},
"delete": {
"tags": [
"channel-manager"
],
"operationId": "remove_2",
"parameters": [
{
"name": "channelName",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "OK"
}
}
}
},
"/ChannelFinder": {
"get": {
"tags": [
"info-manager"
],
"operationId": "info",
"responses": {
"200": {
"description": "OK",
"content": {
"*/*": {
"schema": {
"type": "string"
}
}
}
}
}
}
},
"/ChannelFinder/resources/scroll": {
"get": {
"tags": [
"channel-scroll"
],
"operationId": "query",
"parameters": [
{
"name": "allRequestParams",
"in": "query",
"required": true,
"schema": {
"$ref": "#/components/schemas/MultiValueMapStringString"
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"*/*": {
"schema": {
"$ref": "#/components/schemas/Scroll"
}
}
}
}
}
}
},
"/ChannelFinder/resources/scroll/{scrollId}": {
"get": {
"tags": [
"channel-scroll"
],
"operationId": "query_1",
"parameters": [
{
"name": "scrollId",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "searchParameters",
"in": "query",
"required": true,
"schema": {
"$ref": "#/components/schemas/MultiValueMapStringString"
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"*/*": {
"schema": {
"$ref": "#/components/schemas/Scroll"
}
}
}
}
}
}
},
"/ChannelFinder/resources/processors/info": {
"get": {
"tags": [
"channel-processor-manager"
],
"operationId": "processorInfo",
"responses": {
"200": {
"description": "OK",
"content": {
"*/*": {
"schema": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
}
}
}
},
"/ChannelFinder/resources/processors/count": {
"get": {
"tags": [
"channel-processor-manager"
],
"operationId": "processorCount",
"responses": {
"200": {
"description": "OK",
"content": {
"*/*": {
"schema": {
"type": "integer",
"format": "int64"
}
}
}
}
}
}
},
"/ChannelFinder/resources/channels/count": {
"get": {
"tags": [
"channel-manager"
],
"operationId": "queryCount",
"parameters": [
{
"name": "allRequestParams",
"in": "query",
"required": true,
"schema": {
"$ref": "#/components/schemas/MultiValueMapStringString"
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"*/*": {
"schema": {
"type": "integer",
"format": "int64"
}
}
}
}
}
}
},
"/ChannelFinder/resources/channels/combined": {
"get": {
"tags": [
"channel-manager"
],
"operationId": "combinedQuery",
"parameters": [
{
"name": "allRequestParams",
"in": "query",
"required": true,
"schema": {
"$ref": "#/components/schemas/MultiValueMapStringString"
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"*/*": {
"schema": {
"$ref": "#/components/schemas/SearchResult"
}
}
}
}
}
}
}
},
"components": {
"schemas": {
"Channel": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"owner": {
"type": "string"
},
"properties": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Property"
}
},
"tags": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Tag"
}
}
},
"xml": {
"name": "channel"
}
},
"Property": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"owner": {
"type": "string"
},
"value": {
"type": "string"
}
},
"xml": {
"name": "property"
}
},
"Tag": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"owner": {
"type": "string"
},
"channels": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Channel"
}
}
},
"xml": {
"name": "tag"
}
},
"MultiValueMapStringString": {
"type": "object",
"properties": {
"all": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"writeOnly": true
},
"empty": {
"type": "boolean"
}
},
"additionalProperties": {
"type": "array",
"items": {
"type": "string"
}
}
},
"Scroll": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"channels": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Channel"
}
}
},
"xml": {
"name": "scroll"
}
},
"SearchResult": {
"type": "object",
"properties": {
"count": {
"type": "integer",
"format": "int64"
},
"channels": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Channel"
}
}
}
}
}
}
}
{"openapi":"3.0.1","info":{"title":"OpenAPI definition","version":"v0"},"servers":[{"url":"http://channelfinder.tn.esss.lu.se","description":"Generated server url"}],"paths":{"/ChannelFinder/resources/tags":{"get":{"tags":["tag-manager"],"operationId":"list","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}},"put":{"tags":["tag-manager"],"operationId":"create","requestBody":{"content":{"application/json":{"schema":{"type":"object"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}},"post":{"tags":["tag-manager"],"operationId":"update","requestBody":{"content":{"application/json":{"schema":{"type":"object"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/ChannelFinder/resources/tags/{tagName}":{"get":{"tags":["tag-manager"],"operationId":"read","parameters":[{"name":"tagName","in":"path","required":true,"schema":{"type":"string"}},{"name":"withChannels","in":"query","required":false,"schema":{"type":"boolean","default":true}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/Tag"}}}}}},"put":{"tags":["tag-manager"],"operationId":"create_1","parameters":[{"name":"tagName","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tag"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/Tag"}}}}}},"post":{"tags":["tag-manager"],"operationId":"update_1","parameters":[{"name":"tagName","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tag"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/Tag"}}}}}},"delete":{"tags":["tag-manager"],"operationId":"remove","parameters":[{"name":"tagName","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/ChannelFinder/resources/tags/{tagName}/{channelName}":{"put":{"tags":["tag-manager"],"operationId":"addSingle","parameters":[{"name":"tagName","in":"path","required":true,"schema":{"type":"string"}},{"name":"channelName","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/Tag"}}}}}},"delete":{"tags":["tag-manager"],"operationId":"removeSingle","parameters":[{"name":"tagName","in":"path","required":true,"schema":{"type":"string"}},{"name":"channelName","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/ChannelFinder/resources/properties":{"get":{"tags":["property-manager"],"operationId":"list_1","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}},"put":{"tags":["property-manager"],"operationId":"create_2","requestBody":{"content":{"application/json":{"schema":{"type":"object"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}},"post":{"tags":["property-manager"],"operationId":"update_2","requestBody":{"content":{"application/json":{"schema":{"type":"object"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/ChannelFinder/resources/properties/{propertyName}":{"get":{"tags":["property-manager"],"operationId":"read_1","parameters":[{"name":"propertyName","in":"path","required":true,"schema":{"type":"string"}},{"name":"withChannels","in":"query","required":false,"schema":{"type":"boolean","default":true}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/Property"}}}}}},"put":{"tags":["property-manager"],"operationId":"create_3","parameters":[{"name":"propertyName","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Property"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/Property"}}}}}},"post":{"tags":["property-manager"],"operationId":"update_3","parameters":[{"name":"propertyName","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Property"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/Property"}}}}}},"delete":{"tags":["property-manager"],"operationId":"remove_1","parameters":[{"name":"propertyName","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/ChannelFinder/resources/properties/{propertyName}/{channelName}":{"put":{"tags":["property-manager"],"operationId":"addSingle_1","parameters":[{"name":"propertyName","in":"path","required":true,"schema":{"type":"string"}},{"name":"channelName","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Property"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/Property"}}}}}},"delete":{"tags":["property-manager"],"operationId":"removeSingle_1","parameters":[{"name":"propertyName","in":"path","required":true,"schema":{"type":"string"}},{"name":"channelName","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/ChannelFinder/resources/processors/process/query":{"put":{"tags":["channel-processor-manager"],"operationId":"processChannels","parameters":[{"name":"allRequestParams","in":"query","required":true,"schema":{"$ref":"#/components/schemas/MultiValueMapStringString"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"integer","format":"int64"}}}}}}},"/ChannelFinder/resources/processors/process/channels":{"put":{"tags":["channel-processor-manager"],"operationId":"processChannels_1","parameters":[{"name":"channels","in":"query","required":true,"schema":{"type":"array","items":{"$ref":"#/components/schemas/Channel"}}}],"responses":{"200":{"description":"OK"}}}},"/ChannelFinder/resources/processors/process/all":{"put":{"tags":["channel-processor-manager"],"operationId":"processAllChannels","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"integer","format":"int64"}}}}}}},"/ChannelFinder/resources/channels":{"get":{"tags":["channel-manager"],"operationId":"query_2","parameters":[{"name":"allRequestParams","in":"query","required":true,"schema":{"$ref":"#/components/schemas/MultiValueMapStringString"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Channel"}}}}}}},"put":{"tags":["channel-manager"],"operationId":"create_4","requestBody":{"content":{"application/json":{"schema":{"type":"object"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}},"post":{"tags":["channel-manager"],"operationId":"update_4","requestBody":{"content":{"application/json":{"schema":{"type":"object"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/ChannelFinder/resources/channels/{channelName}":{"get":{"tags":["channel-manager"],"operationId":"read_2","parameters":[{"name":"channelName","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/Channel"}}}}}},"put":{"tags":["channel-manager"],"operationId":"create_5","parameters":[{"name":"channelName","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Channel"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/Channel"}}}}}},"post":{"tags":["channel-manager"],"operationId":"update_5","parameters":[{"name":"channelName","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Channel"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/Channel"}}}}}},"delete":{"tags":["channel-manager"],"operationId":"remove_2","parameters":[{"name":"channelName","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/ChannelFinder":{"get":{"tags":["info-manager"],"operationId":"info","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}}},"/ChannelFinder/resources/scroll":{"get":{"tags":["channel-scroll"],"operationId":"query","parameters":[{"name":"allRequestParams","in":"query","required":true,"schema":{"$ref":"#/components/schemas/MultiValueMapStringString"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/Scroll"}}}}}}},"/ChannelFinder/resources/scroll/{scrollId}":{"get":{"tags":["channel-scroll"],"operationId":"query_1","parameters":[{"name":"scrollId","in":"path","required":true,"schema":{"type":"string"}},{"name":"searchParameters","in":"query","required":true,"schema":{"$ref":"#/components/schemas/MultiValueMapStringString"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/Scroll"}}}}}}},"/ChannelFinder/resources/processors/info":{"get":{"tags":["channel-processor-manager"],"operationId":"processorInfo","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"type":"string"}}}}}}}},"/ChannelFinder/resources/processors/count":{"get":{"tags":["channel-processor-manager"],"operationId":"processorCount","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"integer","format":"int64"}}}}}}},"/ChannelFinder/resources/channels/count":{"get":{"tags":["channel-manager"],"operationId":"queryCount","parameters":[{"name":"allRequestParams","in":"query","required":true,"schema":{"$ref":"#/components/schemas/MultiValueMapStringString"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"integer","format":"int64"}}}}}}},"/ChannelFinder/resources/channels/combined":{"get":{"tags":["channel-manager"],"operationId":"combinedQuery","parameters":[{"name":"allRequestParams","in":"query","required":true,"schema":{"$ref":"#/components/schemas/MultiValueMapStringString"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/SearchResult"}}}}}}}},"components":{"schemas":{"Channel":{"type":"object","properties":{"name":{"type":"string"},"owner":{"type":"string"},"properties":{"type":"array","items":{"$ref":"#/components/schemas/Property"}},"tags":{"type":"array","items":{"$ref":"#/components/schemas/Tag"}}},"xml":{"name":"channel"}},"Property":{"type":"object","properties":{"name":{"type":"string"},"owner":{"type":"string"},"value":{"type":"string"}},"xml":{"name":"property"}},"Tag":{"type":"object","properties":{"name":{"type":"string"},"owner":{"type":"string"},"channels":{"type":"array","items":{"$ref":"#/components/schemas/Channel"}}},"xml":{"name":"tag"}},"MultiValueMapStringString":{"type":"object","properties":{"all":{"type":"object","additionalProperties":{"type":"string"},"writeOnly":true},"empty":{"type":"boolean"}},"additionalProperties":{"type":"array","items":{"type":"string"}}},"Scroll":{"type":"object","properties":{"id":{"type":"string"},"channels":{"type":"array","items":{"$ref":"#/components/schemas/Channel"}}},"xml":{"name":"scroll"}},"SearchResult":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"channels":{"type":"array","items":{"$ref":"#/components/schemas/Channel"}}}}}}}
import json
import pprint
with open("ChannelFinder-swagger.json", "r") as f:
data = json.load(f)
pprint.pprint(data)
with open("ChannelFinder-swagger-formatted.json", "w") as f:
f.write(json.dumps(data, indent=2))
import pandas as pd
from open_api_definition_client.models.multi_value_map_string_string_all import MultiValueMapStringStringAll
from open_api_definition_client.api.channel_manager import query_2, read_2
from open_api_definition_client.types import Response
resp = query_2.sync_detailed(client=client, all_request_params=mvmssa)
client = Client(base_url="https://localhost:8443", verify_ssl=False)
from open_api_definition_client import Client
client = Client(base_url="https://localhost:8443", verify_ssl=False)
%history ~1/
# resp = query_2.sync_detailed(client=client, all_request_params=mvmssa)
mvmssa = MultiValueMapStringStringAll()
mvmssa = MultiValueMapStringStringAll??
mvmssa = MultiValueMapStringStringAll.from_dict({"~name": "SR*"})
mvmssa
resp = query_2.sync_detailed(client=client, all_request_params=mvmssa)
resp
import json; data = json.loads(resp.content)
data
data[0]
data[0]["properties"]
el = data[0]["properties"]
el
pd.DataFrame(data=data)
pd.DataFrame(data=el)
pd.DataFrame(data=data[-1])
data
data[-1]
pd.DataFrame(data=data[-1]["properties"])
pd.DataFrame(data=data[-1]["properties"]).filter?
pd.DataFrame(data=data[-1]["properties"]).where(name="family")
df = pd.DataFrame(data=data[-1]["properties"])
df
df.where?
df.where(df.name=="family")
df.filter(like="family")
df.filter(like="family", axis=0)
df
df == "family"
df.where(df.name=="family")
df.where?
df.loc["name"]
df.loc[df.name]
df.loc[df.name == "family"]
df
def find_my_field(df, field_name):
return df.loc[df.name == field_name]
find_my_field(df, "family")
find_my_field(df, "prop*")
def find_my_field(df, field_name):
return df.loc[df.name ~= field_name]
def find_my_field(df, field_name):
return df.loc[df.name.startswith(field_name)]
find_my_field(df, "prop*")
def find_my_field(df, field_name):
return df.loc[df.name.str.contains(field_name)]
find_my_field(df, "prop*")
find_my_field(df, "family")
find_my_field(df, "fami")
find_my_field(df, "fami*")
find_my_field(df, "fami*|prop*")
find_my_field(df, "fami*|prop")
find_my_field(df, "fami|prop")
%history -f /Users/mrakitin/src/NSLS-II/ChannelFinder-swagger/openapi-client-and-pandas.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment