Giter VIP home page Giter VIP logo

canapi's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

gitter-badger

canapi's Issues

Create end-to-end test suite

I would like to create a test suite that tests all management functions.

  • User login test script
  • API validation test script
  • Requestlog test script
  • OAuth required test script
  • Unit tests

Get Query parameter validation

Get endpoints should all have validation on their query parameters.

  • create query parameter validation functions
  • create mapping between parameter types and their validation functions
  • in ApiProxy.prototype.makeRoute call each validation function on parameters, using the mapping

Title only says Get Query Params, but I will leave this here because it will use the same code:

  • in ApiProxy.prototype.makeRoute call each validation function on POST parameters

Rate Limit

Create a rate limitting middleware to be configured in server config.

  • Implement rate limiter
  • Add configuration options to server config for rate limiter
  • Refuse requests beyond rate limit

Create Server Config

Server configuration should define multiple parameters for the server.

  • Starting APIs with their relative subpaths and the path to their raml files
  • details on how to protect each api

Validate post parameters

Currently, post parameters are not validated.

This is specifically because of the issue at:
raml-org/raml-js-parser#115

Embedded schema parsing will need to be fixed on the javascript raml-parser before I can validate the github api post parameters.

URI Parameters not fully supported

URI Parameters are working in path segments, but not in cases like Twitter's {mediatype} fields.

This means paths that can be /resourceName or /resourceName.json are broken.

Error reporting system

To save time, I haven't thought much about the error reporting system of this project.
I would like to abstract the error reporting throughout Canapi to make it more uniform from user's perspective and cleaner from a coder's perspective.

Request Cache

Decide whether to use Memcache or Reddis for a request caching layer.

  • Implement a cache layer for Canapi
  • Implement conditional requests using Canapi cache layer

Admin Endpoints for API Configuration

At the moment all API Proxies are made at server start. This doesn't have to be the case.
I would like to make a set of IP Protected endpoints that would allow a Canapi's admin to post a RAML file and API Proxy configuration to add API Proxies at runtime.

  • Create IP whitelisted endpoints
  • POST Endpoint for RAML file and server config
  • Create API Proxy at runtime

OAuth 2.0 verification

I need to make a means for my application to go through github OAuth2_0 verification.
This will allow all endpoints to be sent with a user's oauth token.

  • Send back authentication to local user endpoint in a cookie
  • Implement small test script which can hold authentication cookie for subsequent requests
  • Implement OAuth2.0 call flow with github (Try to base functions on raml so this can be used for others later)
  • Test Oauth flow as enduser to my api gateway

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.