Skip to content

VBDev2Dev/SampleAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SampleAPI

Basic Entity Framework REST api and a vb client using the api.

Trusting ASP NET Core dev certs

https://www.hanselman.com/blog/DevelopingLocallyWithASPNETCoreUnderHTTPSSSLAndSelfSignedCerts.aspx

Running

  1. Press F5
  2. 2 projects will run. The api project and the client project. The swagger page is the documentation of the api and you can interact with the API on teh swagger page. The client application will generate sample movie records if none exist.

Notes

  • I did not implement update, delete, add functionality. I leave that to you to try to figure out. You could handle grid events and call the right API to get it to handle the right actions. PUT=Update, POST=create.
  • I did not implement api status checking. You can check the resposnse object and see if the resposnse is good or is in error. Read up on RestSharp to figure out how.
  • Usually you don't map ef models straight to your API model. You can use AutoMapper to map between your EF models and what you want to expose in your API models.

About

Basic Entity Framework REST api and a vb client using the api.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published