Mudanças entre as edições de "API"
De MSTECH wiki
(Criou página com '== GET /DeviceUpdatePendents == Request http://localhost:2206/DeviceUpdatePendents?k4chave=1234&k1=1 Response 200 Ok [Headers] X-RecordCount -> 1 [ {...') |
|||
Linha 1: | Linha 1: | ||
== GET /DeviceUpdatePendents == | == GET /DeviceUpdatePendents == | ||
− | Request | + | === Request === |
http://localhost:2206/DeviceUpdatePendents?k4chave=1234&k1=1 | http://localhost:2206/DeviceUpdatePendents?k4chave=1234&k1=1 | ||
− | Response | + | === Response === |
− | 200 Ok | + | * 200 Ok |
− | [Headers] X-RecordCount -> 1 | + | * [Headers] X-RecordCount -> 1 <br /> |
+ | |||
[ | [ | ||
{ | { | ||
Linha 33: | Linha 34: | ||
== HEAD /DeviceUpdatePendents == | == HEAD /DeviceUpdatePendents == | ||
− | Request | + | === Request === |
http://localhost:2206/DeviceUpdatePendents?k4chave=1234&k1=1 | http://localhost:2206/DeviceUpdatePendents?k4chave=1234&k1=1 | ||
− | Response | + | === Response === |
− | 200 Ok | + | * 200 Ok |
− | [Headers] X-RecordCount -> 1 | + | * [Headers] X-RecordCount -> 1 |
== POST /UpdateStatus/{id:int} == | == POST /UpdateStatus/{id:int} == | ||
− | Request | + | === Request === |
http://localhost:2206/UpdateStatus | http://localhost:2206/UpdateStatus | ||
{ | { | ||
Linha 55: | Linha 56: | ||
"observation" : "passando downloaded = false, installed false" | "observation" : "passando downloaded = false, installed false" | ||
} | } | ||
− | Response | + | === Response === |
− | 201 Created | + | * 201 Created |
− | + | ||
+ | <br /> | ||
Onde: | Onde: | ||
− | K1: k1Chave | + | * K1: k1Chave |
− | K4: k4Chave | + | * K4: k4Chave |
− | updID: id do update | + | * updID: id do update |
− | installed: Caso seja “false”, ele passa a ser exibido na listagem de updates pendentes, independente do que esteja no campo downloaded. | + | * installed: Caso seja “false”, ele passa a ser exibido na listagem de updates pendentes, independente do que esteja no campo downloaded. |
Edição das 14h05min de 23 de maio de 2016
Índice
GET /DeviceUpdatePendents
Request
http://localhost:2206/DeviceUpdatePendents?k4chave=1234&k1=1
Response
- 200 Ok
- [Headers] X-RecordCount -> 1
[
{ "updID":326, "updNome":"Atualização 1.0", "updDescricao":"Atualização 1 teste", "updURL":"http://localhost:2106/Updates/Arquivo_6198239_2016-01-21_15-58-25.zip", "updData":"2016-01-25T10:02:05.97", "updSerial":"Teste", "updVersaoMajor":1, "updVersaoMinor":0, "updVersaoBuild":0, "updDeltaBXP":false, "updDeltaNome":null, "ent_id":"390414e2-1df3-df11-8e33-00155d0aca03", "updHash":"X", "updDataControle":"0001-01-01T00:00:00", "updDataInicioInstalacao":"2016-01-21T00:00:00", "updNomeArquivoInstall":"", " updNomeArquivoUninstall ":"", "updComandoInstall":"-silent", "updComandoUninstall":"-u", "updAgentUpdate":true, "updSituacao":1, "IsNew":false }
]
HEAD /DeviceUpdatePendents
Request
http://localhost:2206/DeviceUpdatePendents?k4chave=1234&k1=1
Response
- 200 Ok
- [Headers] X-RecordCount -> 1
POST /UpdateStatus/{id:int}
Request
http://localhost:2206/UpdateStatus {
"id": "", "k1": "57827F7513", "k4": "967233845181738216", "updID" : 334, "startDate" : "2016-05-16T18:00:00", "downloadDate" : "2016-02-21T18:00:00", "installationDate" : null, "downloaded" : "true", "installed": "false", "observation" : "passando downloaded = false, installed false"
}
Response
- 201 Created
Onde:
- K1: k1Chave
- K4: k4Chave
- updID: id do update
- installed: Caso seja “false”, ele passa a ser exibido na listagem de updates pendentes, independente do que esteja no campo downloaded.