DataService#

class rubin.repertoire.DataService(**data)#

Bases: ApiService

A user-facing API service tied to a particular dataset.

Parameters:

data (Any)

Attributes Summary

model_config

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

Methods Summary

version_for_id(ivoa_standard_id)

Get the API rule for a specific IVOA standards version.

Attributes Documentation

model_config: ClassVar[ConfigDict] = {}#

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

Methods Documentation

version_for_id(ivoa_standard_id)#

Get the API rule for a specific IVOA standards version.

Parameters:
  • ivoa_standards_version – IVOA standards version to search for.

  • ivoa_standard_id (IvoaStandardId)

Returns:

Corresponding ApiVersionRule, or None if none was found.

Return type:

ApiVersionRule or None