Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API: nadbytečné informace #503

Open
smallcubes opened this issue Mar 6, 2023 · 1 comment
Open

API: nadbytečné informace #503

smallcubes opened this issue Mar 6, 2023 · 1 comment
Labels
c::API Cast - API

Comments

@smallcubes
Copy link
Collaborator

smallcubes commented Mar 6, 2023

Dobrý den,

API pro uživatele např. s rolí knihovna vrací nadbytečné informace např. noworkflow
Pokud jsou vraceny stavy a licence k dílu, měly by být vráceny samostatně např.:

{
"identifier": "oai:aleph-nkp.cz:SKC01-002517116"
// ...
"stav": "A"        // status
"licence": "DNNTO" // license
}
[
  {
    "identifiers": [
      "oai:aleph-nkp.cz:SKC01-002517116"
    ],
    "pozadavek": "Retest z 3. 3. 2023, #495, bez stavu, 1979",
    "poznamka": "Retest z 3. 3. 2023, #495, bez stavu, 1979",
    "id": "3afdabd8-b8d7-411f-92db-27402f0ac52b",
    "datum_zadani": "2023-03-03T08:30:03.032Z",
    "navrh": "NZN",
    "indextime": "2023-03-03T14:13:00.184Z",
    "user": "postakpet",
    "state": "processed",
    "details": [
      {
        "identifier": "oai:aleph-nkp.cz:SKC01-002517116_(NPA,_)",
        "reason": "ok",
        "user": "kurator-cyp",
        "state": "approved"
      },
      {
        "identifier": "oai:aleph-nkp.cz:SKC01-002517116",
        "reason": "ok",
        "user": "kurator-cyp",
        "state": "approved"
      }
    ]
  },
  {
    "identifiers": [
      "oai:aleph-nkp.cz:SKC01-002245724"
    ],
    "pozadavek": "Retest z 3. 3. 2023, #495, bez stavu, 1981",
    "poznamka": "Retest z 3. 3. 2023, #495, bez stavu, 1981",
    "id": "3c8f2f2a-37b1-47d5-bf23-7f0dfdab88b5",
    "datum_zadani": "2023-03-03T08:27:47.45Z",
    "navrh": "NZN",
    "indextime": "2023-03-03T14:13:00.34Z",
    "user": "postakpet",
    "state": "processed",
    "details": [
      {
        "identifier": "oai:aleph-nkp.cz:SKC01-002245724_noworkflow",
        "reason": "už je A",
        "user": "kurator-cyp",
        "state": "rejected"
      },
      {
        "identifier": "oai:aleph-nkp.cz:SKC01-002245724_(PA,dnnto)",
        "reason": "už je A",
        "user": "kurator-cyp",
        "state": "rejected"
      },
      {
        "identifier": "oai:aleph-nkp.cz:SKC01-002245724",
        "reason": "už je A",
        "user": "kurator-cyp",
        "state": "rejected"
      },
      {
        "identifier": "oai:aleph-nkp.cz:SKC01-002245724_(A,dnnto)",
        "reason": "už je A",
        "user": "kurator-cyp",
        "state": "rejected"
      }
    ]
  },
  {
    "identifiers": [
      "oai:aleph-nkp.cz:SKC01-002245724"
    ],
    "pozadavek": "Retest z 3. 3. 2023, #495, bez stavu, 1981",
    "poznamka": "Retest z 3. 3. 2023, #495, bez stavu, 1981",
    "id": "931719cc-9c1d-42ac-9003-e705a8027e8c",
    "datum_zadani": "2023-03-03T08:24:45.441Z",
    "navrh": "NZN",
    "indextime": "2023-03-03T10:32:00.208Z",
    "user": "postakpet",
    "state": "processed",
    "details": [
      {
        "identifier": "oai:aleph-nkp.cz:SKC01-002245724_(NPA,_)",
        "reason": "ok",
        "user": "kurator-cyp",
        "state": "approved"
      },
      {
        "identifier": "oai:aleph-nkp.cz:SKC01-002245724",
        "reason": "ok",
        "user": "kurator-cyp",
        "state": "approved"
      }
    ]
  },
  {
    "identifiers": [
      "oai:aleph-nkp.cz:SKC01-002517099",
      "oai:aleph-nkp.cz:SKC01-002517113",
      "oai:aleph-nkp.cz:SKC01-002517126",
      "oai:aleph-nkp.cz:SKC01-002517215"
    ],
    "pozadavek": "TEST API",
    "poznamka": "TEST API",
    "id": "a91fea37-2b66-4aec-bab3-0063814608a5",
    "datum_zadani": "2022-08-31T11:57:01.517Z",
    "navrh": "NZN",
    "indextime": "2022-08-31T14:35:00.444Z",
    "user": "postakpet",
    "state": "processed",
    "details": [
      {
        "identifier": "oai:aleph-nkp.cz:SKC01-002517215_(NPA,_)",
        "reason": "a",
        "user": "verderon",
        "state": "approved"
      },
      {
        "identifier": "oai:aleph-nkp.cz:SKC01-002517113",
        "reason": "n",
        "user": "verderon",
        "state": "rejected"
      },
      {
        "identifier": "oai:aleph-nkp.cz:SKC01-002517099",
        "reason": "aa",
        "user": "verderon",
        "state": "approved"
      },
      {
        "identifier": "oai:aleph-nkp.cz:SKC01-002517113_(A,dnnto)",
        "reason": "n",
        "user": "verderon",
        "state": "rejected"
      },
      {
        "identifier": "oai:aleph-nkp.cz:SKC01-002517113_(PA,dnnto)",
        "reason": "n",
        "user": "verderon",
        "state": "rejected"
      },
      {
        "identifier": "oai:aleph-nkp.cz:SKC01-002517113_(NPA,_)",
        "reason": "n",
        "user": "verderon",
        "state": "rejected"
      },
      {
        "identifier": "oai:aleph-nkp.cz:SKC01-002517099_(NPA,_)",
        "reason": "aa",
        "user": "verderon",
        "state": "approved"
      },
      {
        "identifier": "oai:aleph-nkp.cz:SKC01-002517215",
        "reason": "a",
        "user": "verderon",
        "state": "approved"
      },
      {
        "identifier": "oai:aleph-nkp.cz:SKC01-002517126_(NPA,_)",
        "reason": "aa",
        "user": "verderon",
        "state": "approved"
      },
      {
        "identifier": "oai:aleph-nkp.cz:SKC01-002517126",
        "reason": "aa",
        "user": "verderon",
        "state": "approved"
      }
    ]
  },
  {
    "identifiers": [
      "oai:aleph-nkp.cz:SKC01-002517102"
    ],
    "pozadavek": "3 Test 2018",
    "poznamka": "3 Test 2018",
    "id": "8cda0d27-bbfc-4a81-8ffd-29adf2cad2ce",
    "datum_zadani": "2022-08-18T13:36:15.416Z",
    "navrh": "NZN",
    "indextime": "2022-08-24T12:23:03.646Z",
    "user": "postakpet",
    "state": "processed",
    "details": [
      {
        "identifier": "oai:aleph-nkp.cz:SKC01-002517102",
        "reason": "ano",
        "user": "verderon",
        "state": "approved"
      },
      {
        "identifier": "oai:aleph-nkp.cz:SKC01-002517102_(NPA,_)",
        "reason": "ano",
        "user": "verderon",
        "state": "approved"
      }
    ]
  },
  {
    "identifiers": [
      "oai:aleph-nkp.cz:SKC01-009571844"
    ],
    "pozadavek": "2 Test 2018",
    "poznamka": "2 Test 2018",
    "id": "6a862d66-c80a-4071-9ef6-f1c462d0b2a1",
    "datum_zadani": "2022-08-18T13:29:04.155Z",
    "navrh": "NZN",
    "indextime": "2022-08-24T12:23:02.453Z",
    "user": "postakpet",
    "state": "processed",
    "details": [
      {
        "identifier": "oai:aleph-nkp.cz:SKC01-009571844_(NPA,_)",
        "reason": "ano",
        "user": "verderon",
        "state": "approved"
      },
      {
        "identifier": "oai:aleph-nkp.cz:SKC01-009571844",
        "reason": "ano",
        "user": "verderon",
        "state": "approved"
      }
    ]
  }
]
@smallcubes smallcubes added c::API Cast - API bug Something isn't working labels Mar 6, 2023
@pavel-stastny pavel-stastny removed the bug Something isn't working label Mar 8, 2023
@smallcubes
Copy link
Collaborator Author

retest: ca3998e
Zůstává předchozí např. https://sdnnt-test.nkp.cz/sdnnt/api/v1.0/request?status=processed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c::API Cast - API
Projects
None yet
Development

No branches or pull requests

2 participants