GET api/Days/Search/{id}?name={name}

Search for Day using either name OR id

Request Information

URI Parameters

NameDescriptionTypeAdditional information
name

Search using the name of the Day

string

Default value is

id

Search using the id of the Day

integer

Default value is -1

Body Parameters

None.

Response Information

Resource Description

returns a list of all Days or a specific day with defined parameters

IHttpActionResult

None.

Response Formats

application/json

Sample:
{
  "Days": [
    {
      "Id": 1,
      "Name": "Monday"
    },
    {
      "Id": 1,
      "Name": "Monday"
    }
  ],
  "ErrorMessage": []
}

text/json

Sample:
{
  "Days": [],
  "ErrorMessages": [
    "All errors recorded here"
  ]
}