forked from adewg/ICAR
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added ErrorResource, BatchResult, removed collections
- Loading branch information
Showing
4 changed files
with
136 additions
and
46 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
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,30 @@ | ||
{ | ||
"description": "Returned by a batch POST event to return identity (meta), errors, and warnings for a resource.", | ||
"type": "object", | ||
"properties": { | ||
"id": { | ||
"type": "string", | ||
"description": "Unique identifier created in the system for this event. SHOULD be a UUID." | ||
}, | ||
"meta": { | ||
"$ref": "../types/icarMetaDataType.json", | ||
"description": "Metadata for the posted resource. Allows specification of the source, source Id to synchronise data." | ||
}, | ||
"errors": { | ||
"type": "array", | ||
"description": "An arry of errors for this resource.", | ||
"nullable": true, | ||
"items": { | ||
"$ref": "../resources/icarErrorResource.json" | ||
} | ||
}, | ||
"warnings": { | ||
"type": "array", | ||
"description": "An arry of warnings for this resource.", | ||
"nullable": true, | ||
"items": { | ||
"$ref": "../resources/icarErrorResource.json" | ||
} | ||
} | ||
} | ||
} |
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,31 @@ | ||
{ | ||
"description": "An RFC7807 compliant problem response for JSON APIs.", | ||
|
||
"type": "object", | ||
|
||
"properties": { | ||
"type": { | ||
"type": "string", | ||
"description": "Machine readable URI or code that defines the type of error or warning." | ||
}, | ||
"status": { | ||
"type": "integer", | ||
"description": "The HTTP status code applicable to this problem.", | ||
"format": "int32", | ||
"nullable": true | ||
}, | ||
"title": { | ||
"type": "string", | ||
"description": "A short, human-readable summary of the problem that SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization." | ||
}, | ||
"detail": { | ||
"type": "string", | ||
"description": "A human-readable explanation specific to this occurrence of the problem. Like title, this field’s value can be localized." | ||
}, | ||
"instance": { | ||
"type": "string", | ||
"description": "A URI reference or internal JSON document reference to the specific data item that caused the problem.", | ||
"nullable": 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