From 95c2eb9876925ca412adf65c3992359f05b92d39 Mon Sep 17 00:00:00 2001
From: Megan Henning <meganhenning@flywheel.io>
Date: Wed, 12 Oct 2016 16:19:05 -0500
Subject: [PATCH] Update project recalc raml

---
 raml/resources/projects.raml                   | 16 ++++++++++++++--
 test/integration_tests/abao/abao_test_hooks.js |  2 +-
 2 files changed, 15 insertions(+), 3 deletions(-)

diff --git a/raml/resources/projects.raml b/raml/resources/projects.raml
index 83f469f9..63c91331 100644
--- a/raml/resources/projects.raml
+++ b/raml/resources/projects.raml
@@ -19,7 +19,19 @@
       404:
         description: Project was not found
 
-/{ProjectId}/template/recalc:
+/recalc:
+  post:
+    description: |
+      Iterates all projects that have a session template.
+      Recalculate if projects' sessions satisfy the template.
+      Returns list of modified session ids.
+    responses:
+      200:
+        description: |
+          Projects' sessions' compliance was recalculated.
+          Returns list of session that were modified.
+
+/{ProjectId}/recalc:
   uriParameters:
     ProjectId:
       type: string
@@ -27,7 +39,7 @@
   post:
     description: |
       Recalculate if sessions in the project satisfy the template.
-      Returns list of modified sessions
+      Returns list of modified session ids.
     responses:
       200:
         description: |
diff --git a/test/integration_tests/abao/abao_test_hooks.js b/test/integration_tests/abao/abao_test_hooks.js
index 6938caaf..471244e1 100644
--- a/test/integration_tests/abao/abao_test_hooks.js
+++ b/test/integration_tests/abao/abao_test_hooks.js
@@ -45,7 +45,7 @@ hooks.skip("POST /engine -> 200");
 
 // Skipping until merge with rest of project raml (So we have a ProjectId)
 hooks.skip("POST /projects/{ProjectId}/template -> 200")
-hooks.skip("POST /projects/{ProjectId}/template/recalc -> 200")
+hooks.skip("POST /projects/{ProjectId}/recalc -> 200")
 
 
 hooks.beforeEach(function (test, done) {
-- 
GitLab