I have a small c# application that try to connect a rest api and make some calls. I tried to build my application with a useful design pattern but i am not sure which design pattern(s) i should use.
Properties of application:
- has possibilty to connect more than one api (has more than one base url)
- each api has many end-points like:
POST /process-groups/{id}/templates/uploadDELETE /process-groups/{id}PUT /process-groups/{id}GET /templates/{id}/download
- each api will do many calls like get some xml files, upload some xml files, update some properties, delete some objects via rest calls
- the updated files will be logged
- the errored files will be retried
- have some methods do smiliar works and just some small diffrences between each other; like has a method for geting files and another one for deleting file, thats have quite similiar method body.
- doesn't store anything at database.
-
HttpClient is using dor request calling
I already checked some similar questions but i didn't find something usefull for myself. Also it will nice if you can give some links for best pracrices.
Aucun commentaire:
Enregistrer un commentaire