Skip to content

Support receiving YAML (and JSON) #32

@rveznaver

Description

@rveznaver

RunDeck may return YAML or JSON data depending on the request header.
However, although the gem supports data export via yaml, internally it does everything via xml, including getting jobs. This poses a problem as jobs are mapped differently depending on the output format which makes comparing two jobs (one from yaml, the other one from the hash made via xml) extremely difficult.
It would be best if the gem supported receiving data in other formats. In addition, for this to work a custom parser needs to be added to httparty as yaml parsing was removed from the latest version. Note that RunDeck always specifies the format sent in the http header, so this should be handled automatically based on that (httparty already does this) as error codes are always sent in xml.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions