Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This set of resources is used to expose the states.


Table 22. Shelter resources

URI Description

Method

Relative URI

Get all

GET

/api/v{version}/states

Get by ID.

GET

/api/v{version}/states/{id}

Get by  Country IDGET/api/v{version}/states?CountryIdcountryId={Id}

 

...

 

Code Block
languagejs
titleA sample JSON return of a shelter
linenumberstrue
{
	"Id": 1,
	"Name": "VIC"
    "Country": {
        "Depiction": "Australia",
        "Uri": "/api/v1/countries/1"
    },
}

...