Open candysmurf opened 7 years ago
Hi @candysmurf. I'd have few questions:
--duration value, -d value The amount of time to run the task [appends to start or creates a start time before a stop]
@andrzej-k, thanks for your good questions. Please see my reply below:
Currently, we have CLIs to show
I cannot give you details in this reply. But I can before its implementation for your review and suggestions.
Same reason as #1. Authentication and security only can be used in CLIs. The problem is that each Snap client will have to implement its own. The formality is same as the Restful API. e.g. http://127.0.0.1:8181/login that would require user/password.
It's for global plugin config items. We have APIs for doing update/delete global plugin config items but have no CLIs. If these two operations are not useful, we shouldn't have exposed APIs either. Please share your thoughts.
good question for this one. I have never used those parameters myself and am not sure how useful they're. I tried to bring the parity atm and didn't think of removing them. Please share your thoughts and suggestions.
In order to become compliant with OpenAPI Specification standard (formally known as Swagger) and removing business logic from the client, refactoring and/or addition to the following Snap APIs is necessary.
Adding new rest APIs
Current State
Those CLIs have no rest APIs. Business logic is mixed inside CLIs
Future State
Creating new Rest APIs and corresponding CLIs for the following:
Enhancing
create task
rest APICurrent State
CLI defines
task
struct type which is out sync with SnapTask
type already. Mainly two issuesTask
type does not have them.Future State
create task
CLImanifest
andworkflow
clearly from the server APIAdding new Rest APIs for authentication and SSL
Current State
Snap has CLIs to do encryption/decryption and user authentication but it has no corresponding RestAPIs.
Future State
Snap supports both RestAPI and CLI for authentication and SSL.
Adding CLIs for updating configs
Current State
Snap has Rest APIs for updating/deleting configs. There is no corresponding CLIs.
Future State
Snap supports CLIs for updating/deleting configs