Skip to content

Instantly share code, notes, and snippets.

@bilal-fazlani
Created March 10, 2018 22:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bilal-fazlani/1c323d57daa8bafc41ed4ff42f74a260 to your computer and use it in GitHub Desktop.
Save bilal-fazlani/1c323d57daa8bafc41ed4ff42f74a260 to your computer and use it in GitHub Desktop.
LiteDB.AutoAPI example
public class Person : LiteDbModel
{
public string Name { get; set; }
public double Age { get; set; }
public string City { get; set; }
}
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