You can also use the generator programmatically. You will have to provide the options anyways.
import { generateProject } from'@sap-cloud-sdk/generator';// initialize generator options based on what you want to doconstoptions: GeneratorOptions = initializeOptions();// creates a Project datastructure with all sourcefiles based on your optionsconstproject = generateProject(options);// here you can modify you project if you need to// save the files at the specified locationproject.save();// alternatively you can generate and save the project in one step with: generate(options)
@sap-cloud-sdk/generator
Generate your own service module using a service specification (.edmx file).
Installation
Usage (CLI)
The generator is primarily meant to be used on the command line:
Run
generate-odata-client --help
for further options.Usage (programatically)
You can also use the generator programmatically. You will have to provide the options anyways.
Documentation
Getting started guide API documentation
Helpful Links