Skip to content

Commit

Permalink
Merge pull request #26 from nokia-wroclaw/supported-providers
Browse files Browse the repository at this point in the history
Supported providers
  • Loading branch information
SebastianSzkoluda authored Apr 9, 2018
2 parents 653058c + 8e487b2 commit 881a03d
Show file tree
Hide file tree
Showing 11 changed files with 12,585 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/Dashboard.Core/Entities/Project.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace Dashboard.Core.Entities
public class Project
{
public int Id { get; set; }

public string ProjectTitle { get; set; }
public string ApiHostUrl { get; set; }
public string ApiProjectId { get; set; }
public string ApiAuthenticationToken { get; set; }
Expand Down
2 changes: 2 additions & 0 deletions src/Dashboard.WebApi/ApiModels/Requests/CreateProject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ namespace Dashboard.WebApi.ApiModels.Requests
{
public class CreateProject
{
[Required]
public string ProjectTitle { get; set; }
[Required]
public string ApiHostUrl { get; set; }
[Required]
Expand Down
2 changes: 2 additions & 0 deletions src/Dashboard.WebApi/ApiModels/Requests/UpdateProject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ namespace Dashboard.WebApi.ApiModels.Requests
{
public class UpdateProject
{
[Required]
public string ProjectTitle { get; set; }
[Required]
public string ApiHostUrl { get; set; }
[Required]
Expand Down
2 changes: 2 additions & 0 deletions src/Dashboard.WebApi/Controllers/ProjectController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ public async Task<IActionResult> Create([FromBody]CreateProject model)
//TODO: change when automapper
var project = new Project()
{
ProjectTitle = model.ProjectTitle,
ApiAuthenticationToken = model.ApiAuthenticationToken,
ApiHostUrl = model.ApiHostUrl,
ApiProjectId = model.ApiProjectId,
Expand All @@ -63,6 +64,7 @@ public async Task<IActionResult> Put(int id, [FromBody]UpdateProject model)
var updatedProject = new Project()
{
Id = id,
ProjectTitle = model.ProjectTitle,
ApiAuthenticationToken = model.ApiAuthenticationToken,
ApiHostUrl = model.ApiHostUrl,
ApiProjectId = model.ApiProjectId,
Expand Down
Loading

0 comments on commit 881a03d

Please sign in to comment.