POST api/empresa/criaEmpresa
Request Information
URI Parameters
None.
Body Parameters
EmpresaViewModelName | Description | Type | Additional information |
---|---|---|---|
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:
{ "NomeEmpresa": "sample string 1", "CNPJ": "sample string 2" }
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Collection of EmpresaViewModelName | Description | Type | Additional information |
---|---|---|---|
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:
[ { "NomeEmpresa": "sample string 1", "CNPJ": "sample string 2" }, { "NomeEmpresa": "sample string 1", "CNPJ": "sample string 2" } ]