የ CKAN የመረጃ ኤፒአይ

ጠንካራ የጠያቂ ድጋፍ ባለው የድር ኤፒአይ በመጠቀም መረጃ ያግኙ።. ለበለጠ መረጃ የ CKAN የመረጃ ኤፒአይ እና የመረጃ ማከማቻ መግለጫ ሰነድ.

የመረጃው ኤፒአይ በሚከተሉት የ CKAN ኤፒአይ ድርጊት ሂደቶች ማግኝት ይችላሉ።

ፍጠር https://dataportal.ponderful.eu/am/api/3/action/datastore_create
አሻሽል / አስገባ https://dataportal.ponderful.eu/am/api/3/action/datastore_upsert
መጠይቅ https://dataportal.ponderful.eu/am/api/3/action/datastore_search

የመጠይቅ ምሳሌ (የመጀመሪያ 5 ውጤቶች)

https://dataportal.ponderful.eu/am/api/3/action/datastore_search?resource_id=41555627-06bd-4898-8187-b3007b584020&limit=5

የመጠይቅ ምሳሌ ('ጆንስ'ን የያዙ ውጤቶች)

https://dataportal.ponderful.eu/am/api/3/action/datastore_search?resource_id=41555627-06bd-4898-8187-b3007b584020&q=jones

jQuery በመጠቀም ወደ መረጃ ኤፒአይ ቀላል የአጃክስ (JSONP) ጥያቄ

          var data = {
            resource_id: '41555627-06bd-4898-8187-b3007b584020', // the resource id
            limit: 5, // get 5 results
            q: 'jones' // query for 'jones'
          };
          $.ajax({
            url: 'https://dataportal.ponderful.eu/am/api/3/action/datastore_search',
            data: data,
            dataType: 'jsonp',
            success: function(data) {
              alert('Total results found: ' + data.result.total)
            }
          });
        import urllib.request
        url = 'https://dataportal.ponderful.eu/am/api/3/action/datastore_search?resource_id=41555627-06bd-4898-8187-b3007b584020&limit=5&q=title:jones'  
        fileobj = urllib.request.urlopen(url)
        print(fileobj.read())