Code Monkey home page Code Monkey logo

webapitotypescript's People

Contributors

apavlinovic avatar chferdinand avatar dborovic avatar dborovic-neogov avatar dsperac avatar gitter-badger avatar greymind avatar omittones avatar visweswaranr avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

webapitotypescript's Issues

Add support for caching last request.

Add support for .callCached() method in AngularEndpointsService.

If the same method was called before, this method would grab whatever was received last time.
In case this method is being called first time, it should automatically fetch data from .call() version.

Figure out best mechanism to support return data types

It is a fairly challenging problem to figure out the best scheme to detect and support return types for controller actions. Many different control flows could exist, and often times the signature of actions just reads IHttpActionResult!

Code clean up

Clean up code. Please use this thread to identify overall points of cleanup or spawn off into a new issue if it is focused and actionable.

Add support for more enum functionality

We have a tool that generates enums and one enum looks like this:

AccountType: {
  "Basic": {
    "Value": 1,
    "ValueName": "Basic",
    "Title": "Basic"
  },

This gives us more flexibility if we need to generate some text from enum or similar.
It would be nice if this tool provided a way to fetch similar data.

Watts.exe fails when base type is a generic one

Watts.exe fails when a base type is a generic one.

We have multiple base types with single generic argument and watts is working fine, however it fails with a generic base type that has 3 generic arguments (not sure about 2, did not check that out).

It fails inside InterfaceService in WriteInterfaces(TypeScriptBlock interfacesBlock, InterfaceNode interfaceNode) method on the foreach line. The exception we get is that the collection was modified.

Looking forward to this fix, because we had to utilize interfaces to go around this and that introduced some code duplication.

Thanks!

Add support for scanning multiple DLLs

Currently watts supports scanning of only one DLL for controllers.

Our use case requires scanning of multiple DLLs.

Could you please add the support for this requirement :)

Handle collisions in enums by growing the name prefix with namespace parts

Currently, two enums with same name, but under different namespaces collide and we generate a warning. Instead, we can "grow" the name by prefixing the minimum namespace parts required to make it identical.

For example:

namespace Something.Else.Here {
    enum EnumType {
    }
}

namespace Something.There.Here {
    enum EnumType {
    }
}

The generated names can be

ElseHereEnumType
ThereHereEnumType

Perhaps do this for other types as well

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.