Description
Create utitilities for .VAR, @data.key and #Content_Type, to reduce magic variables.
Solution
Add utils/keys...? and
- add prefixes to it (global)
- add common funcs for transforming maps to prefixed versions
- add funcs for extracting data by keys with
headers, body, ...
- add extra func to
requests for using req to get data by prefixed key
- more...?
Alternatives
No alternatives.
Additional Context
Code is getting way to filled with magic @ or #, etc. and many funcs could be generalised into one modular one.
Description
Create utitilities for
.VAR,@data.keyand#Content_Type, to reduce magic variables.Solution
Add
utils/keys...?andheaders,body, ...requestsfor using req to get data by prefixed keyAlternatives
Additional Context
Code is getting way to filled with magic
@or#, etc. and many funcs could be generalised into one modular one.