Changes between Version 12 and Version 13 of RestfulAPI
- Timestamp:
- 02/15/08 19:52:00 (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
RestfulAPI
v12 v13 86 86 == Data Formats == 87 87 88 '''''Todo: Decide how to identify objects (name, database ID, UUID), then fixup these data formats. Currently assumed to use the value of the object name attribute as the object's resource identifier.''''' 89 90 ==== Database ID Format ==== 91 92 {{{ 93 An integer. 94 }}} 95 96 ==== UUID Format ==== 97 98 {{{ 99 ? 100 }}} 101 102 103 ==== Name ID Format ==== 104 105 {{{ 106 An string. 107 }}} 108 109 88 110 ==== License List Format ==== 89 111 … … 92 114 "licence-list": [ 93 115 { 94 "id": 1, 95 'name": "BSD" 116 "id": "BSD" 96 117 97 118 },{ 98 "id": 2, 99 "name": "MIT" 119 "id": "MIT" 100 120 } 101 121 ] … … 108 128 { 109 129 "licence": { 110 "id": 1,111 130 "name": "BSD" 112 131 } … … 120 139 "package-list": [ 121 140 { 122 "id": 1, 123 "name": "dataset-1" 141 "id": "dataset-1" 124 142 125 143 },{ 126 "id": 2, 127 "name": "dataset-2" 144 "id": "dataset-2" 128 145 } 129 146 ] … … 136 153 { 137 154 "package": { 138 "id": 1, 139 "name": "string", 140 "title": "string", 141 "url": "string", 142 "download_url": "string", 155 "name": "dataset-1", 156 "title": "My Title", 157 "url": "http://mylocation", 158 "download_url": "http://mydownloadlocation", 143 159 "licences": [5,7], 144 160 "tags": "this that other", 145 "notes": " some notes"161 "notes": "Some notes." 146 162 } 147 163 } … … 154 170 "tag-list": [ 155 171 { 156 "id": 1, 157 "name": "this" 172 "id": "this" 158 173 159 174 },{ 160 "id": 2, 161 "name": "that" 175 "id": "that" 162 176 } 163 177 ] … … 170 184 { 171 185 "tag": { 172 "id": 1,173 186 "name": "this" 174 187 }