Permalink
Browse files

Remove remaining redundant `rel` attributes

  • Loading branch information...
1 parent 3a7d058 commit 4857e4065f3a7d72b8f04460c3f7e019d4aebc38 @bruth bruth committed May 7, 2013
Showing with 7 additions and 14 deletions.
  1. +0 −7 serrano/resources/__init__.py
  2. +7 −7 tests/cases/resources/tests.py
@@ -24,31 +24,24 @@ def get(self, request):
'version': API_VERSION,
'_links': {
'self': {
- 'rel': 'self',
'href': uri(reverse('serrano:root')),
},
'fields': {
- 'rel': 'fields',
'href': uri(reverse('serrano:fields')),
},
'concepts': {
- 'rel': 'concepts',
'href': uri(reverse('serrano:concepts')),
},
'contexts': {
- 'rel': 'contexts',
'href': uri(reverse('serrano:contexts:active')),
},
'views': {
- 'rel': 'views',
'href': uri(reverse('serrano:views:active')),
},
'preview': {
- 'rel': 'data',
'href': uri(reverse('serrano:data:preview')),
},
'exporter': {
- 'rel': 'data',
'href': uri(reverse('serrano:data:exporter')),
}
}
@@ -30,13 +30,13 @@ def test_get(self):
'title': 'Serrano Hypermedia API',
'version': API_VERSION,
'_links': {
- 'exporter': {'href': 'http://testserver/api/data/export/', 'rel': 'data'},
- 'views': {'href': 'http://testserver/api/views/', 'rel': 'views'},
- 'contexts': {'href': 'http://testserver/api/contexts/', 'rel': 'contexts'},
- 'fields': {'href': 'http://testserver/api/fields/', 'rel': 'fields'},
- 'self': {'href': 'http://testserver/api/', 'rel': 'self'},
- 'concepts': {'href': 'http://testserver/api/concepts/', 'rel': 'concepts'},
- 'preview': {'href': 'http://testserver/api/data/preview/', 'rel': 'data'},
+ 'exporter': {'href': 'http://testserver/api/data/export/'},
+ 'views': {'href': 'http://testserver/api/views/'},
+ 'contexts': {'href': 'http://testserver/api/contexts/'},
+ 'fields': {'href': 'http://testserver/api/fields/'},
+ 'self': {'href': 'http://testserver/api/'},
+ 'concepts': {'href': 'http://testserver/api/concepts/'},
+ 'preview': {'href': 'http://testserver/api/data/preview/'},
},
})

0 comments on commit 4857e40

Please sign in to comment.