Description:

From requests in this API, you will get comparison info reponse(JSON) according to the questions(q1_id, q2_id) and language(lang) that you will pass in this API request.


API Usage Guide

Method:

POST

URL:

/comparison

Body Parameters:

        
          {
          	"q1_id": [alphanumeric],
          	"q2_id": [alphanumeric],
          	"lang": [alphanumeric]
          }
        
      
Note! The values of q1_id and q2_id should be in this form "q14", the "q" is for question and 14 is sample number of question, please refer to this document to see all questions of this questionnaire Download questionnaire. And the the values of "lang" can be "sq", "en" and "sr".
Note! The API request must be sent as POST request with application/json type in body.

Success Sample Request

/comparison

        
          {
            "q1_id": "q122",
          	"q2_id": "q14",
          	"lang": "en"
          }
        
      
        
          [
              {
                  "count": 1,
                  "type1": "Your request was denied without reasoning nor possibility to complain",
                  "type2": "Association (membership-based organization)"
              },
              {
                  "count": 3,
                  "type1": "You received no answer",
                  "type2": "Association (membership-based organization)"
              },
              {
                  "count": 10,
                  "type1": "You received data/information belatedly",
                  "type2": "Association (membership-based organization)"
              },
              {
                  "count": 9,
                  "type1": "You received the data/information within the time limit prescribed (7 days)",
                  "type2": "Association (membership-based organization)"
              },
              {
                  "count": 3,
                  "type1": "Your request was denied with reasoning and possibility to complain",
                  "type2": "Association (membership-based organization)"
              },
              {
                  "count": 1,
                  "type1": "Other",
                  "type2": "Foundation (an organization without membership)"
              },
              {
                  "count": 2,
                  "type1": "You received the data/information within the time limit prescribed (7 days)",
                  "type2": "Foundation (an organization without membership)"
              },
              {
                  "count": 1,
                  "type1": "You received no answer",
                  "type2": "Foundation (an organization without membership)"
              }
          ]
        
      

Fail Sample Request

/comparison

        
          {
          	"q1_id": "q12",
          	"q2_id": "q14",
          	"lang": "en"
          }
        
      
        
          []
        
      

© 2017 Open Data Kosovo. All rights reserved