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 [ {...') |
(→Request) |
||
| (5 revisões intermediárias pelo mesmo usuário não estão sendo mostradas) | |||
| Linha 1: | Linha 1: | ||
| + | == Introdução == | ||
| + | Header para o post: <br /> | ||
| + | * Header: Content-Type ; Value: application/json | ||
| + | |||
== GET /DeviceUpdatePendents == | == GET /DeviceUpdatePendents == | ||
| − | Request | + | === Request === |
| − | http:// | + | http://192.168.10.22:8003/DeviceUpdatePendents?k4chave=75350840328352&k1=57827F7513 |
| − | Response | + | |
| − | 200 Ok | + | === Response === |
| − | [Headers] X-RecordCount -> 1 | + | * 200 Ok |
| + | * [Headers] X-RecordCount -> 1 <br /> | ||
| + | |||
[ | [ | ||
{ | { | ||
| Linha 33: | Linha 39: | ||
== HEAD /DeviceUpdatePendents == | == HEAD /DeviceUpdatePendents == | ||
| − | Request | + | === Request === |
| − | http:// | + | http://192.168.10.22:8003/DeviceUpdatePendents?k4chave=75350840328352&k1=57827F7513 |
| − | Response | + | |
| − | 200 Ok | + | === Response === |
| − | [Headers] X-RecordCount -> 1 | + | * 200 Ok |
| + | * [Headers] X-RecordCount -> 1 | ||
== POST /UpdateStatus/{id:int} == | == POST /UpdateStatus/{id:int} == | ||
| − | Request | + | === Request === |
http://localhost:2206/UpdateStatus | http://localhost:2206/UpdateStatus | ||
{ | { | ||
| − | |||
"k1": "57827F7513", | "k1": "57827F7513", | ||
"k4": "967233845181738216", | "k4": "967233845181738216", | ||
| Linha 55: | Linha 61: | ||
"observation" : "passando downloaded = false, installed false" | "observation" : "passando downloaded = false, installed false" | ||
} | } | ||
| − | |||
| − | |||
| + | === Response === | ||
| + | * 201 Created | ||
| − | + | <br /> | |
| − | K1: k1Chave | + | === Legenda: === |
| − | K4: k4Chave | + | * K1: k1Chave |
| − | updID: id do update | + | * K4: k4Chave |
| − | installed: Caso seja “false”, ele passa a ser exibido na listagem de updates pendentes, independente do que esteja no campo downloaded. | + | * 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. | ||
Edição atual tal como às 16h32min de 12 de julho de 2016
Índice
Introdução
Header para o post:
- Header: Content-Type ; Value: application/json
GET /DeviceUpdatePendents
Request
http://192.168.10.22:8003/DeviceUpdatePendents?k4chave=75350840328352&k1=57827F7513
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://192.168.10.22:8003/DeviceUpdatePendents?k4chave=75350840328352&k1=57827F7513
Response
- 200 Ok
- [Headers] X-RecordCount -> 1
POST /UpdateStatus/{id:int}
Request
http://localhost:2206/UpdateStatus {
"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
Legenda:
- 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.