From e59b303575c8e78bccc34fe5bbc40962fecc0a88 Mon Sep 17 00:00:00 2001 From: RamanjaneyuluIdavalapati Date: Tue, 13 Feb 2018 17:40:28 +0530 Subject: [PATCH] KwikAPI with type hints allowed. Type must be specifi --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 296bc6b..c29882b 100644 --- a/README.md +++ b/README.md @@ -20,10 +20,10 @@ from kwikapi.tornado import RequestHandler from kwikapi import API class BaseCalc(object): - def add(self, a, b): + def add(self, a: int, b: int) -> int: return a + b - def subtract(self, a, b): + def subtract(self, a: int, b: int) -> int: return a - b api = API(default_version='v1') @@ -51,3 +51,5 @@ $ python sample.py ```bash $ curl "http://localhost:8888/api/v1/add?a=10&b=10" ``` + +> To know how to use all features, please refer KwikAPI documentation https://github.com/deep-compute/kwikapi/blob/master/README.md