Replies: 2 comments
-
I actually like Option 2 here. Having the POCO library creates just a little more friction, not much, but enough. Ultimately the Hutch applications that will then use these libraries, will use/inherit those models as part of their API also. |
Beta Was this translation helpful? Give feedback.
-
You could extend the thought also - why are we building two libraries? But no - the libraries should do one thing well. We should stick to one for API, and one for job execution. |
Beta Was this translation helpful? Give feedback.
-
Moving discussion out of a code comment / PR thread:
Originally posted by @AndyRae in #49 (comment)
Basically, RACKit contains API Client services for the RQuest REST API, and as such also contains Model/DTO classes the request and response payloads for that REST API.
However, it may be desirable for these models to be used as-is elsewhere. In fact we know this to be true; We expect the as yet unnamed Query library to accept raw response payloads e.g. for a job and to create and return raw request payloads for submitting job results.
To avoid duplication, it's clear that both RACKit and the query library should use the exact same classes for this (and anything else in future that wants to.
The question then is around the packaging strategy and as I see it there are 2 sane options
Thoughts?
Beta Was this translation helpful? Give feedback.
All reactions