PUT api/Aeroporto/{id}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id | integer |
Required |
Body Parameters
AeroportoName | Description | Type | Additional information |
---|---|---|---|
Id | integer |
None. |
|
Nome | string |
None. |
|
Cidade | string |
None. |
|
Pais | string |
None. |
|
Voos | Collection of Voo |
None. |
|
Voos1 | Collection of Voo |
None. |
Request Formats
application/json, text/json
Sample:
{ "Id": 1, "Nome": "sample string 2", "Cidade": "sample string 3", "Pais": "sample string 4", "Voos": [ { "Id": 1, "DataPartida": "2025-09-04T01:01:50.6694648-05:00", "DataChegada": "2025-09-04T01:01:50.6694648-05:00", "OrigemId": 1, "DestinoId": 1, "AviaoId": 1, "TipoViagem": "sample string 7", "HoraPartida": "00:00:00.1234567", "HoraChegada": "00:00:00.1234567", "Bilhetes": [ { "Id": 1, "VooId": 1, "PassageiroId": 1, "Assento": "sample string 4", "Fila": "sample string 5", "Classe": "sample string 6", "Tarifa": 7.0, "Passageiro": { "Id": 1, "Nome": "sample string 2", "Apelido": "sample string 3", "TipoDocumento": "sample string 4", "Bilhetes": [] } } ], "Aviao": { "Id": 1, "Nome": "sample string 2", "Modelo": "sample string 3", "LugaresEconomica": 4, "LugaresExecutiva": 5, "Ativo": true, "Voos": [] } } ], "Voos1": [ { "Id": 1, "DataPartida": "2025-09-04T01:01:50.6694648-05:00", "DataChegada": "2025-09-04T01:01:50.6694648-05:00", "OrigemId": 1, "DestinoId": 1, "AviaoId": 1, "TipoViagem": "sample string 7", "HoraPartida": "00:00:00.1234567", "HoraChegada": "00:00:00.1234567", "Bilhetes": [ { "Id": 1, "VooId": 1, "PassageiroId": 1, "Assento": "sample string 4", "Fila": "sample string 5", "Classe": "sample string 6", "Tarifa": 7.0, "Passageiro": { "Id": 1, "Nome": "sample string 2", "Apelido": "sample string 3", "TipoDocumento": "sample string 4", "Bilhetes": [] } } ], "Aviao": { "Id": 1, "Nome": "sample string 2", "Modelo": "sample string 3", "LugaresEconomica": 4, "LugaresExecutiva": 5, "Ativo": true, "Voos": [] } } ] }
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
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.