Created
May 11, 2013 04:22
-
-
Save wrightling/5558881 to your computer and use it in GitHub Desktop.
Refactoring the request JSON for my rails-api. The "add_card.json" and "update_card.json" files show how my API is currently expecting the request JSON. The "take2" versions are in a format that seems more conformant with jsonapi.org.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"card":{"subject":"some subject","contents":"longer content to be practiced"}} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"cards":[{"subject":"some subject","contents":"longer content to be practiced"}]} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"card":{"subject":"some subject","contents":"longer content to be practiced"}} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"cards":[{"subject":"some subject","contents":"longer content to be practiced"}]} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment