cubicweb/pyramid/rest_api.py
changeset 11967 83739be20fab
parent 11959 ddc05ce75319
child 12911 a17cbf539a69
equal deleted inserted replaced
11966:fe995d56c949 11967:83739be20fab
       
     1 # copyright 2017 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
       
     2 # copyright 2014-2016 UNLISH S.A.S. (Montpellier, FRANCE), all rights reserved.
       
     3 #
       
     4 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
       
     5 #
       
     6 # This file is part of CubicWeb.
       
     7 #
       
     8 # CubicWeb is free software: you can redistribute it and/or modify it under the
       
     9 # terms of the GNU Lesser General Public License as published by the Free
       
    10 # Software Foundation, either version 2.1 of the License, or (at your option)
       
    11 # any later version.
       
    12 #
       
    13 # CubicWeb is distributed in the hope that it will be useful, but WITHOUT
       
    14 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
       
    15 # FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more
       
    16 # details.
       
    17 #
       
    18 # You should have received a copy of the GNU Lesser General Public License along
       
    19 # with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
       
    20 
       
    21 """Experimental REST API for CubicWeb using Pyramid."""
       
    22 
     1 from __future__ import absolute_import
    23 from __future__ import absolute_import
     2 
    24 
     3 
    25 
     4 from pyramid.view import view_config
    26 from pyramid.view import view_config
     5 from cubicweb.pyramid.resources import EntityResource, ETypeResource
    27 from cubicweb.pyramid.resources import EntityResource, ETypeResource