Last active
November 10, 2015 18:42
-
-
Save AndrewHenderson/e284affd0f7772dee5bf to your computer and use it in GitHub Desktop.
This file contains 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
POST preapprovalsummaries | |
{ | |
data: { | |
type: 'preapprovalsummaries', | |
attributes: { | |
expenseReportId: 1, | |
preApprovalId: 2 | |
} | |
} | |
} | |
RESPONSE | |
{ | |
data: { | |
type: 'preapprovalsummaries', | |
id: 1-2, | |
attributes: { | |
expenseReportId: 1, | |
preApprovalId: 2, | |
foo: 'bar' | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@jmeas This is an endpoint for a preview resource when applying a Pre-Approval to an Expense Report. So it's a mutated resource that is never saved in the database.
GET didn't work quite to spec. This is one example we discussed.
We decided on the above after considering several alternatives.
Note: There would be more data than the single
foo: "bar"
pair of course.