Make rest clients return a single object
Registered by
Sean Dague
The current rest clients all run in a pattern of return resp (int), body(dict) for any call. This ends up being somewhat awkwards, especially when calls only care about one or the other, and has led to a lot of _, or , _ in the code. We should have all the rest clients return a single object (could inherit from dict) which has the return code as an attribute.
Blueprint information
- Status:
- Complete
- Approver:
- None
- Priority:
- Not
- Drafter:
- Sean Dague
- Direction:
- Needs approval
- Assignee:
- None
- Definition:
- Superseded
- Series goal:
- None
- Implementation:
- Unknown
- Milestone target:
- None
- Started by
- Completed by
- Matthew Treinish
Related branches
Related bugs
Sprints
Whiteboard
Gerrit topic: https:/
Addressed by: https:/
add bp:rest-
Addressed by: https:/
add basic rst sanity checker
(?)