Successfull calls - KostasMparmparousis/LoginName-Validity-Checker Wiki

Eπιτυχημένες κλήσεις.

Τα παρακάτω responses προκύπτουν ύστερα από επιτυχείς/ολοκληρωμένες κλήσεις του API:

Example 1.

Αίτηση δημιουργίας λογαριασμού η οποία δεν επιστρέφει κανένα conflict βάσει αναζήτησης με το loginName. Επιπλέον ισχύει το 1 απο τα 2 ενδεχόμενα για τον αιτούμενο με αυτό το Α.Μ.Κ.Α.:

{
  "ssn": "12312312312",
  "ssnCountry": "GR",
  "birthDate": "19770823",
  "birthYear": "1977",
  "loginName": "gunetdemo",
  "institution": "ihu"
}

To response που θα επιστραφεί:

{
  
}

Example 2.

Αίτηση δημιουργίας λογαριασμού η οποία δεν επιστρέφει κανένα conflict βάσει αναζήτησης με το loginName. Όμως για τον αιτούμενο με αυτά τα προσωπικά στοιχεία έχει καταχωρηθεί ήδη ένα userName σε κάποια βάση δεδομένων.

{
  "ssn": "12312312312",
  "ssnCountry": "GR",
  "birthDate": "19770823",
  "birthYear": "1977",
  "loginName": "test",
  "institution": "ihu"
}

To response που θα επιστραφεί:

{
  "personPairedWith":["gunetdemo"]
}

Example 3.

Αίτηση δημιουργίας λογαριασμού η οποία επιστρέφει conflict βάσει αναζήτησης με το loginName. Επιπλέον η παράμετρος verbose είναι false.

{
  "ssn": "12312312312",
  "ssnCountry": "GR",
  "birthDate": "19770825",
  "birthYear": "1977",
  "loginName": "gunetdemo",
  "institution": "ihu"
}

To response που θα επιστραφεί:

{
  "conflicts":  {
    "hrmsConflicts":1,
    "associatesConflicts":1,
    "sisConflicts":1,
    "dsConflicts":1
  },
  "suggestions":  [
    "dokim_xri",
    "xri_dokim",
    "ist_mastik",
    "mastik_ist",
    "xrdokima",
    "xrisdokimastiko"
  ]
}

Example 4.

Αίτηση δημιουργίας λογαριασμού η οποία επιστρέφει conflict βάσει αναζήτησης με το loginName. Επιπλέον η παράμετρος verbose είναι true.

{
  "ssn": "12312312312",
  "ssnCountry": "GR",
  "birthDate": "19770825",
  "birthYear": "1977",
  "loginName": "gunetdemo",
  "institution": "ihu",
  "verbose": true
}

To response που θα επιστραφεί:

{
  "detailedConflicts": [
    {
      "type":"existing-login",
      "description":"A record exists in 'SIS DB View' with the same loginName, but a different date of birth",
      "conflictingData":"birthDate",
      "conflictingRecordKey":"registrationID=0001-05-003000,systemID=003000",
      "conflictSource":"sis",
      "requestValue":"19770825",
      "conflictingValue":"19770823"
    },
    {
      "type":"existing-login",
      "description":"A record exists in 'Associates DB View' with the same loginName, but a different date of birth",
      "conflictingData":"birthDate",
      "conflictingRecordKey":"registrationID=1,systemID=1",
      "conflictSource":"associates",
      "requestValue":"19770825",
      "conflictingValue":"19770823"
    },
    {
      "type":"existing-login",
      "description":"A record exists in 'DS' with the same loginName, but a different date of birth",
      "conflictingData":"birthDate",
      "conflictingRecordKey":"academicID=E2Q4KXGLNSPLB25T8TLLT5",
      "conflictSource":"ds",
      "requestValue":"19770825",
      "conflictingValue":"19770823"
    },
    {
      "type":"existing-login",
      "description":"A record exists in 'HRMS DB View' with the same loginName, but a different date of birth",
      "conflictingData":"birthDate",
      "conflictingRecordKey":"registrationID=ΔΠ-9128,systemID=1802",
      "conflictSource":"hrms",
      "requestValue":"19770825",
      "conflictingValue":"19770823"
    }
  ],
  "suggestions":  [
    "dokim_xri",
    "xri_dokim",
    "okimas_ris",
    "ris_okimas",
    "xristdokimas",
    "xristodok"
  ]
}

Example 5.

Αίτηση δημιουργίας λογαριασμού η οποία επιστρέφει conflict βάσει αναζήτησης με το loginName. Επιπλέον η παράμετρος verbose είναι false. Tέλος για το πρόσωπο με αυτά τα στοιχεία έχει βρεθεί ότι του έχει ήδη αποδωθεί loginName σε κάποια βάση.

{
  "ssn": "12312312312",
  "ssnCountry": "GR",
  "birthDate": "19770823",
  "birthYear": "1977",
  "loginName": "gunetdemo2",
  "institution": "ihu"
}

To response που θα επιστραφεί:

{
  "conflicts":  {
    "associatesConflicts":1,
    "sisConflicts":1,
    "dsConflicts":1
  },
  "personPairedWith": [
    "gunetdemo"
  ],
  "suggestions":  [
    "dokim_xri",
    "xri_dokim",
    "mastik_ris",
    "ris_mastik",
    "xrdoki",
    "xrisdokimasti"
  ]
}

Example 6.

Ίδιο παράδειγμα με πρίν, αυτήν την φορά με το verbose να είναι true.

{
  "ssn": "12312312312",
  "ssnCountry": "GR",
  "birthDate": "19770823",
  "birthYear": "1977",
  "loginName": "gunetdemo2",
  "institution": "ihu",
  "verbose": true
}

To response που θα επιστραφεί:

{
  "detailedConflicts": [
    {
      "type":"existing-login",
      "description":"A record exists in 'DS' with the same loginName, but a different SSN",
      "conflictingData":"SSN",
      "conflictingRecordKey":"academicID=8ARNM77QC4L9MNCPW14DXTK",
      "conflictSource":"ds",
      "requestValue":"12312312312",
      "conflictingValue":"25047405698"
    },
    {
      "type":"existing-login",
      "description":"A record exists in 'SIS DB View' with the same loginName, but a different date of birth",
      "conflictingData":"birthDate",
      "conflictingRecordKey":"registrationID=0002-11-002671,systemID=002671",
      "conflictSource":"sis",
      "requestValue":"19770823",
      "conflictingValue":"19740425"
    },
    {
      "type":"null-value",
      "description":"A record exists in 'SIS DB View' with the same loginName, but NULL SSN Country",
      "conflictingData":"SSN Country",
      "conflictingRecordKey":"registrationID=0002-11-002671,systemID=002671",
      "conflictSource":"sis",
      "requestValue":"GR",
      "conflictingValue":"null"
    },
    {
      "type":"existing-login",
      "description":"A record exists in 'DS' with the same loginName, but a different year of birth",
      "conflictingData":"birthYear",
      "conflictingRecordKey":"academicID=8ARNM77QC4L9MNCPW14DXTK",
      "conflictSource":"ds",
      "requestValue":"1977",
      "conflictingValue":"1974"
    },
    {
      "type":"null-value",
      "description":"A record exists in 'SIS DB View' with the same loginName, but NULL SSN",
      "conflictingData":"SSN",
      "conflictingRecordKey":"registrationID=0002-11-002671,systemID=002671",
      "conflictSource":"sis",
      "requestValue":"12312312312",
      "conflictingValue":"null"
    },
    {
      "type":"existing-login",
      "description":"A record exists in 'Associates DB View' with the same loginName, but a different date of birth",
      "conflictingData":"birthDate",
      "conflictingRecordKey":"registrationID=1214885,systemID=8206",
      "conflictSource":"associates",
      "requestValue":"19770823",
      "conflictingValue":"19740425"
    },
    {
      "type":"existing-login",
      "description":"A record exists in 'DS' with the same loginName, but a different date of birth",
      "conflictingData":"birthDate",
      "conflictingRecordKey":"academicID=8ARNM77QC4L9MNCPW14DXTK",
      "conflictSource":"ds",
      "requestValue":"19770823",
      "conflictingValue":"19740425"
    },
    {
      "type":"existing-login",
      "description":"A record exists in 'Associates DB View' with the same loginName, but a different SSN",
      "conflictingData":"SSN",
      "conflictingRecordKey":"registrationID=1214885,systemID=8206",
      "conflictSource":"associates",
      "requestValue":"12312312312",
      "conflictingValue":"25047405698"
    },
    {
      "type":"existing-login",
      "description":"A record exists in 'Associates DB View' with the same loginName, but a different year of birth",
      "conflictingData":"birthYear",
      "conflictingRecordKey":"registrationID=1214885,systemID=8206",
      "conflictSource":"associates",
      "requestValue":"1977",
      "conflictingValue":"1974"
    },
    {
      "type":"existing-login",
      "description":"A record exists in 'SIS DB View' with the same loginName, but a different year of birth",
      "conflictingData":"birthYear",
      "conflictingRecordKey":"registrationID=0002-11-002671,systemID=002671",
      "conflictSource":"sis",
      "requestValue":"1977",
      "conflictingValue":"1974"
    }
  ],
  "personPairedWith": [
    "gunetdemo"
  ],
  "suggestions":  [
    "dokim_xri",
    "xri_dokim",
    "dokima_tos",
    "tos_dokima",
    "xrisdokimas",
    "xrisdokimastik"
  ]
}