def parse(media)
      version = 'v3'
      media.sub!(/^[.]*|[.]*$/,"")
      media = media.include?('+') ? media.split('+')[0] : media
      version, media = media.split('.') if media.include?('.')
      media_type = lookup_media(media)
      "application/vnd.github.#{version}.#{media_type}"
    end
def parse(media)
      version = 'v3'
      media.sub!(/^[.]*|[.]*$/,"")
      media = media.include?('+') ? media.split('+')[0] : media
      version, media = media.split('.') if media.include?('.')
      media_type = lookup_media(media)
      "application/vnd.github.#{version}.#{media_type}"
    end
Parse media type param