Skip to content

diegomvh/ODataApiGen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OData Angular Code Generator

Overview

OData Angular Generator allows generation of API client libraries, server stubs and configuration automatically given an OData Metadata.

Docker

Public Pre-built Docker images

OData Angular Generator CLI Docker Image

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.

Example One:

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.

Example Two:

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.

Example Three:

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.

Tools

Many thanks to JetBrains for the open source license.

Now I can use one o the best IDE for the project!

Rider logo

About

OData to TypeScrypt - Source Code Generator

Resources

License

Stars

Watchers

Forks

Packages

No packages published