Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install multiple runtimes in a single post request to packages #270

Closed
f1ypopper opened this issue Jun 4, 2021 · 3 comments
Closed

Install multiple runtimes in a single post request to packages #270

f1ypopper opened this issue Jun 4, 2021 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@f1ypopper
Copy link
Contributor

As far as I know we can currently install a single runtime by sending a post request to api's packages endpoint.I have added the functionality to install multiple runtimes using the packages endpoint. We can send a post request containing the following :

{"runtimes":[{"language":"python","version":"3.9.1"},{"language":"rust","version":"1.50.0"}]}

the server will loop through each runtime and install it, on succeeding it will add that to an installed list and the failed ones in the failed list with their for failing:

{
    "message": {
        "pass": [
            {
                "language": "python",
                "version": "3.9.1"
            },
            {
                "language": "rust",
                "version": "1.50.0"
            }
        ],
        "fail": []
    }
}

Is this a reasonable enhancement? If it is can you assign it to me?

@HexF
Copy link
Collaborator

HexF commented Jun 4, 2021

I can't see a proper reason, something like this could be implemented in the CLI maybe, but not in the API.

To implement it in the CLI i would recommend doing what apt does when specifying versions, where you put the version after an =.

@HexF HexF added the enhancement New feature or request label Jun 4, 2021
@f1ypopper
Copy link
Contributor Author

Ok great. Will start working on it

@HexF
Copy link
Collaborator

HexF commented Jun 5, 2021

#272

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants