https://github.com/ahmedabougabal/forecastprediction-fastendpointsapi
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.
https://github.com/ahmedabougabal/forecastprediction-fastendpointsapi
clean-architecture csh fastendpoints netcore-webapi requestendpointresponse
Last synced: 8 months ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/ahmedabougabal/forecastprediction-fastendpointsapi
- Owner: ahmedabougabal
- Created: 2025-03-06T20:03:27.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-03-08T13:23:54.000Z (11 months ago)
- Last Synced: 2025-03-08T14:23:14.134Z (11 months ago)
- Topics: clean-architecture, csh, fastendpoints, netcore-webapi, requestendpointresponse
- Language: C#
- Homepage:
- Size: 50.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# fastEndPointsAPIs
## request endpoint response pattern

---
## 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
