#!/usr/bin/env python
import importlib
import mongoengine
from eve import Eve
from eve_mongoengine import EveMongoengine
from qiprofile_rest.model.subject import Subject
from qiprofile_rest.model.imaging import SessionDetail

# The application. 
app = Eve()

# The MongoEngine ORM extension.
ext = EveMongoengine(app)

# Register the model non-embedded documdent classes.
ext.add_model(Subject, url='subject')
ext.add_model(SessionDetail, url='session-detail')


if __name__ == '__main__':
    app.run()

@@ -204,16 +204,89 @@
  import 
+(Scan, Modeling, Registration,%0A                                          
 SessionD
@@ -290,16 +290,17 @@
 onDetail
+)
 %0A%0A# The 
@@ -477,16 +477,16 @@
 bject')%0A
-
 ext.add_
@@ -528,16 +528,187 @@
 etail')%0A
+ext.add_model(ScanProtocol, url='scan-protocol')%0Aext.add_model(RegistrationProtocol, url='registration-protocol')%0Aext.add_model(ModelingProtocol, url='modeling-protocol')%0A
 %0A%0Aif __n

Add protocol urls.