OData Angular Generator allows generation of API client libraries, server stubs and configuration automatically given an OData Metadata.
- https://hub.docker.com/r/diegomvh/odataapigen (official CLI)
The OData Angular Generator image acts as a standalone executable.
To generate code with this image, you'll need to mount a local location as a volume.
If metadata are in the web like TripPin
docker run -it --rm -v ${PWD}:/local diegomvh/odataapigen \
Name=TripPin \
Metadata=https://services.odata.org/v4/TripPinService/$metadata \
Output=/local
The generated code will be located under ./trippin
in the current directory.
If metadata are in the local file system. Put the trippin.xml
file on the directory and then run docker on the same directory.
docker run -it --rm -v ${PWD}:/local diegomvh/odataapigen \
Name=TripPin \
Metadata=file:///local/trippin.xml \
Output=/local
The generated code will be located under ./trippin
in the current directory.
If metadata are served by yourself on a localhost application. Thanks to Norm-Cota
docker run -it --rm -v ${PWD}:/local diegomvh/odataapigen \
Name=TripPin \
Metadata=http://host.docker.internal/$metadata \
Output=/local
The generated code will be located under ./trippin
in the current directory.
Many thanks to JetBrains for the open source license.
Now I can use one o the best IDE for the project!