SAP Cloud Platform Mobile Services - Mobile Back-End Tools
This is an extension for Visual Studio Code, which helps you to easily use the OData Service Generator (csdl-to-war tool) to generate an OData service (as a Java EE WAR file) from an OData CSDL file. The generated OData service can be configured to store data in a SQL database, or to use the SQL database to cache data from a backend system. The OData service can be configured with CSDL annotations for OData change tracking to support offline clients, or without change tracking to support online clients. Generated services can be deployed for production into SAP Cloud Platform (Cloud Foundry or Neo environments) or SAP Mobile Platform Server (SMP 3.1+). Apache TomEE and Eclipse Virgo are supported for local testing.
Command Palette Extensions
This extension provides two additional commands in the Command Palette.
MBT: New OData CSDL document (metadata)
Namespace alias (optional)
Metadata file name
You can optionally use the XML Language Support by Red Hat extension which provdes support for creating and editing XML documents. When you are finished with the metadata you can use the tasks.json creator.
MBT: Create tasks.json file
Database name (optional)
Metadata file name
Local server path (optional)
Once the tasks.json is created, you can use Terminal → Run Task to invoke the csdl-to-war tool for generation, deployment and monitoring of the OData service. You can make changes to the the service metadata or customize previously generated code, then run the same task again to regenerate and redeploy the service. If you subsequently change your local server path, then please edit the extension's resources/extension.settings to indicate the new server path.
Local Tool Documentation
See csdl-to-war.html (Service Generator), cache-databases.html (Cache Databases) and mbo-migration.html (MBO Migration for customers using SMP 3.0 Mobile Business Objects).