Re: Creating REST API service from yaml
Hi If you have any more feedback and ideas for improving that tool you are welcome to share. Also we love contributions so code patches / PRs is welcome http://camel.apache.org/contributing On Tue, Mar 6, 2018 at 6:01 PM, wrote: > OK, I will wait for XML support in 2.21, and in the mean time, I managed > to utilize RestDslGeneratorTest.java to produce Java REST DSL by dropping > the unvisible method withGeneratedTime. > Thank you. > Btw, I'm puzzled about why Nabble forum displayed a new thread and I have > sent mail with the exactly same subject as before. > __ > > Napomena: > Ova elektronička poruka i njeni prilozi mogu sadržavati povjerljive i/ili > povlaštene informacije, a namijenjena je isključivo za upotrebu naznačenog > primatelja. Ako ste ovu poruku primili greškom, molimo Vas da o tome bez > odlaganja obavijestite pošiljatelja, da uništite izvornu poruku i njene > priloge i bez odlaganja poruku i njene priloge izbrišete iz Vašeg sistema. > Neovlaštena uporaba, distribucija, otkrivanje, umnožavanje ili izmjena ove > poruke je zabranjena. Raiffeisenbank Austria d.d. ne daje niti ne prihvaća > pravno obvezujuće izjave putem elektroničkih poruka osim ukoliko drugačije > nije izričito navedeno. Budući da komunikacija internetom nije zaštićena, > Raiffeisenbank Austria d.d. ne prihvaća odgovornost za sadržaj ove poruke, > kao ni za eventualnu štetu nastalu zbog zaraženosti ove poruke virusom ili > drugim štetnim programom, te zbog eventualnih tehničkih problema prilikom > dostave ove poruke. > > Disclaimer: > This e-mail message and any attachment may contain confidental and/or > privileged information and is intended for use by the indicated addressee > only. If you have received this message in error, please notify the sender > immediately, destroy the original message and any attachment and delete this > message and any attachment from your system. Unauthorized use, distribution, > disclosure, reproduction, or alteration of this e-mail message is forbidden. > Raiffeisenbank Austria d.d. neither makes nor accepts legally binding > statements via e-mail unless otherwise stated. Considering that internet > communication is not secured, Raiffeisenbank Austria d.d. is not responsible > for the content of this message, for potential damage occured due to > infection of this message with a virus or other malicious program, and for > potential technical problems during delivery of this message. -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2
Creating REST API service from yaml
OK, I will wait for XML support in 2.21, and in the mean time, I managed to utilize RestDslGeneratorTest.java to produce Java REST DSL by dropping the unvisible method withGeneratedTime. Thank you. Btw, I'm puzzled about why Nabble forum displayed a new thread and I have sent mail with the exactly same subject as before. __ Napomena: Ova elektronička poruka i njeni prilozi mogu sadržavati povjerljive i/ili povlaštene informacije, a namijenjena je isključivo za upotrebu naznačenog primatelja. Ako ste ovu poruku primili greškom, molimo Vas da o tome bez odlaganja obavijestite pošiljatelja, da uništite izvornu poruku i njene priloge i bez odlaganja poruku i njene priloge izbrišete iz Vašeg sistema. Neovlaštena uporaba, distribucija, otkrivanje, umnožavanje ili izmjena ove poruke je zabranjena. Raiffeisenbank Austria d.d. ne daje niti ne prihvaća pravno obvezujuće izjave putem elektroničkih poruka osim ukoliko drugačije nije izričito navedeno. Budući da komunikacija internetom nije zaštićena, Raiffeisenbank Austria d.d. ne prihvaća odgovornost za sadržaj ove poruke, kao ni za eventualnu štetu nastalu zbog zaraženosti ove poruke virusom ili drugim štetnim programom, te zbog eventualnih tehničkih problema prilikom dostave ove poruke. Disclaimer: This e-mail message and any attachment may contain confidental and/or privileged information and is intended for use by the indicated addressee only. If you have received this message in error, please notify the sender immediately, destroy the original message and any attachment and delete this message and any attachment from your system. Unauthorized use, distribution, disclosure, reproduction, or alteration of this e-mail message is forbidden. Raiffeisenbank Austria d.d. neither makes nor accepts legally binding statements via e-mail unless otherwise stated. Considering that internet communication is not secured, Raiffeisenbank Austria d.d. is not responsible for the content of this message, for potential damage occured due to infection of this message with a virus or other malicious program, and for potential technical problems during delivery of this message.
Re: Creating REST API service from yaml
This will be in the upcoming Camel 2.21 release so wait for that release to come out On Mon, Mar 5, 2018 at 4:15 PM, wrote: > Hi Claus, > > thank you for your suggestion. I tried to utilize it, however I can't > figure out how to do it. > When I tried to compile test java classes found here: > https://github.com/apache/camel/tree/master/tooling/swagger-rest-dsl-generator/src/test/java/org/apache/camel/generator/swagger > it complains in RestDslXmlGeneratorTest.java about: "The method > toXml(Swagger) is undefined for the type RestDslGenerator" , and > in RestDslGeneratorTest.java it complains about: "The method > withGeneratedTime(Instant) from the type > RestDslSourceCodeGenerator is not visible" > > When I tried to addjust an existing project's pom.xml, to define a new > goal of generating restdsl from yaml, add neccesary dependencies for it, > and I don't know what else is needed, > I received some strange complaint like this: "Plugin execution not covered > by lifecycle configuration" and I was stuck there. > Do you have somewhere the simplest possible instruction on how to use this > code generator, please? > __ > > Napomena: > Ova elektronička poruka i njeni prilozi mogu sadržavati povjerljive i/ili > povlaštene informacije, a namijenjena je isključivo za upotrebu naznačenog > primatelja. Ako ste ovu poruku primili greškom, molimo Vas da o tome bez > odlaganja obavijestite pošiljatelja, da uništite izvornu poruku i njene > priloge i bez odlaganja poruku i njene priloge izbrišete iz Vašeg sistema. > Neovlaštena uporaba, distribucija, otkrivanje, umnožavanje ili izmjena ove > poruke je zabranjena. Raiffeisenbank Austria d.d. ne daje niti ne prihvaća > pravno obvezujuće izjave putem elektroničkih poruka osim ukoliko drugačije > nije izričito navedeno. Budući da komunikacija internetom nije zaštićena, > Raiffeisenbank Austria d.d. ne prihvaća odgovornost za sadržaj ove poruke, > kao ni za eventualnu štetu nastalu zbog zaraženosti ove poruke virusom ili > drugim štetnim programom, te zbog eventualnih tehničkih problema prilikom > dostave ove poruke. > > Disclaimer: > This e-mail message and any attachment may contain confidental and/or > privileged information and is intended for use by the indicated addressee > only. If you have received this message in error, please notify the sender > immediately, destroy the original message and any attachment and delete this > message and any attachment from your system. Unauthorized use, distribution, > disclosure, reproduction, or alteration of this e-mail message is forbidden. > Raiffeisenbank Austria d.d. neither makes nor accepts legally binding > statements via e-mail unless otherwise stated. Considering that internet > communication is not secured, Raiffeisenbank Austria d.d. is not responsible > for the content of this message, for potential damage occured due to > infection of this message with a virus or other malicious program, and for > potential technical problems during delivery of this message. -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2
Creating REST API service from yaml
Hi Claus, thank you for your suggestion. I tried to utilize it, however I can't figure out how to do it. When I tried to compile test java classes found here: https://github.com/apache/camel/tree/master/tooling/swagger-rest-dsl-generator/src/test/java/org/apache/camel/generator/swagger it complains in RestDslXmlGeneratorTest.java about: "The method toXml(Swagger) is undefined for the type RestDslGenerator" , and in RestDslGeneratorTest.java it complains about: "The method withGeneratedTime(Instant) from the type RestDslSourceCodeGenerator is not visible" When I tried to addjust an existing project's pom.xml, to define a new goal of generating restdsl from yaml, add neccesary dependencies for it, and I don't know what else is needed, I received some strange complaint like this: "Plugin execution not covered by lifecycle configuration" and I was stuck there. Do you have somewhere the simplest possible instruction on how to use this code generator, please? __ Napomena: Ova elektronička poruka i njeni prilozi mogu sadržavati povjerljive i/ili povlaštene informacije, a namijenjena je isključivo za upotrebu naznačenog primatelja. Ako ste ovu poruku primili greškom, molimo Vas da o tome bez odlaganja obavijestite pošiljatelja, da uništite izvornu poruku i njene priloge i bez odlaganja poruku i njene priloge izbrišete iz Vašeg sistema. Neovlaštena uporaba, distribucija, otkrivanje, umnožavanje ili izmjena ove poruke je zabranjena. Raiffeisenbank Austria d.d. ne daje niti ne prihvaća pravno obvezujuće izjave putem elektroničkih poruka osim ukoliko drugačije nije izričito navedeno. Budući da komunikacija internetom nije zaštićena, Raiffeisenbank Austria d.d. ne prihvaća odgovornost za sadržaj ove poruke, kao ni za eventualnu štetu nastalu zbog zaraženosti ove poruke virusom ili drugim štetnim programom, te zbog eventualnih tehničkih problema prilikom dostave ove poruke. Disclaimer: This e-mail message and any attachment may contain confidental and/or privileged information and is intended for use by the indicated addressee only. If you have received this message in error, please notify the sender immediately, destroy the original message and any attachment and delete this message and any attachment from your system. Unauthorized use, distribution, disclosure, reproduction, or alteration of this e-mail message is forbidden. Raiffeisenbank Austria d.d. neither makes nor accepts legally binding statements via e-mail unless otherwise stated. Considering that internet communication is not secured, Raiffeisenbank Austria d.d. is not responsible for the content of this message, for potential damage occured due to infection of this message with a virus or other malicious program, and for potential technical problems during delivery of this message.
Re: Creating REST API service from yaml
Hi See the restdsl maven plugin at Apache Camel https://github.com/apache/camel/blob/master/tooling/maven/camel-restdsl-swagger-plugin/src/main/docs/camel-package-maven-plugin.adoc The XML support is coming in Camel 2.21. On Sun, Feb 25, 2018 at 9:04 PM, wrote: > Hi, > > is there in Camel or in Fuse a wizard that takes yaml file as input, and > gives as output a REST DSL skeleton code in Java or Spring XML? > __ > > Napomena: > Ova elektronička poruka i njeni prilozi mogu sadržavati povjerljive i/ili > povlaštene informacije, a namijenjena je isključivo za upotrebu naznačenog > primatelja. Ako ste ovu poruku primili greškom, molimo Vas da o tome bez > odlaganja obavijestite pošiljatelja, da uništite izvornu poruku i njene > priloge i bez odlaganja poruku i njene priloge izbrišete iz Vašeg sistema. > Neovlaštena uporaba, distribucija, otkrivanje, umnožavanje ili izmjena ove > poruke je zabranjena. Raiffeisenbank Austria d.d. ne daje niti ne prihvaća > pravno obvezujuće izjave putem elektroničkih poruka osim ukoliko drugačije > nije izričito navedeno. Budući da komunikacija internetom nije zaštićena, > Raiffeisenbank Austria d.d. ne prihvaća odgovornost za sadržaj ove poruke, > kao ni za eventualnu štetu nastalu zbog zaraženosti ove poruke virusom ili > drugim štetnim programom, te zbog eventualnih tehničkih problema prilikom > dostave ove poruke. > > Disclaimer: > This e-mail message and any attachment may contain confidental and/or > privileged information and is intended for use by the indicated addressee > only. If you have received this message in error, please notify the sender > immediately, destroy the original message and any attachment and delete this > message and any attachment from your system. Unauthorized use, distribution, > disclosure, reproduction, or alteration of this e-mail message is forbidden. > Raiffeisenbank Austria d.d. neither makes nor accepts legally binding > statements via e-mail unless otherwise stated. Considering that internet > communication is not secured, Raiffeisenbank Austria d.d. is not responsible > for the content of this message, for potential damage occured due to > infection of this message with a virus or other malicious program, and for > potential technical problems during delivery of this message. -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2
Creating REST API service from yaml
Hi, is there in Camel or in Fuse a wizard that takes yaml file as input, and gives as output a REST DSL skeleton code in Java or Spring XML? __ Napomena: Ova elektronička poruka i njeni prilozi mogu sadržavati povjerljive i/ili povlaštene informacije, a namijenjena je isključivo za upotrebu naznačenog primatelja. Ako ste ovu poruku primili greškom, molimo Vas da o tome bez odlaganja obavijestite pošiljatelja, da uništite izvornu poruku i njene priloge i bez odlaganja poruku i njene priloge izbrišete iz Vašeg sistema. Neovlaštena uporaba, distribucija, otkrivanje, umnožavanje ili izmjena ove poruke je zabranjena. Raiffeisenbank Austria d.d. ne daje niti ne prihvaća pravno obvezujuće izjave putem elektroničkih poruka osim ukoliko drugačije nije izričito navedeno. Budući da komunikacija internetom nije zaštićena, Raiffeisenbank Austria d.d. ne prihvaća odgovornost za sadržaj ove poruke, kao ni za eventualnu štetu nastalu zbog zaraženosti ove poruke virusom ili drugim štetnim programom, te zbog eventualnih tehničkih problema prilikom dostave ove poruke. Disclaimer: This e-mail message and any attachment may contain confidental and/or privileged information and is intended for use by the indicated addressee only. If you have received this message in error, please notify the sender immediately, destroy the original message and any attachment and delete this message and any attachment from your system. Unauthorized use, distribution, disclosure, reproduction, or alteration of this e-mail message is forbidden. Raiffeisenbank Austria d.d. neither makes nor accepts legally binding statements via e-mail unless otherwise stated. Considering that internet communication is not secured, Raiffeisenbank Austria d.d. is not responsible for the content of this message, for potential damage occured due to infection of this message with a virus or other malicious program, and for potential technical problems during delivery of this message.