From 7040a42cfc0e2a0a3c7d510bde7a75b06a4530db Mon Sep 17 00:00:00 2001 From: Nihad Abbasov Date: Fri, 6 Jun 2014 06:31:55 +0500 Subject: API: ability to set an import url when creating project for a specified user --- lib/api/projects.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/api/projects.rb') diff --git a/lib/api/projects.rb b/lib/api/projects.rb index 9d290c75ba9..cb72b49767d 100644 --- a/lib/api/projects.rb +++ b/lib/api/projects.rb @@ -78,6 +78,7 @@ module API # namespace_id (optional) - defaults to user namespace # public (optional) - if true same as setting visibility_level = 20 # visibility_level (optional) - 0 by default + # import_url (optional) # Example Request # POST /projects post do @@ -120,6 +121,7 @@ module API # snippets_enabled (optional) # public (optional) - if true same as setting visibility_level = 20 # visibility_level (optional) + # import_url (optional) # Example Request # POST /projects/user/:user_id post "user/:user_id" do @@ -134,7 +136,8 @@ module API :wiki_enabled, :snippets_enabled, :public, - :visibility_level] + :visibility_level, + :import_url] attrs = map_public_to_visibility_level(attrs) @project = ::Projects::CreateService.new(user, attrs).execute if @project.saved? -- cgit v1.2.1