Commit d38dc572 authored by Cédric Bonhomme's avatar Cédric Bonhomme

import of the rest API

parent 320022e4
......@@ -22,4 +22,8 @@ app.config['MONGODB_SETTINGS'] = {'DB': conf.DATABASE_NAME}
db = MongoEngine(app)
db.init_app(app)
import refuge.views
\ No newline at end of file
# REST Web service
from flask.ext.restful import Api
api = Api(app)
import refuge.views, refuge.rest
\ No newline at end of file
......@@ -4,7 +4,8 @@
from flask import request, jsonify
from flask.ext.restful import Resource, Response, reqparse
from models import models
from refuge import app, api
import models
class EPCISEventAPI(Resource):
"""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment