apdavison / ebrains-validation-client

BSD 3-Clause "New" or "Revised" License
1 stars 4 forks source link

Methods should accept a single input parameter (wherever applicable) #7

Open appukuttan-shailesh opened 7 years ago

appukuttan-shailesh commented 7 years ago

Changing methods to accept a single parameter and determining the type of input internally.

simplifying the user interface by having only a single argument for a given object ID. Rather than explicitly specifying whether the id is a local path, a UUID or an alias, the client should infer which type of id has been passed.

E.g.

the signature should be something like: get_validation_test(self, test_id="", version="", **params) where test_id can be a local JSON file, a UUID, a URI, or an alias for a Test, and version can be a local JSON file, a UUID, or an alias for a TestInstance.