Revision ed66d976 api/handlers.py

b/api/handlers.py
169 169
    def create(self, request):
170 170
        """Create a new image"""
171 171
        return accepted
172

  
173

  
174
class SharedIPGroupHandler(BaseHandler):
175
    allowed_methods = ('GET', 'POST', 'DELETE')
176

  
177
    def read(self, request, id=None):
178
        """List Shared IP Groups"""
179
        if id is None:
180
            return {}
181
        elif id == "detail":
182
            return {}
183
        else:
184
            return fault.itemNotFound
185

  
186
    def create(self, request, id):
187
        """Creates a new Shared IP Group"""
188
        return created
189

  
190
    def delete(self, request, id):
191
        """Deletes a Shared IP Group"""
192
        return noContent

Also available in: Unified diff