Code Monkey home page Code Monkey logo

flask-sillywalk's People

Contributors

chrisy avatar delijati avatar dependabot[bot] avatar hobbeswalsh avatar lothiraldan avatar mplewis avatar oalifdal avatar rantav avatar remear avatar tarnacious 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  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

flask-sillywalk's Issues

How to specify responseClass?

Hi, thanks for this project.
In Swagger we have responseClass which is the type of the value returned by the HTTP request. Typically one of the models.

q1: How in flask-sillywalk one might add the responseClass to @register?

q2: How one might return a class of the responseClass from a flask handler? E.g. in your example.py how would I return SomeCrazyClass as a value from a handler?

BTW, sorry for opening an issue, if there's a better place to ask questions let me know...

pypi package

This is a great package, it just needs to be added to pypi to make it easier to distribute.

API documentation doesn't show up in swagger ui

I cloned this repository in my machine and ran example.py. The responses from the urls are as follows;

  • http://localhost:5000/api/v1/cheese.json
    • {"swaggerVersion": "1.0", "apis": [{"operations": [{"httpMethod": "GET", "resource": "cheese", "parameters": [{"name": "cheeseName", "dataType": "str", "paramType": "path", "required": true, "allowMultiple": false, "description": "The name of the cheese to fetch"}], "path": "/cheese.{format}/{cheeseName}", "errorResponses": [{"reason": "Sorry, we're fresh out of that cheese.", "code": 400}, {"reason": "I'm actually a teapot", "code": 418}], "summary": "Gets cheese, just like the name says."}], "path": "/cheese.{format}/{cheeseName}", "description": ""}], "models": [], "basePath": "http://localhost:5000/api/v1", "resourcePath": "cheese", "apiVersion": "1.0"}
  • http://0.0.0.0:5000/api/v1/resources.json
    • {"models": {"SomeCrazyClass": {"id": "SomeCrazyClass", "properties": {"age": {"required": true}, "birthday": {"default": "tomorrow", "required": false}, "name": {"required": true}}}}, "basePath": "http://localhost:5000/api/v1", "swaggerVersion": "1.0", "apiVersion": "1.0", "apis": [{"path": "cheese.{format}", "description": ""}, {"path": "holyHandGrenade.{format}", "description": ""}]}

None of these responses work while using as a server resource for documenting the API in swagger ui (latest one in github). The error that I get while using any one of them is;
Can't read from server. It may not have the appropriate access-control-origin settings.
How can i see the api documented in swagger ui?

Thanks

Travis CI hook activation

I prepared the project to support the TravisCI hook now only this steps are necessary to activate it.

  • Toggle the switch on one of your projects and then click on little wrench icon to open the project's Service Hooks page on GitHub. To get to the same place from your GitHub project, go to Settings > Service Hooks.
  • On the Service Hooks page scroll down to Travis and you'll notice that the hook is already activated. Click on "Travis".

How do you plan to support types in model?

This is not a bug - it's a feature request and a discussion.
I need types in models badly.
Hi, I was thinking I might take a stab at adding types to models (I need this) so I was curious what did you have in mind.
Maybe it's just my python rust but I tried adding parameters to @registerModel with no success. The implementation of the decorator accepts c, _args and *_args and I couldn't figure out a way to add parameters to it...
Did you have anything else in mind?

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.