Ticket #2322 (accepted enhancement) — at Version 6

Opened 2 years ago

Last modified 21 months ago

Convenience offset on end of resource urls: /raw, /api, /viewer

Reported by: rgrp Owned by: ross
Priority: awaiting triage Milestone: ckan-sprint-2012-05-29
Component: ckan Keywords:
Cc: Repository: ckan
Theme: none

Description (last modified by ross) (diff)

Raw

/raw or /download (latter may be better)

/dataset/{id}/resource/{resource-id}/raw

=> redirects to resource url (download)

API

/dataset/{id}/resource/{resource-id}/api[/....]

=> either redirects or directly serves /api/data/{resource-id}

Viewer (Explorer?)

Do data viewer but without anything else showing (full-screen?). this would not be just the data explorer but other cases too (including iframe etc ...)

/dataset/{id}/resource/{resource-id}/viewer

Resource (pre)-viewer without anything else (perhaps include resource title)

Assigning for kindly for review.

These would take about 20m to implement and would be *very* convenient from my experience of using the data API.


Implementation at enhancement-2322-convenience-urls

Change History

comment:1 Changed 2 years ago by rgrp

  • Description modified (diff)
  • Summary changed from Convenience offset on end of resource urls: /raw, /api to Convenience offset on end of resource urls: /raw, /api, /viewer

comment:2 Changed 2 years ago by rgrp

  • Description modified (diff)

comment:3 Changed 2 years ago by ross

+1 on these, although ../download instead of ../raw and ../view instead of ../viewer

comment:4 Changed 2 years ago by rgrp

  • Owner changed from kindly to rossjones
  • Status changed from new to assigned
  • Milestone changed from ckan-sprint-2012-04-30 to current-ckan-sprint-2012-05-29

comment:5 Changed 2 years ago by ross

  • Owner changed from rossjones to ross
  • Status changed from assigned to accepted

comment:6 Changed 2 years ago by ross

  • Description modified (diff)

Viewer almost exists with the /embed link and so have just used that with a better default size to provide a prettier url. Can still use the width=&height= that are used in the /embed url.

Note: See TracTickets for help on using tickets.