Using YAML as a HTTP request body instead of JSON for workflows/workbooks/actions

Registered by Renat Akhmerov

Now if we create new workbook/workflow/action we send a request with a body like:

{"definition": "escaped YAML"}

It is problematic when we, for example, use command line tools like "curl" to work with REST endpoints directly because we have to:
1. Take YAML definition and convert it to escaped JSON compatible string (not even clear how to do it in a simple way)
2. Create that JSON structure and put that huge escaped string into it.
3. Send a request using providing that JSON file

It would be much simple just specify YAML file in the first place. For this to work we need to modify controllers and corresponding client code for workbooks, workflows and actions.

Blueprint information

Status:
Complete
Approver:
Renat Akhmerov
Priority:
High
Drafter:
Renat Akhmerov
Direction:
Approved
Assignee:
Nikolay Makhotkin
Definition:
Approved
Series goal:
Accepted for kilo
Implementation:
Implemented
Milestone target:
milestone icon 2015.1
Started by
Nikolay Makhotkin
Completed by
Renat Akhmerov

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bp/mistral-yaml-request-body,n,z

Addressed by: https://review.openstack.org/135940
    Use YAML text instead of JSON in HTTP body

Addressed by: https://review.openstack.org/135950
    Use YAML text instead of JSON in HTTP body (client side)

Gerrit topic: https://review.openstack.org/#q,topic:refactor_workbooks_service,n,z

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.