Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Representor] Replace links with transitions #19

Merged
merged 1 commit into from
May 19, 2015
Merged

Conversation

kylef
Copy link
Member

@kylef kylef commented May 19, 2015

As per a conversation with @fosrias, these should be in one collection.

@kylef kylef force-pushed the kylef/links branch 2 times, most recently from 6a5ae52 to 2b74379 Compare May 19, 2015 16:12
@@ -153,8 +142,17 @@ public func serializeSiren(representor:Representor<HTTPTransition>) -> [String:A
representation["properties"] = representor.attributes
}

if representor.transitions.count > 0 {
representation["actions"] = map(representor.transitions, transitionToSirenAction)
let links = filter(representor.transitions) { $1.method == "GET" }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about link_transitions just to keep in everything in the transitions. The other could be action_transitions if you wanted. Just a thought.

fosrias added a commit that referenced this pull request May 19, 2015
[Representor] Replace links with transitions
@fosrias fosrias merged commit c00ffcb into master May 19, 2015
@kylef kylef deleted the kylef/links branch May 19, 2015 17:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants