Created
March 10, 2018 22:02
-
-
Save bilal-fazlani/1c323d57daa8bafc41ed4ff42f74a260 to your computer and use it in GitHub Desktop.
LiteDB.AutoAPI example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Person : LiteDbModel | |
{ | |
public string Name { get; set; } | |
public double Age { get; set; } | |
public string City { get; set; } | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void ConfigureServices(IServiceCollection services) | |
{ | |
services.AddMvc() | |
.AddAutoApi<Person>("/people"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment