Giter Site home page Giter Site logo

Comments (13)

levice14 avatar levice14 commented on July 1, 2024

@mbettan could you specify here what do you mean by API?

CloudSlang already has an API in io.cloudslang.lang.api package called Slang when embedding CS as a library. It has methods like compiling & running flows, working with events & metadata. Upper modules like CLI, builder, a webapp, other apps that integrate CS are supposed to communicate through this API.

also, if you are interested, here is an example app that integrates CS and exposes a REST API..

from score.

mbettan avatar mbettan commented on July 1, 2024

All customers are looking for executing CSlang workflows from API instead of using CLI for executing workflows. It seems that's already available, why it's not documented officially ? Which operations are available today?

from score.

levice14 avatar levice14 commented on July 1, 2024

doc on how to embed CS as a library (api and stuff): http://cloudslang-docs.readthedocs.org/en/v0.9/developer_cloudslang.html

you can execute any flow / op using CS API just like in the case of the CLI

if you have enhancement ideas on the subjects, let us know :bowtie:

from score.

mbettan avatar mbettan commented on July 1, 2024

It's only JAVA API available ? We don't have a standard REST API like OO?

from score.

orius123 avatar orius123 commented on July 1, 2024

for a RESTful API you can use the example app @Bonczidai linked above, if something is missing/outdated there feel free to open a PR/issue in this project, I know there were plans for making an API, but don't know when it is going to happen.

from score.

mbettan avatar mbettan commented on July 1, 2024

Yes - That's why I opened this issue to add this to BackLog

All customers are requiring this, JAVA API is a good start, but really need a RESTful API

Can you add this as ER to backlog?

from score.

levice14 avatar levice14 commented on July 1, 2024

opened the issue in cloud-slang repo and added to the backlog, closing this one

from score.

lrevnic avatar lrevnic commented on July 1, 2024

Do you have details on the customer requirements around this REST API?
What do they want to do: Run management, Scheduling, Promotion, Edit flows etc.?

@mbettan one way to achieve some of the aboves today is to use OO 10.50 REST APIs can be used to trigger/monitor/schedule CloudSlang flows in the same way you do for the OO flows.

from score.

mbettan avatar mbettan commented on July 1, 2024

Yes - All prospects are requiring an API for running workflows at least. I would say that edit flows, promotion, scheduling are optionnal at this stage. Basic workflows run from outside is a must have

Yes - I now that OO Enterprise can be the API for CloudSlang, but remember two things

  1. OO 10.50 doesn't support our current CloudSlang release with new YAML langage
  2. All CloudSlang customers or prospects are not OO Enterprise users

This RESTFul API is a must have today

from score.

lrevnic avatar lrevnic commented on July 1, 2024

Yeap. Another option would be to use/demo OO 10.50 Community Edition (free) to run, schedule etc CloudSlang flows. I got your point that the users may be different than OO ones.

from score.

mbettan avatar mbettan commented on July 1, 2024

You cannot explain to Opensource users they have to use a proprietary solution for getting a Restful API.
Some customers told me that the good way could be also to leverage Docker API to start a docker image with CloudSlang CLI, as workaround.

from score.

orius123 avatar orius123 commented on July 1, 2024

there is a cloudslang image, how does it solve the API issue though?

from score.

mbettan avatar mbettan commented on July 1, 2024

Docker Engine provides an API to start a Docker container. Then, you can query Docker APi to start Docker CloudSlang Image, which contains your workflows and will be executed at start-up

It' my customer idea, not mine. Not sure it's a good idea

from score.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.