Skip to content

franluque2/segundoParcialArqSoftII

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 

Repository files navigation

baseService

post task

curl -X POST -H 'Content-Type: application/json' -i http://localhost:8080/baseService/task --data '{"taskName":"name","userId":1,"projectId":1,"stateId":1,"body":"task"}'

comments post

curl -X POST -H 'Content-Type: application/json' -i http://localhost:8080/baseService/comment --data '{"name":"name","body":"hello","userId":1,"taskId":1}'

Esto tira error (como debería)

curl -X POST -H 'Content-Type: application/json' -i http://localhost:8080/baseService/comment --data '{"name":"name","body":"hello","userId":1,"taskId":3}'

post user

curl -X POST -H 'Content-Type: application/json' -i http://localhost:8080/baseService/user --data '{"name":"name","lastName":"ribetti", "adress":"123","email":"123","phone":"123","DNI":"12313","inscription":"2020-03-08","birthday":"2020-03-08","username":"root","password":"root","permits":"admin" }'

post project

curl -X POST -H 'Content-Type: application/json' -i http://localhost:8080/baseService/project --data '{"name":"name","description":"prueba del post","start":"2020-03-08","state":"1" }'

post para cambiar el usuario a cargo de una tarea

curl -X POST -H 'Content-Type: application/json' -i http://localhost:8080/baseService/taskChangeUser --data '{"userId":"3","taskId":"1"}'

post para cambiar el estado de una tarea

curl -X POST -H 'Content-Type: application/json' -i http://localhost:8080/baseService/taskChangeState --data '{"stateId":"1","taskId":"1"}'

post para agregar un projecto a un usuario (cambiar cuando lo complete)

curl -X POST -H 'Content-Type: application/json' -i http://localhost:8080/baseService/userAdd --data '{"userId":"1","projectId":"2"}'

obtener projecto por nombre

http://localhost:8080/baseService/projectName/segundoParcial

obtener user por nombre

http://localhost:8080/baseService/userName/FACUNDO

obtener task por nombre

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%