Skip to content
## 🔖 RaproSh'it v[1.0.0] - 2025-01-10

[![Release 1.0.0][release_1.0.0_badge]][release_1.0.0_link]
[![pipeline status][pipeline_1.0.0_badge]][pipeline_1.0.0_link]
[![Coverage on v1.0.0][coverage_1.0.0_badge_main]][commit_history_1.0.0_link_main]

[release_1.0.0_badge]: https://gitlab2.istic.univ-rennes1.fr/rust-enjoyer/raprosh-it-back/-/badges/release.svg
[release_1.0.0_link]: https://gitlab2.istic.univ-rennes1.fr/rust-enjoyer/raprosh-it-back/-/releases/
[pipeline_1.0.0_badge]: https://gitlab2.istic.univ-rennes1.fr/rust-enjoyer/raprosh-it-back/badges/main/pipeline.svg
[pipeline_1.0.0_link]: https://gitlab2.istic.univ-rennes1.fr/rust-enjoyer/raprosh-it-back/-/commits/v1.0.0?ref_type=tags
[coverage_1.0.0_badge_main]: https://gitlab2.istic.univ-rennes1.fr/rust-enjoyer/raprosh-it-back/badges/main/coverage.svg?job=test&min_good=75&min_acceptable=50
[commit_history_1.0.0_link_main]: https://gitlab2.istic.univ-rennes1.fr/rust-enjoyer/raprosh-it-back/-/commits/v1.0.0?ref_type=tags

### Added

- Endpoints
  - Users (only by user)
    - GET "/basket", getBasket
    - POST "/basket", addBasket
    - DELETE "/basket/:itemFK", removeBasket
    - PATCH "/basket", updateQuantity
  - Users (only by admmin)
    - GET "", getUsers
    - GET "/:id", getUser
    - POST "", createUser
    - PUT "/:id", editUser
    - PATCH "/:id", editUserWithNotAllValues
    - DELETE "/:id", removeUser
  - Shop (user)
    - POST "/getArround", getShopsArroundUser
    - GET "/resume/:id", getShopDescription
    - GET "/product/:id", getShopProductList
    - GET "/images/:id", getShopImagesList
    - GET "/seller/:id", getShopSellerInformation
    - GET "/localisation/:id", getShopLocalisation
  - Shop (admin)
    - GET "", getShops
    - GET "/:id", getShop
    - POST "", createShop
    - PUT "", editShop
    - DELETE "/:id", removeShop
  - Item (user)
    - GET "/info/:id", getItemInformation
    - GET "/shop/:id", getShopInformation
    - GET "/images/:id", getImages
    - GET "/getByName/:name", getAllShopByItemName
    - GET "/getByPrice/:price", getAllShopByPrice
  - Item (admin)
    - GET "/", getAllItem
    - GET "/:id", getItem
    - POST "", createItem
    - PUT "/:id", updateItem
    - DELETE "/:id", removeItem
  - Media
    - Static "", "./media"
    - POST "/shopMedia", addMediaFileToShop
    - DELETE "/removeShopMedia/:id", removeMediaFileToShop
    - POST "/itemMedia", addMediaFileToItem
    - PUT "/updateOrder/:id", updateMediaItem
    - DELETE "/removeItemMedia/:id", removeMediaFileToItem
- Authentication with keycloak
  - config in `data/realm-export.json`
- AutoMigration/Seed of the database
  - from `data/database_example.json`