Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Project
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Coscine
backend
apis
Project
Commits
238bc5be
Commit
238bc5be
authored
3 years ago
by
Benedikt Heinrichs
Browse files
Options
Downloads
Patches
Plain Diff
Fix: Deal with "give all" endpoint (coscine/issues#2015)
parent
bbb28e69
No related branches found
No related tags found
4 merge requests
!196
Release: Sprint/2022 05 :robot:
,
!194
Chore: 2.6.2
,
!193
Fix: Deal with "give all" endpoints (coscine/issues#2015)
,
!192
Fix: Deal with "give all" endpoints (coscine/issues#2015)
Changes
1
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Project/Controllers/SearchController.cs
+2
-25
2 additions, 25 deletions
src/Project/Controllers/SearchController.cs
with
2 additions
and
25 deletions
src/Project/Controllers/SearchController.cs
+
2
−
25
View file @
238bc5be
using
System
;
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Web
;
...
...
@@ -39,17 +39,6 @@ namespace Coscine.Api.Project.Controllers
_analyticsLogObject
=
new
AnalyticsLogObject
();
}
/// <summary>
/// Searchs no filter
/// </summary>
/// <returns>Ok</returns>
[
HttpGet
(
"[controller]/allNoFilter/"
)]
public
IActionResult
SearchNoFilter
()
{
var
user
=
_authenticator
.
GetUser
();
return
Ok
(
GetSearchResults
(
user
.
Id
,
""
,
""
));
}
/// <summary>
/// Returns results for the search word
/// </summary>
...
...
@@ -62,18 +51,6 @@ namespace Coscine.Api.Project.Controllers
return
Ok
(
GetSearchResults
(
user
.
Id
,
encodedSearchWord
,
""
));
}
/// <summary>
/// Returns searched projects with no filter
/// </summary>
/// <param name="projectId">Id of the project</param>
/// <returns>Ok</returns>
[
HttpGet
(
"[controller]/projectNoFilter/{projectId}"
)]
public
IActionResult
SearchProjectNoFilter
(
string
projectId
)
{
var
user
=
_authenticator
.
GetUser
();
return
Ok
(
GetSearchResults
(
user
.
Id
,
""
,
projectId
));
}
/// <summary>
/// Returns searched projects
/// </summary>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment