
api.py from flask import Flask from flask_restful import Resource, Api app = Flask(__name__) api = Api(app) class HelloWorld(Resource): def get(self): return {'hello': 'world'} api.add_resource(HelloWorld, '/') if __name__ == '__main__': app.run(debug=True) 실행하기 $ python api.py * Running on http://127.0.0.1:5000/ * Restarting with reloader #파이참 사용시 .html 사용으로 rest api test 할 수 있다. # helloworld.h..
공부합시다/python
2020. 5. 21. 15:07
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- 정의
- exception-test
- addMonth
- vim
- laravel-kafka
- 라라벨
- php
- 테스트_다중트랜잭션
- bitwarden-cli
- 메일
- msmtp
- aaa패턴
- addMonthWithoutOverflow
- 정규식
- observer 매개변수 전달하기
- laravel-test
- 컨테이너내에서 메일 발송하기
- graphql-php
- Python
- django
- redis
- l5-swagger-response
- Laravel
- POP3
- 자바스크립트
- password-manager
- graphql
- l5-swagger
- eloquent-observer
- MySQL
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
글 보관함