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
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
Merge requests
!2
Topic/157 user profile api
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Topic/157 user profile api
Topic/157-userProfileApi
into
Product/118-migrationForProjectAPI
Overview
0
Commits
4
Pipelines
1
Changes
37
Merged
Benedikt Heinrichs
requested to merge
Topic/157-userProfileApi
into
Product/118-migrationForProjectAPI
5 years ago
Overview
0
Commits
4
Pipelines
1
Changes
37
Expand
coscine/issues#157
0
0
Merge request reports
Compare
Product/118-migrationForProjectAPI
Product/118-migrationForProjectAPI (base)
and
latest version
latest version
19c22553
4 commits,
5 years ago
37 files
+
848
−
948
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
37
Search (e.g. *.vue) (Ctrl+P)
src/Project/Controllers/ProjectController.cs
+
6
−
8
Options
using
Coscine.Api.Project.Exceptions
;
using
Coscine.Api.Project.Factories
;
using
Coscine.Api.Project.Models
;
using
Coscine.Api.Project.Models
;
using
Coscine.Api.Project.ReturnObjects
;
using
Coscine.ApiCommons
;
using
Coscine.ApiCommons.Exceptions
;
using
Coscine.ApiCommons.Factories
;
using
Microsoft.AspNetCore.Mvc
;
using
System
;
using
System.Linq
;
@@ -14,7 +15,7 @@ namespace Coscine.Api.Project.Controllers
public
ProjectController
()
{
_authenticator
=
new
Authenticator
(
this
);
_authenticator
=
new
Authenticator
(
this
,
Program
.
Configuration
);
}
[
Route
(
"[controller]"
)]
@@ -28,10 +29,7 @@ namespace Coscine.Api.Project.Controllers
where
projectRole
.
User
==
user
&&
projectRole
.
Role
.
DisplayName
==
"Owner"
select
projectRole
).
Any
()
).
Select
((
project
)
=>
{
return
new
ProjectObject
(
project
.
Id
,
project
.
Description
,
project
.
DisplayName
,
project
.
Organization
,
project
.
StartDate
,
project
.
EndDate
,
project
.
Keywords
);
});
).
Select
((
project
)
=>
new
ProjectObject
(
project
.
Id
,
project
.
Description
,
project
.
DisplayName
,
project
.
Organization
,
project
.
StartDate
,
project
.
EndDate
,
project
.
Keywords
));
}));
}
Loading