Skip to content

Set up resources #7

@afuetterer

Description

@afuetterer

Basics

Code

  • RepositorySummary (4 fields, returned by list endpoint)
  • Repository (all fields, returned by get emdpoint)
  • add mixins for convenience
  • deal with link=Link(href='https://www.re3data.org/api/beta/repository/r3d100011956', rel='self'))
  • add XML parser
  • add build_response() function
  • add Response
  • add dataclass as return_type argument, new default
  • raise repositorynotfound when status is 404, use repo id in exc message
  • use response.request.params to check if endpoint was called and status is 404 -> raise
  • print nice error message in cli (try, except not found, print not found msg, exit 1)
  • add xsdata config.xml
  • overload method
  • add dispatch_return_type(response, return_type) function
  • mypy passes
  • size updated needs to be str as well, not comform to xsd
  • problem with dataverse

Testing

  • test 404 in cli
  • Add and update tests

Docs

  • update docstrings for new functions and classes
  • remove all TODOs
  • add resources to api reference docs
  • update examples in docs (readme, docstrings, ...)
  • Add description how to generate resources with xsdata cli, readme.md
  • Ignore *.md and *.xml in wheel
  • add a point about dataclass bindings in readme under features
  • document manual changes to autogenerated resources

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions