Forum - Downloading XML with swagger-codegen built API

  • This topic has 0 replies, 1 voice, and was last updated 4 days, 1 hour ago by Daniel Davis.
Viewing 1 post (of 1 total)
  • Author
  • #68761
    Daniel Davis

    I have written some code which downloads a bibliographic record as XML, and then processes the XML to turn it into MARC XML, and then pumps it into pymarc, a Python library for MARC processing, and from there I can save it as MARCXML or MARC21 binary.

    This uses Python requests, rather than the catalog API as generated by swagger-codegen. Has anyone been successful in getting the swagger-codegen heavy client to also allow more low-level requests, and such?

    It isn’t clear to me that the swagger generated API supports changing the media type, or getting “raw” responses. Since getting MARC is probably a common use case, I expect someone else has also experienced this and may have some insights.

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.