POST api/Alunos
Cria um registo na tabela Alunos na base de dados
Request Information
URI Parameters
None.
Body Parameters
Objeto Aluno a ser salvo na base de dados
AlunosName | Description | Type | Additional information |
---|---|---|---|
Id | integer |
None. |
|
Nome | string |
None. |
|
Apelido | string |
None. |
|
DataNascimento | date |
None. |
|
Telefone | string |
None. |
|
Morada | string |
None. |
|
string |
None. |
||
Turma | integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "Id": 1, "Nome": "sample string 2", "Apelido": "sample string 3", "DataNascimento": "2025-06-16T08:15:14.0382819-05:00", "Telefone": "sample string 5", "Morada": "sample string 6", "Email": "sample string 7", "Turma": 1 }
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
Resposta do tipo IHttpActionResult
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.