Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Branch: master

Allow v3 app creation to accept in-line relationships.

Specifically, we push space_guid off the top level json
into {relationships: {space: guid}}.

As we move more endpoints to accept relationships,
Future Devs can look to our pattern of validation in
AppCreateMessage::Relationships /
BaseMessage::ToOneRelationshipValidator /

This has implications for how our eventing system slurps up data off the
message. We had to massage the data inside AppCreateMessage#initialize.
We don't really like this solution, but are waiting for more information,
or an event-specific story, before abstracting.

Pushing data into {relationships} also impacts how the
rspec_api_documentation gem can be used to automate doc creation.
Again, getting the gem to comply wasn't pretty, but given that the team
is planning on moving off that gem in the near future, wresting with it
didn't seem like it added much business value to the team.


Signed-off-by: Zach Robinson <>
Signed-off-by: Jonathan Berkhahn <>
Signed-off-by: Ben Watts <>
Signed-off-by: Zach Robinson <>
latest commit cceb0f0361
@jberkhahn jberkhahn authored zrob committed
Something went wrong with that request. Please try again.