POST api/empresa/criaEmpresa
Request Information
URI Parameters
None.
Body Parameters
EmpresaViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| id_empresa | integer |
None. |
|
| cd_empresa | integer |
Required |
|
| NomeEmpresa | string |
Required String length: inclusive between 3 and 100 |
|
| CNPJ | string |
Required String length: inclusive between 14 and 18 |
Request Formats
application/json, text/json
Sample:
{
"id_empresa": 1,
"cd_empresa": 1,
"NomeEmpresa": "sample string 2",
"CNPJ": "sample string 3"
}
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Collection of EmpresaViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| id_empresa | integer |
None. |
|
| cd_empresa | integer |
Required |
|
| NomeEmpresa | string |
Required String length: inclusive between 3 and 100 |
|
| CNPJ | string |
Required String length: inclusive between 14 and 18 |
Response Formats
application/json, text/json
Sample:
[
{
"id_empresa": 1,
"cd_empresa": 1,
"NomeEmpresa": "sample string 2",
"CNPJ": "sample string 3"
},
{
"id_empresa": 1,
"cd_empresa": 1,
"NomeEmpresa": "sample string 2",
"CNPJ": "sample string 3"
}
]