Coder Social home page Coder Social logo

flask-and-swagger's Introduction

TASK - run instructions and a short description of my work

note: you need install missing libraries. Framework is flask-restplus.

flask-restplus support automatic swagger documentation...

http://flask-restplus.readthedocs.io/en/stable/ https://github.com/PyMySQL/PyMySQL

For this task I was programming in anaconda - spyder (python 3.5.2) on windows 10

run instructions:

  1. in app.py file, you need to change your mysql connection parameters, it would better if parameters are in config file

  2. run app.py file and go to url: http://localhost:5000/ you will see swagger api spec

  3. To test application just run test_unit.py, I could write init file some script that execute all tests in folder

description of my work

It took me about 10 hours for programming and 8 hours for framework and literature

UNITTESTS: for each pet test if property exist in json object update one value and test if response is equal

pets.py where you can find more info about routing, parsing and model

Additional work: RotatingFileHandler for logging

flask-and-swagger's People

Contributors

schnapi avatar

Watchers

James Cloos avatar  avatar

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.