| Summary: | REST Interface - Unable to create WorkingTranslatedSnapshotData | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Community] PressGang CCMS | Reporter: | Lee Newson <lnewson> | ||||||||
| Component: | REST-API | Assignee: | Matthew Casperson <mcaspers> | ||||||||
| Status: | CLOSED WORKSFORME | QA Contact: | |||||||||
| Severity: | unspecified | Docs Contact: | |||||||||
| Priority: | unspecified | ||||||||||
| Version: | 1.x | CC: | cbredesen, topic-tool-list | ||||||||
| Target Milestone: | --- | ||||||||||
| Target Release: | --- | ||||||||||
| Hardware: | Unspecified | ||||||||||
| OS: | Unspecified | ||||||||||
| Whiteboard: | |||||||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||||||
| Doc Text: | Story Points: | --- | |||||||||
| Clone Of: | Environment: | ||||||||||
| Last Closed: | 2012-02-06 23:23:04 UTC | Type: | --- | ||||||||
| Regression: | --- | Mount Type: | --- | ||||||||
| Documentation: | --- | CRM: | |||||||||
| Verified Versions: | Category: | --- | |||||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||||
| Attachments: |
|
||||||||||
|
Description
Lee Newson
2012-02-06 01:55:29 UTC
Created attachment 559530 [details]
Server Error Log
Created attachment 559532 [details]
Test Case
Adding a Test Case to display the problem.
With the way the classes are set up I can't stop recursive references like this in the client code. But the "explicit" methods for setting the "One" property of the "Many" entity in the One-To-Many relationships (like the WorkingSnapshotTranslatedDataV1.setSnapshotTopicExplicit() method) have been removed. When creating new "Many" entities the REST interface will set the appropriate "One" properties. It is also now possible to create the "One" entity and populate the "Many" entities collection in one call to the create REST function. See the attached test case for an example. Created attachment 559571 [details]
An example of creating a "One" entity with a collection of "Many" entities in one REST call
|