nakano16180 / hello_flask

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hello flask

setup

clone this repository

$ cd hello_flask
$ pipenv install

run

$ pipenv run python hello_flask.py

api

$ curl http://localhost:5000/api/test
$ curl -X POST http://localhost:5000/api/test/1234

json

$ curl http://localhost:5000/api
$ curl -X POST -H 'Accept:application/json' -H 'Content-Type:application/json' http://localhost:5000/api -d '{"data":"hoge"}'

About


Languages

Language:Python 52.4%Language:HTML 47.6%