Here is the documentation about API created for Lactafarma mobile app, for getting started you might be able to get information about:
- Groups of drugs which are divided by family
- Aliases used by drug, on this way you will be aware about different naming for any drug
- Brands around every drug, which it's interesting for getting drugs more cheaper than private ones
- Drugs with detailed information about risk when you are making breastfeeding (this information is extracted from www.e-lactancia.org)
- Alerts about updates on drug information or new risk level
This project was developed for getting knowledge on .NET Core platform using MVC6, the implementation has a lot of scenarios for real API implementations on ASP.NET Core paradigm, main problems were solved on this project are:
- Cookie Authentication
- Extending ASP.NET Core Identity
- Entity Framework Core 2.0
- FluentApi on Entity Framework Core
- .NET Core 2.0
- MVC6.
- Repository pattern
- NLog tracing exceptions
- IMemoryCache support
- Dependency injection native support
- Custom routing for versioning
- Error handling and tracking for incorrect requests
- Disabling default routes
- Filtering data by user requests (IHttpAccessor)
- Extending ClaimsPrincipal for customizing UserIdentity entity
- Register new users
- Login existing users
- Supporting Language resolving
- Custom Paging and Ordering for huge number of items is retrieved
- Deal with migrations on NLayer solution for UserIdentity SQL scripts generation
Note: It's important to mention that Visual Studio 2017 15.3 update is used as IDE for developing and SQL Server 2014 for storing data, also best practices on coding were customized using ReSharper (new File Layout).
On my projects typically is used the N-Layer Onion architecure approach, in some cases Domain Driven Design is intended to be applied, so always Domain layer has a lot of responsability for dealing with Front-Back layers, so the full picture is the following:
Web project with business logic about Startup services configuration (middleware), Controllers, bower packages, general settings...
Proxy project for getting requests on Web and passing out this information on Repositories.
Domain core project where domain objects are stored, kind of agreement with analysts or business users.
EntityFramework Core 2.0 project, where DbContext is configured and all entities are registered and mapped with FluentAPI provided by EF.
Generic implementations or helpers ready to be used by rest of projects, kinda framework approach.
This project was a workaround for dealing with IdentityUser object on environments with dependency injection on class library project (which resides EF Core)
A customized API documentation with Swagger is available for you, everything needed for creating qualified, accurated & elegant website under ASP.NET Core 2 paradigm is also available on the repository.
NEW HEADER
XML DOCUMENTATION ENABLED BY ENTITY
SWASHBUCKLE NUGET PACKAGE ON ASP.NET CORE 2.0
If you want to see more, please visit us on following link: LactafarmaApi Help Documentation
If you run into any problems or issues, please let us know so we can address and fix them right away. You can report issues on GitHub: