POST api/Turmas
Cria uma nova turma.
Request Information
URI Parameters
None.
Body Parameters
Objeto "Turma", contendo os dados da nova turma.
TurmaName | Description | Type | Additional information |
---|---|---|---|
Id | integer |
None. |
|
Nome | string |
None. |
|
Ano | integer |
None. |
|
Turno | string |
None. |
|
Curso | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "Id": 1, "Nome": "sample string 2", "Ano": 3, "Turno": "sample string 4", "Curso": "sample string 5" }
application/xml
Sample:
Sample not available.
text/xml
Sample:
Sample not available.
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Retorna se foi criada com sucesso, ou caso contrário, já existe.
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.