question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

REST API to create workspaces from a devfile

See original GitHub issue

Description

Currently there is a way to create a workspace from a devfile https://github.com/eclipse/che/blob/master/wsmaster/che-core-api-devfile/src/main/java/org/eclipse/che/api/devfile/server/DevfileService.java#L98-L116

We can post a devfile content.

I would like to be able to create workspaces from content like this one: https://github.com/redhat-developer/devfile/blob/master/Devfile.yaml

Let say I’m a client like the dashboard where I could create content of such devfile, then this devfile is referencing other files by doing something like: local: petclinic.yaml

How could I submit such files through REST API ?

would it be something like MULTIPART_FORM_DATA / https://github.com/codenvy-legacy/che-core/blob/3.x/platform-api/che-core-api-factory/src/main/java/org/eclipse/che/api/factory/FactoryService.java#L166

or to submit content with a all-in-one format

---BEGIN DEVFILE---
content
---END DEVFILE---
---BEGIN petclinic.yaml---
content
---END petclinic.yaml---

something else ?

somehow related to https://github.com/eclipse/che/issues/11549

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:14 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
sleshchenkocommented, Feb 19, 2019

I’m OK with

local: petclinic.yaml
localContent:  | 
<file content here>
1reaction
garagatyicommented, Feb 19, 2019

This would be reflected in the JSON Schema of devfile. Let’s consult with authors of the JSON Schema @l0rd @mshaposhnik @sleshchenko @skabashnyuk WDYT guys about the changes suggested by Florent? If you are OK with them I’ll work on it

Read more comments on GitHub >

github_iconTop Results From Across the Web

Chapter 4. Authoring devfiles - Red Hat Customer Portal
Locally as a file, and deployed using crwctl . In a collection of devfiles, known as a devfile registry. When creating a workspace,...
Read more >
Introduction to Devfile - GitHub Pages
or sending a devfile to a dedicated REST API using curl/swagger, which will create new workspace and return it's configuration:.
Read more >
Re: [che-dev] How to collect and persist all workspace logs?
Only create and run workspace with the devfile. ... I assume that adding a `debug` parameter to the REST API call that creates...
Read more >
Creating the Db2 tutorial workspace in Red Hat CodeReady ...
A devfile to create a z/OS Connect CodeReady Workspace. ... When using the URL option to add your devfile from the z/OS Connect...
Read more >
Welcome to the Amazon WorkSpaces API Reference
Amazon WorkSpaces enables you to provision virtual, cloud-based Microsoft Windows or Amazon Linux desktops for your users, known as WorkSpaces.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found