cancel
Showing results for 
Search instead for 
Did you mean: 

Public Service MetaData in SCP destinations

prasad
Participant

Hi all,

Is the metadata generation for a rest service is mandatory to use the service in sap ui5 app?

we have a rest service returns data by giving URL but has no metadata for it . we are not able to add this service as we are taking template to create a work list project.

Regards

Prasad

Accepted Solutions (0)

Answers (1)

Answers (1)

Ivan-Mirisola
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Prasad,

SAP UI5 doesn't require one to use OData as means to obtain data to display in its UI components. However, the WebIDE templates do require one to use OData services.

I'd recommend using OData because it is so much easier to work with the templates and makes development really fast. Plus, you would benefit from a lot of features UI5 provides right out-of-the-box. Whereas in a plain REST service you would require to do stuff manually.

Fortunately, doing OData these days is not that difficult. You could use Spring Boot to aid in that task together with Olingo library (please read: https://www.baeldung.com/olingo).

But you could even try out the Cloud Application Programming model that uses the SDK for Service Development which aids in the service creation and lets you focus on the business logic.

https://blogs.sap.com/2018/06/05/introducing-the-new-application-programming-model-for-sap-cloud-pla...

https://blogs.sap.com/2018/03/01/sap-cloud-platform-sdk-for-service-development-overview-of-blogs/

Best regards,
Ivan

prasad
Participant
0 Kudos

Thanks for the Reply Ivan.

If the Rest Services are already developed and need to be integrated what would be the best way to integrate these services in UI5 as after adding these services in destinations are not being able to use in sap UI5 project templates because of metadata generation issues.

Regards

Prasad

Ivan-Mirisola
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi prasad.vsrk,

As mentioned, you will need to code the HTML5 pieces together when developing with plain REST services - you will not be able to use the templates.

I'd try to adapt the REST services to OData if possible.

Best regards,
Ivan