Files REST API (#19116).

Patch by Lucile Quirion and Jake Kemme.

git-svn-id: http://svn.redmine.org/redmine/trunk@16109 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2016-12-21 10:05:55 +00:00
parent f3627e2a3d
commit e068f855dc
5 changed files with 175 additions and 20 deletions

View File

@@ -34,6 +34,11 @@ class Redmine::ApiTest::ApiRoutingTest < Redmine::ApiTest::Routing
should_route 'GET /enumerations/issue_priorities' => 'enumerations#index', :type => 'issue_priorities'
end
def test_files
should_route 'GET /projects/foo/files' => 'files#index', :project_id => 'foo'
should_route 'POST /projects/foo/files' => 'files#create', :project_id => 'foo'
end
def test_groups
should_route 'GET /groups' => 'groups#index'
should_route 'POST /groups' => 'groups#create'