Skip to content
This repository has been archived by the owner on Apr 5, 2024. It is now read-only.

Very slim, Flask-based RESTful API surface (acting as fixtures/mocks provider) #2

Open
bkmy43 opened this issue Dec 3, 2016 · 3 comments

Comments

@bkmy43
Copy link

bkmy43 commented Dec 3, 2016

just do it

@bkmy43 bkmy43 changed the title very slim flask-based RESTful API very slim flask-based RESTful API #API Dec 3, 2016
@oleksmarkh
Copy link
Contributor

oleksmarkh commented Dec 3, 2016

  • API surface, basically acting as a mock provider
  • basic modularisation, based on routing namespaces (see API endpoints definitions #1)
  • at least a single request cycle fully covered
  • basic functional tests in place (leveraging pytest) <- could be derived to a dedicated issue

@oleksmarkh oleksmarkh changed the title very slim flask-based RESTful API #API very slim Flask-based RESTful API Dec 3, 2016
@oleksmarkh
Copy link
Contributor

@oleksmarkh
Copy link
Contributor

Possible endpoint internals:

router          <- method + URL
authentication  <- middleware
controller      <- function/class
  request         <- object
  command         <- pattern
    validation      <- rules
    CRUD/search     <- models
    authorization   <- throwing exception
    quota           <- filter
  response        <- object
logger          <- middleware

In this request -> ... -> response chain, almost everything is optional.

@oleksmarkh oleksmarkh mentioned this issue Dec 6, 2016
3 tasks
@oleksmarkh oleksmarkh changed the title very slim Flask-based RESTful API Very slim, Flask-based RESTful API surface (acting as fixtures/mocks provider) Dec 8, 2016
@oleksmarkh oleksmarkh self-assigned this Dec 8, 2016
@oleksmarkh oleksmarkh mentioned this issue Dec 13, 2016
6 tasks
@oleksmarkh oleksmarkh added this to the First feature vertical milestone Dec 13, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants