Revision 381a548c snf-cyclades-app/synnefo/api/networks.py

b/snf-cyclades-app/synnefo/api/networks.py
64 64
    elif request.method == 'POST':
65 65
        return create_network(request)
66 66
    else:
67
        return api.api_method_not_allowed(request)
67
        return api.api_method_not_allowed(request,
68
                                          allowed_methods=['GET', 'POST'])
68 69

  
69 70

  
70 71
def network_demux(request, network_id):
......
75 76
    elif request.method == 'DELETE':
76 77
        return delete_network(request, network_id)
77 78
    else:
78
        return api.api_method_not_allowed(request)
79
        return api.api_method_not_allowed(request,
80
                                          allowed_methods=['GET',
81
                                                           'PUT',
82
                                                           'DELETE'])
79 83

  
80 84

  
81 85
def network_to_dict(network, user_id, detail=True):

Also available in: Unified diff