by angryamoeba · 14y ago · 0 comments
www.example.com/data.json,
one could append SparQL to select a subset www.example.com/data.json/user
www.example.com/data.json/categories/*
www.example.com/data.json/categories/0/products
www.example.com/data.json//avatarPerhaps something like:
www.example.com/data.json?query=/user www.example.com/foo
and it can arbitary sub-resources e.g. www.example.com/foo/bar/raz
then how do I know whether bar is a different resource or part of the JSON returned describing www.example.com/fooThis would mean you'd have to restrict your resource names to ensure they don't clash with JSON names - which seems a pain (e.g. say the resource names are uploaded files and directories, so you won't have much control over what they are called)