openknowledge-archive / dpr-api

DEPRECATED - Data Package Registry API and Frontend
http://frictionlessdata.io/
MIT License
7 stars 6 forks source link

Refactor response for getting metadata API #412

Closed anuveyatsu closed 7 years ago

anuveyatsu commented 7 years ago

Following API requires improvements into its response: "/api/package/{publisher}/{package} - DPR meta-data get operation". There is a typo in datapackag_url but we also want to rename it. Also we want to remove views property from the top level as it is already in descriptor.

http://staging.datapackaged.com/api/package/core/finance-vix

Acceptance Criteria

Tasks

zelima commented 7 years ago

Currently dpm publish does not work - throws 500 as we need to change upload URL from .../lates/datapackage.json to .../latest https://github.com/frictionlessdata/dpr-api/blob/master/app/auth/jwt.py#L59

zelima commented 7 years ago

FIXED. if relative path to file ends with datapackage.json it is replaced with empty string ('')

anuveyatsu commented 7 years ago

This issue was misunderstood:

At the moment, we are not getting datapackage.json from above uri, which is crucial for our service to operate.

zelima commented 7 years ago

FIXED