fc52421b55 
								
							 
						 
						
							
							
								
								Standardize use of `content` parameter in snippets API  
							
							... 
							
							
							
							There was some confusion over whether `code` or `content` is the right
parameter for snippets. Internally, the database stores
`content`. However:
1. Project snippets use `code`. `code` gets remapped in `content` in
`lib/api/project_snippets.rb`.
2. Personal snippets use `content`.
To unify these APIs, allow an alias of `content` to work for project
snippets.
Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/66673  
							
						 
						
							2019-08-28 22:54:07 -07:00  
				
					
						
							
							
								 
						
							
								b44a2c801a 
								
							 
						 
						
							
							
								
								Update specs to rails5 format  
							
							... 
							
							
							
							Updates specs to use new rails5 format.
The old format:
`get :show, { some: params }, { some: headers }`
The new format:
`get :show, params: { some: params }, headers: { some: headers }` 
							
						 
						
							2018-12-19 10:04:31 +11:00  
				
					
						
							
							
								 
						
							
								72b5c9af62 
								
							 
						 
						
							
							
								
								API: Catch empty code content for project snippets  
							
							
							
						 
						
							2018-08-21 11:49:06 +02:00  
				
					
						
							
							
								 
						
							
								c9ecf49d8c 
								
							 
						 
						
							
							
								
								Correct "autorize" typos  
							
							
							
						 
						
							2018-06-27 15:16:18 -05:00  
				
					
						
							
							
								 
						
							
								1a3bcc76ea 
								
							 
						 
						
							
							
								
								Fix the user-agent detail API endpoint for project snippets  
							
							
							
						 
						
							2018-01-17 14:30:07 +00:00  
				
					
						
							
							
								 
						
							
								2f40dac352 
								
							 
						 
						
							
							
								
								Refactor `have_http_status` into `have_gitlab_http_status` in the specs  
							
							
							
						 
						
							2017-10-20 10:13:18 +02:00  
				
					
						
							
							
								 
						
							
								f11049ab91 
								
							 
						 
						
							
							
								
								Merge branch 'api-delete-respect-headers' into 'master'  
							
							... 
							
							
							
							API: Respect the 'If-Unmodified-Since' for delete endpoints
See merge request !9621  
							
						 
						
							2017-08-30 09:56:17 +00:00  
				
					
						
							
							
								 
						
							
								fa030cbc85 
								
							 
						 
						
							
							
								
								replace `is_spam?` with `spam?`  
							
							
							
						 
						
							2017-08-29 11:14:42 +03:00  
				
					
						
							
							
								 
						
							
								915dd57fe2 
								
							 
						 
						
							
							
								
								Add tests for the unmodified header  
							
							
							
						 
						
							2017-08-28 17:10:34 +02:00  
				
					
						
							
							
								 
						
							
								72a7b30c9f 
								
							 
						 
						
							
							
								
								Change all `:empty_project` to `:project`  
							
							
							
						 
						
							2017-08-02 17:47:31 -04:00  
				
					
						
							
							
								 
						
							
								4c735e1bd4 
								
							 
						 
						
							
							
								
								fix spec order issue  
							
							
							
						 
						
							2017-07-07 17:02:54 +02:00  
				
					
						
							
							
								 
						
							
								a9e8af3386 
								
							 
						 
						
							
							
								
								add spec and project snippet user agent details endpoint  
							
							
							
						 
						
							2017-07-07 15:54:39 +02:00  
				
					
						
							
							
								 
						
							
								0430b76441 
								
							 
						 
						
							
							
								
								Enable Style/DotPosition Rubocop  👮  
							
							
							
						 
						
							2017-06-21 13:48:12 +00:00  
				
					
						
							
							
								 
						
							
								4464c22d6d 
								
							 
						 
						
							
							
								
								Support descriptions for snippets  
							
							
							
						 
						
							2017-05-31 07:17:03 +02:00  
				
					
						
							
							
								 
						
							
								ff76adb547 
								
							 
						 
						
							
							
								
								Unnecessary "include WaitForAjax" and "include ApiHelpers"  
							
							... 
							
							
							
							Removed all the unnecessary include of `WaitForAjax` and `ApiHelpers` in the specs.
Removed unnecessary usage of `api:true` 
							
						 
						
							2017-04-21 22:32:02 +02:00  
				
					
						
							
							
								 
						
							
								b2c2dfe545 
								
							 
						 
						
							
							
								
								Expose Project's & ProjectSnippet's VisibilityLevel as String  
							
							... 
							
							
							
							Instead of exposing the VisibilityLevel as Integer, expose it as
String `visibility` for Project and ProjectSnippet.
Filter queries also accept the `visibility` as String instead of
`visibility_level` as Integer.
Also remove the `public` boolean. 
							
						 
						
							2017-03-02 09:33:24 +01:00  
				
					
						
							
							
								 
						
							
								c280acb00b 
								
							 
						 
						
							
							
								
								Backport API to V3  
							
							
							
						 
						
							2017-02-28 08:32:39 +01:00  
				
					
						
							
							
								 
						
							
								86c58687b2 
								
							 
						 
						
							
							
								
								Return 204 for delete endpoints  
							
							
							
						 
						
							2017-02-28 08:32:38 +01:00  
				
					
						
							
							
								 
						
							
								2ace39f242 
								
							 
						 
						
							
							
								
								Spam check and reCAPTCHA improvements  
							
							
							
						 
						
							2017-02-21 13:32:49 -03:00  
				
					
						
							
							
								 
						
							
								c70dfbc686 
								
							 
						 
						
							
							
								
								Add a custom pagination matcher  
							
							
							
						 
						
							2017-02-16 15:38:40 +01:00  
				
					
						
							
							
								 
						
							
								5985b55769 
								
							 
						 
						
							
							
								
								Remove deprecated 'expires_at' from project snippets API  
							
							
							
						 
						
							2017-02-07 12:16:00 +01:00  
				
					
						
							
							
								 
						
							
								34918d94c0 
								
							 
						 
						
							
							
								
								Use `add_$role` helper in snippets specs  
							
							
							
						 
						
							2017-02-02 14:03:08 +00:00  
				
					
						
							
							
								 
						
							
								c63194ce6f 
								
							 
						 
						
							
							
								
								Check public snippets for spam  
							
							... 
							
							
							
							Apply the same spam checks to public snippets (either personal snippets
that are public, or public snippets on public projects) as to issues on
public projects. 
							
						 
						
							2017-02-02 10:23:51 +00:00  
				
					
						
							
							
								 
						
							
								eb4f15571d 
								
							 
						 
						
							
							
								
								Changed API spec files to describe the correct class  
							
							... 
							
							
							
							Restore changes for api spec files
Fix error in rspec Users
Delete extra space Repositories-spec 
							
						 
						
							2016-11-28 10:55:27 -07:00  
				
					
						
							
							
								 
						
							
								b7bf1f3a9d 
								
							 
						 
						
							
							
								
								Grapify the projects snippet API  
							
							
							
						 
						
							2016-11-21 17:25:34 +01:00  
				
					
						
							
							
								 
						
							
								e43c4060b6 
								
							 
						 
						
							
							
								
								api: expose web_url for project entities  
							
							... 
							
							
							
							This allows web hooks to have a URL back to entities without having to
generate it themselves. 
							
						 
						
							2016-08-24 10:32:31 -04:00  
				
					
						
							
							
								 
						
							
								1d268a89de 
								
							 
						 
						
							
							
								
								adds second batch of tests changed to active tense  
							
							
							
						 
						
							2016-08-09 15:11:39 +01:00  
				
					
						
							
							
								 
						
							
								abca19da8b 
								
							 
						 
						
							
							
								
								Use HTTP matchers if possible  
							
							
							
						 
						
							2016-06-27 20:10:42 +02:00  
				
					
						
							
							
								 
						
							
								d5267dfd0d 
								
							 
						 
						
							
							
								
								Prevent private snippets in public/internal projects from being leaked via API  
							
							... 
							
							
							
							Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/15580  
							
						 
						
							2016-04-25 12:02:06 -07:00  
				
					
						
							
							
								 
						
							
								befa7a9c17 
								
							 
						 
						
							
							
								
								Don't remove `ProjectSnippet#expires_at` from API  
							
							... 
							
							
							
							See https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/3103 
This partially reverts commit 836d593033 
							
						 
						
							2016-03-09 16:56:42 -05:00