-
Notifications
You must be signed in to change notification settings - Fork 0
GET /projets -> Renvoie la liste des projets
[{"id":2,"nom":"Projet1","created_at":"2013-07-09T09:36:02.167Z","updated_at":"2013-07-09T09:36:02.167Z"}]
GET /tickets -> Renvoie la liste des tickets
[{"id":1,"titre":"Premier Ticket","description":"Un premier ticket pas trop dur","importance":20,"poids":10,"tempsPris":null,"created_at":"2013-07-09T11:30:37.721Z","updated_at":"2013-07-09T11:30:37.721Z","projet_id":null},{"id":2,"titre":"Deuxieme Ticket","description":"Un deuxieme ticket super dur","importance":25,"poids":20,"tempsPris":null,"created_at":"2013-07-09T11:31:30.380Z","updated_at":"2013-07-09T11:31:30.380Z","projet_id":null},{"id":4,"titre":"Documentation Agricommand","description":"Cuong doit écrire toute la doc car Nelly a la flemme","importance":null,"poids":null,"tempsPris":null,"created_at":"2013-07-09T12:12:25.811Z","updated_at":"2013-07-09T12:12:25.811Z","projet_id":3},{"id":5,"titre":"Migration Agricommand","description":"Nelly doit migrer Agricommand car Cuong lui passe le relai","importance":null,"poids":null,"tempsPris":null,"created_at":"2013-07-09T12:12:32.179Z","updated_at":"2013-07-09T12:12:32.179Z","projet_id":3},{"id":6,"titre":"Test unitaire","description":"Romain doit atteindre 95% de couverture","importance":null,"poids":null,"tempsPris":null,"created_at":"2013-07-09T12:13:14.722Z","updated_at":"2013-07-09T12:13:14.722Z","projet_id":4}]
GET /tickets/:idProjet -> Renvoie la liste des tickets associés à un projet :
GET /tickets/3
[{"id":4,"titre":"Documentation Agricommand","description":"Cuong doit écrire toute la doc car Nelly a la flemme","importance":null,"poids":null,"tempsPris":null,"created_at":"2013-07-09T12:12:25.811Z","updated_at":"2013-07-09T12:12:25.811Z","projet_id":3},{"id":5,"titre":"Migration Agricommand","description":"Nelly doit migrer Agricommand car Cuong lui passe le relai","importance":null,"poids":null,"tempsPris":null,"created_at":"2013-07-09T12:12:32.179Z","updated_at":"2013-07-09T12:12:32.179Z","projet_id":3}]
POST /projets Ajoute un projet passé en JSON
Contenu de la requete POST (exemple) :
{"nom":"4ptest"}
DELETE /projets/:idProjet
DELETE /projets/5 -> Efface le projet dont l'ID est 5
GET /tickets/:idProjet/:idSprint
GET /tickets/4/1 -> Renvoie la liste des tickets du projet id=4, pour le sprint id = 1
[{"id":1,"titre":"Premier Ticket","description":"Un premier ticket pas trop dur","importance":20,"poids":10,"tempsPris":null,"created_at":"2013-07-09T11:30:37.721Z","updated_at":"2013-07-09T11:30:37.721Z","projet_id":4,"sprint_id":1},{"id":6,"titre":"Test unitaire","description":"Romain doit atteindre 95% de couverture","importance":null,"poids":null,"tempsPris":null,"created_at":"2013-07-09T12:13:14.722Z","updated_at":"2013-07-09T12:13:14.722Z","projet_id":4,"sprint_id":1}]
GET /users -> Renvoie la liste des users
[{"id":1,"nom":"JeF","login":"jef","password":"jef","email":"[email protected]","created_at":"2013-08-30T08:57:56.507Z","updated_at":"2013-08-30T09:00:14.182Z"}]
GET /polls -> Renvoie la liste des sondages
[{"id":1,"open":true,"open_date":"2013-08-30T11:29:06.921Z","close_date":"2013-08-30T11:29:14.785Z","created_at":"2013-08-30T11:32:13.809Z","updated_at":"2013-08-30T11:32:13.809Z"}]
GET /polls/:idPoll -> Renvoie un sondage, avec la liste des participants inclus, les participants incluant eux meme la liste de leur choix !
{"id":1,"open":true,"open_date":"2013-08-30T11:29:06.921Z","close_date":"2013-08-30T11:29:14.785Z","created_at":"2013-08-30T11:32:13.809Z","updated_at":"2013-08-30T11:32:13.809Z","participants":[{"id":1,"created_at":"2013-08-30T11:32:18.818Z","updated_at":"2013-08-30T12:22:54.339Z","user_id":3,"choices":[{"id":1,"name":"monChoix","created_at":"2013-08-30T11:27:48.278Z","updated_at":"2013-08-30T12:22:47.870Z","poll_id":1,"participant_id":1}]}]}