old_contents: # -*- coding: utf-8 -*-
  from __future__ import unicode_literals
  
  from udata.api import api, API
  
  
  from . import backends
  
  ns = api.namespace('avatars', 'Avatars')
  
  
  @ns.route('/<identifier>/<int:size>', endpoint='avatar')
  class IdenticonAPI(API):
      @api.doc('avatars')
      def get(self, identifier, size):
          '''Get a deterministic avatar given an identifier at a given size'''
          return backends.get_identicon(identifier, size)
  
new_contents: # -*- coding: utf-8 -*-
  from __future__ import unicode_literals
  
  from udata.api import api, API
  
  
  from . import backends
  
  ns = api.namespace('avatars', 'Avatars')
  
  
  @ns.route('/<identifier>/<int:size>', endpoint='avatars')
  class IdenticonAPI(API):
      @api.doc('avatars')
      def get(self, identifier, size):
          '''Get a deterministic avatar given an identifier at a given size'''
          return backends.get_identicon(identifier, size)
  
subject: Fix missing 's' in api.avatars endpoint