GithubHelp home page GithubHelp logo

exposer's People

Contributors

kuzznya avatar

Stargazers

 avatar

Watchers

 avatar  avatar

exposer's Issues

Add params mapping check

Check if all method params are mapped & throw exception if not
or use default principle (params['<name>'] ?: pathVars['<name'])

Improve method args handling

  • Enable args: params['somevalue'], pathVars['test'] syntax to simplify params definition (maybe too difficult)
  • Add definition of what to do with null values - throw exception or call method with null

Logging

Add logging for each request & response, especially errors (if required, because Spring Boot also logs errors)

Invalid method params names evaluation

EndpointHandler cannot load correct names of method it calls

Solution: use ParameterNameDiscoverer

Consider making it a bean to avoid creating it for each EndpointHandler

Add path param to endpoint config

Add path parameter to endpoint configuration to enable defining some part of the path directly for the endpoint & simplify some config, e.g.:

exposer:
  endpoints:
    - path: /test/v1
       ...
    - path: /test/v2

New params syntax & request body handling

For more complex request handling actions, such as getting data from body, new syntax is required

Some ideas:

params:
  arg0: textArg
  arg1: {{ params.someVal }}
  user: {{ body.username }}
  data: {{ body }}
  • New syntax
  • Split parsing & evaluation
  • Request body handling
  • Cover with tests

Methods of superclass

Use .getMethods() instead of .useDeclaredMethods() to allow use superclass methods

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.