HorseGenerics
Publish an [GET PUT POST DELETE] API easily to a list of <T> classes using generics and Horse
- Quiet · last change 2-11-2021
- ★ 7 on GitHub
README
Horse Generics
Publishes an [GET PUT POST DELETE] API easily to a list of <T> classes using generics and Horse
Motivation
With basic infrastructure of HORSE {AUTHENTICATION} {JSON} {EXCEPTION} Create a new endpoint with one line of code for a model = Class <T>
How it works
Use Generic Controller TApiController<T> to create [GET PUT POST DELETE] routes in your API
class function Dominios.Publish: String;
begin
TApiController<TConsulta>.Publicar('/consulta');
TApiController<TMedicao>.Publicar('/medicao');
end;It returns
GET /consulta/
GET /consulta/:codigo
POST /consulta/
PUT /consulta/:codigo
DELETE /consulta/:codigoRequires
Horse https://github.com/HashLoad/horse
Dataset.Serialize https://github.com/viniciussanchez/dataset-serialize
Ricardo Rocha pinned projects https://github.com/ricardodarocha/
https://github.com/ricardodarocha/RttiInterceptor

