Skip to content

Implements a minimal WeatherForecast Predication FastEndPoints API project that is built on top of the .Net core API using the best practices defined by the library with adding mappers, services, Validators to the codebase to keep everything clean.

Notifications You must be signed in to change notification settings

ahmedabougabal/ForecastPrediction-FastEndPointsAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

fastEndPointsAPIs

request endpoint response pattern

image


mappers

specialized classes to ease the manual conversion of data between different types of objects within the application.

where these objects are request DTOs, domain entities, and response DTOs.

DTOs are type of objects that are meant for transferring data between different layers of an application (like between presentation layer and business logic layer).

in the context of APIs:

  • request DTOs : are the type of data objects that come from client to server

  • response DTOs : type of data being sent to the client

  • nutshell : request DTOs would be the objects that hold the data coming in from the client, and response DTOs would be the objects that hold the data being sent back to the client.

  • domain entities are the objects that represent the core business concepts in the application.

now discussing mappers : they are used to transform request DTOs into domain entities and then transform those domain entities into response DTOs.

nutshell : don't expose those domain entities instead, use mappers to control what data to be sent and recieved.

-- mapper classes are used as singletons according to documentation. please refer to this documentation link : https://fast-endpoints.com/docs/domain-entity-mapping#mapping-logic-in-a-separate-class


adds endpoints documentation as per fastendpoints docs manual

image

About

Implements a minimal WeatherForecast Predication FastEndPoints API project that is built on top of the .Net core API using the best practices defined by the library with adding mappers, services, Validators to the codebase to keep everything clean.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages