Code Monkey home page Code Monkey logo

autorest's People

Contributors

callidus2000 avatar friedrichweinmann avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

autorest's Issues

Docs and Examples for transforms

Need to add good example and the schema reference for transform files

<path>:<method>

Name             : Name of the command to generate
Synopsis         : Synopsis part of the command help
Description      : Description part of the command help
DocumentationUrl : Link to the online documentation
ServiceName      : Specific service override to include. Needs to be implemented in the Rest Command used.
Scopes           : Scopes required in delegate authentication mode. Will be included in help and passed to rest command.
RestCommand      : Command to use to execute the rest request and handle authentication
ProcessorCommand : An additional command used to process the output. This command must be implemented manually.
ParameterSets    : Hashtable mapping parameterset name to its description. Used in examples.

Parameters:
To override individual properties on parameters, create a child-hashtable.
Each key is the system name of the parameter, entries govern the properties to override.
Example:

Parameters = @{
    MachineID = @{
        Description = 'ID of the machine to get recommendations for.'
    }
}

Enhancement: Usage of PSMD Templating for generation of the new function files

As an enhancement idea:
Would it be ok to use the templating functionality of PSModuleDevelopment for generation of the function code? Currently the regular string-format is used, with multiple nested layers and placeholders up to {12}. In my experience this is a little bit hard/confusing if you want to modify it.

If this would be acceptable I'd be happy to contribute again. My implementation plan would be

  • create templates out of the existing format-strings
  • put the template names into the PSF Configuration framework
  • change the function generation process to use the template functions
    (enhancement from PSMD issue 166 would be great ๐Ÿ˜„)

The advantage of this implementation would be that the templates would be easier to maintain and adjustments to the texts could be made without adjusting the code.

Support output format options

Some OpenAPI documents contain a response schema
Generating format-XML for those - and supporting configuration options for it - would provide benefits to user experience

Enhancement idea/request: Transformation for additional parameters

Background:

My Dracoon PowerShell module uses the generic Rest Helper Module ARAH. As I didn't find the time to implement functions for every endpoint (>200) I used your module to create functions for them. But my underlying Rest-Invoke-Method needs the connection to be passed as a parameter.

Enhancement idea

Add functionality to the transform capability to add non-existing parameters to the created functions

Request opened for documentation purpose, I've already added it within my fork, PR will be created after the issue/enhancement entries. I hope everything will be ok within the PR.

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.