Ndr interface Dependency Agreement
Note that the NDR will only populate a small subset of the attributes defined in the Atom feed. The list of attributes to be populated is as follows:
5.5.4.MetadataMetadata refers to the data associated with each record in the NDR, such as ownership, relative links, current version index and versions. This data can be read, but cannot be written, by clients. The current version of the entity is stored in the The following schema defines the XML component that is returned from one of the Get (metadata) operations.
Note that the information contained within an Events file and the Metadata is essentially the same. It is just that the Events file contains all updates for a given date, whereas Metadata contains all updates for a given Entity. 5.5.5.Type DefinitionsThe following schema defines types used in the previously listed schemas.
5.6.ValidationThe following validation is performed on each request:
|
Request |
Success Scenario |
HTTP Status Code |
GET |
The data corresponding to an Entity is read from the NDR. |
200 OK |
POST |
A new Entity is created in the NDR. |
201 Created |
GET |
There is no update since the previous GET. |
304 Not Modified |
GET |
The requested resource does not exist. (Note: This is still considered a valid request.) |
404 Not Found |
GET (Dog) |
The Dog earbrand has changed. (Note: This is still considered a valid request.) |
301 Moved Permanently |
GET (Person) |
The Person has moved state. (Note: This is still considered a valid request.) |
301 Moved Permanently |
Request |
Validation |
Error Scenario |
HTTP Status Code |
Any |
Authentication |
Invalid credentials. |
401 Unauthorized |
Any |
Integrity of URL |
The URL is malformed. |
404 Not Found |
POST |
Structural Integrity |
The body of the request is malformed (i.e. it does not conform to the XSD). |
400 Bad Request |
POST |
Write Permissions |
The request attempts to modify read-only data. |
401 Unauthorized |
POST |
Update is not based on stale data |
The ETag included in the POST request does not correspond to the version of the Entity held by the NDR. |
412 Precondition Failed |
Figure – Sequence of Events in Naming a Greyhound. The steps highlighted in blue impact the NDR.
Step |
Description |
Call to NDR |
Comment |
1 |
An individual lodges a naming application through their State Body. |
(none) |
This process by which this occurs may vary from state to state. |
2 |
The State Body validates the request. |
(none) |
This process by which this occurs may vary from state to state. |
3 |
The State Body lodges the naming application with GA via the Naming Application interface. |
(none) |
The Naming Application interface is supported by the GA Web Portal, rather than by the NDR. It is not defined in the current document. |
4 |
GA applies business rules to determine which, if any of the requested names are assigned to the greyhound. |
(none) |
GA may, at its discretion, assign a name other than one of the requested names. |
5 |
If a name is assigned, the new name is pushed from GA into the NDR. |
Dog – Update (Name) |
|
6 |
The State Body receives updates from the NDR. |
Get (Events) |
|