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

Rest Ressource for EPCIS data stored in the MongoDB database.

parent 6e5a3d78
#! /usr/bin/env python
# -*- coding: utf-8 -*-
from flask import request, jsonify
from flask.ext.restful import Resource, Response, reqparse
from models import models
class EPCISEventAPI(Resource):
"""
Check the progress of the crawler.
"""
def __init__(self):
super(EPCISEventAPI, self).__init__()
def get(self):
"""
"""
return jsonify({})
def put(self):
"""
"""
pass
def post(self):
"""
"""
pass
def delete(self):
"""
"""
pass
api.add_resource(EPCISEventAPI, '/epcis.json/', endpoint = 'epcis')
\ No newline at end of file
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