WebAPI_02
1.0.0
联系方式:Á[email protected]
此文件需要 appsettings.json 来连接到数据库。
curl --location -g --request GET '{{Caminho}}Assinante/RetornarTodos/'
json
[
{
"id" : 1 ,
"nome" : " Aaron " ,
"senha" : " SenhaTeste " ,
"email" : " aaron@ " ,
"dataInclusao" : " 2021-10-07T00:00:00 " ,
"dataCancelamento" : null ,
"ativo" : true
},
{
"id" : 2 ,
"nome" : " EU " ,
"senha" : " SENHATESTE " ,
"email" : " 2222TESTE@ " ,
"dataInclusao" : " 2021-10-07T00:00:00 " ,
"dataCancelamento" : null ,
"ativo" : true
},
{
"id" : 3 ,
"nome" : " TESTELL " ,
"senha" : " SENHATESTE " ,
"email" : " 44@ " ,
"dataInclusao" : " 2021-10-07T00:00:00 " ,
"dataCancelamento" : null ,
"ativo" : true
},
{
"id" : 4 ,
"nome" : " TESTEAA " ,
"senha" : " SENHATESTE " ,
"email" : " 12565656@ " ,
"dataInclusao" : " 2021-10-07T00:00:00 " ,
"dataCancelamento" : null ,
"ativo" : true
}
]
curl --location -g --request GET '{{Caminho}}Assinante/RetornarPorId/1'
json
{
"id" : 1 ,
"nome" : " Aaron " ,
"senha" : " SenhaTeste " ,
"email" : " aaron@ " ,
"dataInclusao" : " 2021-10-07T00:00:00 " ,
"dataCancelamento" : null ,
"ativo" : true
}
json
{
"id" : 9 ,
"nome" : " USUARI9999 " ,
"senha" : " SENHATESTE " ,
"email" : " 999999@GAMNIL>COM " ,
"dataCancelamento" : null ,
"ativo" : true
}
{
"content" : " Usuario Removido. Id: 9 Nome: USUARI9999 Email: 999999@GAMNIL>COM " ,
"contentType" : null ,
"statusCode" : 200
}