-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
seperate wrappers for resource/collection look better
- Loading branch information
1 parent
b4da318
commit c790745
Showing
8 changed files
with
69 additions
and
71 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
node_modules/ | ||
preview/ | ||
package-lock.json |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
$id: WrapperCollection | ||
description: This is a generic request/response wrapper which contains both data and links which serve as hypermedia controls (HATEOAS). | ||
type: object | ||
properties: | ||
data: | ||
description: The wrapper for a collection is an array of objects. | ||
type: array | ||
items: | ||
type: object | ||
links: | ||
description: A set of hypermedia links which serve as controls for the client. | ||
type: object | ||
readOnly: true |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
$id: WrapperResource | ||
description: This is a generic request/response wrapper which contains both data and links which serve as hypermedia controls (HATEOAS). | ||
type: object | ||
properties: | ||
data: | ||
description: The wrapper for a resource is a single object. | ||
type: object | ||
links: | ||
description: A set of hypermedia links which serve as controls for the client. | ||
type: object | ||
readOnly: true |
This file was deleted.
Oops, something went wrong.
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
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
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