Closed cnrdh closed 9 years ago
Rule 0 Never use the .json in URIs (but do use them in filenames)
Rule 2 cp dataset-1.y.z.json dataset.json
Rule 4 This makes sure that even if the URI "http://api.npolar.no/schema/project" is used, the errors will state schema version "http://api.npolar.no/schema/project-1.x.z"
In production, using Rack::TryStatic https://github.com/npolar/api.npolar.no/commit/308161fcaa6b176fb6e1521c2ff8cea5df39997a
To avoid inconsistency issues, we switch /schema to a file system backed API.
There are 4 simple rules to follow