Code Monkey home page Code Monkey logo

ag-autorest.csharp's Introduction

Agoda-autorest

This is the autorest extension for agoda which uses the roundrobin client. The AutoRest tool generates client libraries for accessing RESTful web services.

Usage

you should either put your swagger in the path ./input/swagger.json OR pass the option variable SPEC_FILE

SPEC_FILE can be a Url or a path, if it is a Url it will downlaoded, if its path it must be a path raltive to the working folder (e.g. ./input/anotherswagger.json) , or rooted in the /src mount (e.g. /src/input/anotherswagger.json)

docker run -v ${PWD}:/src -e NUGET_KEY=xxxxxxxxxxxx \
-e SPEC_FILE=http://path/to/your/swagger.yaml \
-e CLIENT_NAMESPACE=Your.App.Namespace \
-e VERSION=2.0.25 \
your-org-repo/autorest-gen:latest

Varibles

Varible Name What it does? DEFAULT
NUGET_KEY* Api Key for nuget server
SPEC_FILE Url or path to Swagger/Open API Spec /src/input/swagger.json
VERSION* Versin of the outputed nuget package
CLIENT_NAMESPACE* Namespace and assembly name for the gerenated package
USE_OPENAPI_V3 is the swagger/open api spec v3? false
USE_DATETIMEOFFSET Should use DateTimeOffset in place of DateTime data type? false
SHOULD_PUSH_NUGET Should push to nuget server after the package is built? true
  • Required

Test on Local

  • Clone this repo with git clone --recursive -- if you alraedy cloned and want to load the submodules run git submodule update --init
  • Modify docker-compose.yml as the detail inside
  • run docker-compose up --build
  • check the result at the location you set in the volume

ag-autorest.csharp's People

Contributors

chaintng avatar chameleon82 avatar csuich2 avatar dicko2 avatar dsgouda avatar encx avatar epet avatar fearthecowboy avatar jayhawk avatar joeldickson avatar kumarraj avatar microsoftopensource avatar msftgits avatar niladrikar0306 avatar olydis avatar orankhu avatar ratchapol-an avatar rikkigibson avatar shahabhijeet avatar wwjoong avatar yardsoul avatar zakuru avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.