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 adaug un storage space la un bun #41

Open
4 of 5 tasks
RaduCStefanescu opened this issue Feb 20, 2019 · 2 comments
Open
4 of 5 tasks

Comments

@RaduCStefanescu
Copy link
Contributor

RaduCStefanescu commented Feb 20, 2019

Ca un utilizator ANABI, vreau sa adaug un storage space (existent) la un bun. Practic, sa marchez un bun ca fiind intr-un spatiu de stocare, spatiu de stocare care exista deja in DB.

Deci, ar trebui un formular care sa listeze spatiile de stocare din baza de date, si apoi utilizatorul ANABI sa aleaga unul, si acel bun sa fie asociat cu spatiul de stocare respectiv.

Asociere bun - Backend
Controller nou in Anabi - Features - Assets: AssetStorageSpaceController

Cu endpoint nou pt adaugare:
PUT /api/assets/{id}/storagespace

Payload:
*storageSpaceId
*entryDate

Endpoint pt GET
GET /api/assets/{id}/storagespace

Si intoarce un storage space (cu toate campurile din storage space, nu cu campurile din bun).

Handler nou: AssetStorageSpaceHandler
Vezi model AssetHandler

  • Backend - listare spatii de stocare
  • Backend - asociere bun la un spatiu de stocare [PUT]
  • Frontend
  • Backend - DELETE - dez-asociere bun la un spatiu de stocare (Alex Albu)
  • Backend - GET (sa vedem spatiul de stocare adaugat la un bun) (Cosmin Popescu)
@vlad2 vlad2 assigned vlad2 and unassigned vlad2 Feb 23, 2019
@vlad2 vlad2 closed this as completed Feb 23, 2019
@vlad2 vlad2 reopened this Feb 23, 2019
@vlad2 vlad2 changed the title Ca un utilizator ANABI, vreau sa adaug un storage space Ca un utilizator ANABI, vreau sa adaug un storage space la un bun Feb 23, 2019
@bogdanconstantinescu
Copy link
Member

Partea de frontend a fost facuta, dar inca nu avem un endpoint in API care sa permita salvarea storage space-ului pentru un bun, deci momentan parcam partea de frontend pana o sa fie si backendul gata.

@vlad2
Copy link
Contributor

vlad2 commented Mar 26, 2019

Partea de backend de asociere a fost facuta, mai trebuie doar chemata din FE.

Mai trebuie un endpoint de BE de dezasociere storage space <-> bun.

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

3 participants