GET api/Category

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Collection of CategoryModel
NameDescriptionTypeAdditional information
Id

integer

None.

Nome

string

None.

CategoriaPaiId

integer

None.

Ativo

boolean

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "$id": "1",
    "Id": 1,
    "Nome": "sample string 2",
    "CategoriaPaiId": 3,
    "Ativo": true
  },
  {
    "$ref": "1"
  }
]

application/xml, text/xml

Sample:
<ArrayOfCategoryModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Dino.API.Models">
  <CategoryModel>
    <Ativo>true</Ativo>
    <CategoriaPaiId>3</CategoriaPaiId>
    <Id>1</Id>
    <Nome>sample string 2</Nome>
  </CategoryModel>
  <CategoryModel>
    <Ativo>true</Ativo>
    <CategoriaPaiId>3</CategoriaPaiId>
    <Id>1</Id>
    <Nome>sample string 2</Nome>
  </CategoryModel>
</ArrayOfCategoryModel>