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

Ca un utilizator ANABI vreau sa caut un bun (cautare avansata dupa decizie, dosar, inculpat) #104

Open
1 of 3 tasks
vlad2 opened this issue Mar 30, 2019 · 1 comment
Open
1 of 3 tasks

Comments

@vlad2
Copy link
Contributor

vlad2 commented Mar 30, 2019

Vreau sa caut un bun dupa:

  • numar decizie
  • numar dosar
  • cnp/cui inculpat
  • nume inculpat

Rezultatul cautarii trebuie sa fie un tabel similar cu cel de la listare bunuri (care apare cand dau click pe "Bunuri"), dar, ideal, cu coloanele din wireframe (ID bun, nume inculpat, numar decizie, numar dosar, stare bun , link catre VIEW BUN, link catre EDIT BUN).

Subtaskuri

  • Frontend - formular cautare
  • Backend - endpoint cautare bunuri (intoarce o lista de bunuri)
  • Frontend - afisare rezultat cautare cu coloanele din wireframe

Cautare_dropdown
Cautare
Cautare cu rezultate

@vlad2
Copy link
Contributor Author

vlad2 commented Jun 18, 2019

API DESIGN:

Endpoint nou: GET /api/search/asset?decisionId = & fileNumber= &defendantName& defendantId =

Parametri query: (unul singur trebuie completat (restul parametrilor sunt optionali); se pot trimite si mai multi parametri catre backend).

  • decisionId = numar decizie
  • fileNumber = numar dosar
  • defendentId = CNP/CUI inculpat
  • defendantName = nume inculpat

Raspuns:

  • lista de decizii - [ .... ]

Fiecare decizie contine:

  • id - id deciziei
  • defendantName
  • decisionNumber
  • fileNumber
  • stage - starea bunului
  • assetId - id-ul bunului

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant