japronto icon indicating copy to clipboard operation
japronto copied to clipboard

Better Documentations ?

Open yunstanford opened this issue 8 years ago • 8 comments

I can't find any documentation, README is not enough for a web framework. readthedoc can help you in some sense.

yunstanford avatar May 29 '17 18:05 yunstanford

There is somehow narrative documentation by example in: https://github.com/squeaky-pl/japronto/tree/master/examples

squeaky-pl avatar May 29 '17 18:05 squeaky-pl

yeah, i'd like to have some documentations like http://aiohttp.readthedocs.io/en/stable/web.html, for example, request/response/server/client etc. that would be very helpful. With only the README, i don't know even how to use request object.

yunstanford avatar May 29 '17 19:05 yunstanford

https://github.com/squeaky-pl/japronto/blob/master/tutorial/4_request.md

squeaky-pl avatar May 29 '17 19:05 squeaky-pl

how can i get the query parameters from request obj ?

like, "http://0.0.0.0:8080/profile/?query_id=012345678"

yunstanford avatar May 29 '17 19:05 yunstanford

This is exactly documented in the file I linked:

# Given a HTTP 1.1 `GET` request to `/basic?a=1` this would yield
# `method` set to `GET`, `path` set to `/basic`, `version` set to `1.1`
# `query_string` set to `a=1` and `query` set to `{'a': '1'}`.```

squeaky-pl avatar May 29 '17 19:05 squeaky-pl

doc in comment is not very noticeable. why not use some auto-doc system ? that'll be very helpful.

Thanks for your reply.

yunstanford avatar May 29 '17 19:05 yunstanford

This project is intended for speed enthusiasts, people who like plumbing, exprimenting and early adopters. Whatever you see is a proof of concept. There is no point in writing nice documentation at this point since I know I am gonna break all the APIs anyway. That's why I don't want to encourage people to use it. If you are looking for somehow stable documented framework then aiohttp indeed or Sanic is for you.

squeaky-pl avatar May 29 '17 19:05 squeaky-pl

Hi, I've been playing with japronto and so far I'm having a great time experimenting. But I'm not yet clear on how to tackle application unit testing, I get it that it's still a proof of concept in many ways, but perhaps there's a recommended approach to testing?

Note: I've seen the integration tests but perhaps that's not what I need now, I'll currently digging deeper into that.

cpersico avatar Sep 26 '17 09:09 cpersico