Is it possible to Create CRUD Rest API with jbang apache camel and only xml? - jpa

Hello i want to create a crud REST API with jbang apache camel and only with xml/yaml and routes generated from the openapi. Is that possible?
I am stuck with the following issue.
javax.persistence.PersistenceException: No Persistence provider for EntityManager named camel.

Related

How to invoke a Springboot Rest Service from ADF 12c

I have a Rest webservice to invoke from Oracle ADF. The service simply returns a success flag and a message. No need to have a Data Control for this.
Is there a rest client that I can use to invoke this rest service?
Other than 'REST Data Control, there is not any in-built in REST client available
in 'Oracle ADF'. Since 'Oracle ADF' is J2EE framework, you can any other java library like Jersey to invoke the RESTful service.
Rest client create http request GET, PUT, POST etc... to restful webservice.
You can use
org.springframework.web.client.RestTemplate
To call restFul API
Other way is using postman

Creation of a SOAP service possible in micronaut?

I want to create a SOAP service in micronaut using kotlin. I can not find information about how to do this. Annotations like #WebService are not being hosted as an endpoint.
I've successfully exposed the result to a rest endpoint.
I found information about how to implement a soap client in micronaut.
I succeeded in publishing the endpoint using endpoint.publish(..., ...), but I want to use the built-in netty-server, and perhaps built-in annotations, to prevent having to expose my services in a different class.
I don't think you would use micronaut http client for that. Look at apache axis 2 and see how you can use that.

Apache camel Restlet and swagger integration example

I am using Apache camel and Spring boot and Rest service, we are exposing the rest service with Restlet component. Now I want to generate the API documentation using Swagger.
So I found two ways,
1) Add dependency and swagger config changes.
2) Create specification and invoke the developed service.
In both the ways I could not find any example with Restllet component. With restConfiguration() configuration its working, I want to do it with Restlet.
I have created specification in yaml and invoking the service, Service exposed using "restlet:http://0.0.0.0:8090/path?restletMethod=post" URI.
I am getting below error,
OPTIONS "http://127.0.0.1:8090/path" 500 (Internal Server Error)
Fetch API cannot load "http://127.0.0.1:8090/path". Response for preflight has invalid HTTP status code 500
with the swagger specification can we invoke camel Restlet? if yes, what is the approach?

Spring boot security on Camel Rest DSL

I am a rookie at spring boot , I just want to know that if it is possible to apply spring boot security for camel rest-dsl impls'.
Camel rest dsl is serving over its own servlet as I have seen (CamelHttpTransportServlet) but spring has its own servlet (DispatcherServlet). So ,as I have guessed ,spring security , by default , serves over DispatcherServlet based rest services.
Any way to apply this privileges over camel's own servlet with just a config or should it be checked inside a route with a bean that if it is authorized to enter or not?
I can use other security credentials like camel-security or camel's spring-security samples but my question is not that as you can see :)
thx
Spring Security is implemented with Filters, so yes, it is definitely possible. Spring Security doesn't really know about DispatcherServlet, it could be used for non SpringMVC applications too.
There's actually a Spring Boot Camel Example here that you could easily add any security with Spring Security as far as you're using the HTTP transport. I.E. you can retrofit this old spring security camel example to Spring Boot and Spring Security using the Spring Security DSL.

How consume REST service to expose it in oData

I have a REST service that I call from my client app. The service use JSON to manage data.
I want insert SAP NetWeaver Gateway between client and REST server to expose the REST data as oData.
The REST service have get and put methods to read and write data from/to db.
Now I have to decide the way in which starting:
Translate data from/to REST server using ABAP code to serialize data in the two ways (get REST data and create oData in response to a url get oData call and create the REST call in response to a url post oData call)
Use SMP - SAP Mobile Platform (Eclipse plugin) to write integration code (in javascript) to consume REST service in reading and writing exposing this service ad oData. http://scn.sap.com/community/developer-center/mobility-platform/blog/2015/04/08/integration-gateway-rest-data-source-overview-of-blogs
The 2nd solution seems to be the best way (no-require ABAP programming, use js high level language, parse-libs to manage oData and json ...) but i don't know if SMP was created to do this work.
And what is the result of the 2nd method? It seems to be a zip file (similar to a war) that I can push to the SAP Gateway to deploy the integration-logic. Right? How can I test my code without deploy every time the zip on SAP Gateway?
The recommended approach is to create a create Odata service in SAP Gateway and consume it in your app using SMP 3 or HCPms (SAP's mobile solution on cloud).
Use SMP SDK to consume the Odata service.