POST api/{lang}/Concept/Post
Crea en la base el concepto recibido.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| lang | string |
None. |
Body Parameters
ViewModel del concepto a crear
ConceptViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | string |
None. |
|
| Name | string |
Required |
|
| Code | string |
None. |
|
| Price | decimal number |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": "sample string 1",
"Name": "sample string 2",
"Code": "sample string 3",
"Price": 1.0
}
application/xml, text/xml
Sample:
<ConceptViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Tempo.Core.WebAPI.ViewModels"> <Code>sample string 3</Code> <Id>sample string 1</Id> <Name>sample string 2</Name> <Price>1</Price> </ConceptViewModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
De ser exitosa la creación retorna 200. De lo contrario retorna 400
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.