Skip to content

falsadoo/AspCodingChallenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ASP .Net 6 Coding Challenge For this project we need to create a Rest API with No views for our Command model. The command Model is already configured as the following:

public class Command
{
    [Key]
    [Required]
    public int Id { get; set; }

    [Required]
    public string HowTo { get; set; }
    
    [Required]
    public string Line { get; set; }
    
    [Required]
    public string Platform { get; set; }
}

We have also have one controller with the all CRUD operation defined but not all is implemented. Requirements MockCommanderRepo In the project mock repository class we need to implement all the missing CRUD operations. ** CommandsController** In this controller we need to implement all the missing CRUD operations endpoints. Please make sure to handle users errors correctly. Command Model / DTO Validation We need to add the following validations rules:

  • HowTo need a min value of 4 characters and max value of 250 characters.
  • Platform will only have 4 characters no more or less e.g. MSSP.

Please clone this Repo and create a branch with your name

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages