Skip to content
🔖 RaproSh'it v[2.0.0] - 2025-01-13

[![Release 2.0.0][release_2.0.0_badge]][release_2.0.0_link]
[![pipeline status][pipeline_2.0.0_badge]][pipeline_2.0.0_link]
[![Coverage on v2.0.0][coverage_2.0.0_badge_main]][commit_history_2.0.0_link_main]

[release_2.0.0_badge]: https://gitlab2.istic.univ-rennes1.fr/rust-enjoyer/raprosh-it-back/-/badges/release.svg
[release_2.0.0_link]: https://gitlab2.istic.univ-rennes1.fr/rust-enjoyer/raprosh-it-back/-/releases/v2.0.0
[pipeline_2.0.0_badge]: https://gitlab2.istic.univ-rennes1.fr/rust-enjoyer/raprosh-it-back/badges/main/pipeline.svg
[pipeline_2.0.0_link]: https://gitlab2.istic.univ-rennes1.fr/rust-enjoyer/raprosh-it-back/-/commits/v2.0.0?ref_type=tags
[coverage_2.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_2.0.0_link_main]: https://gitlab2.istic.univ-rennes1.fr/rust-enjoyer/raprosh-it-back/-/commits/v2.0.0?ref_type=tags

### Added

- run `./run_back.sh` to launch keycloak and run the go code
- Automatic keycloak configuration (via realm export)
- Delete on cascade
- CORS config
- Endpoints
  - Baskets (only for users) (migrated from `user.go`)
    - GET "", getBasket
    - POST "", addBasket
    - DELETE "/:itemFK", removeBasket
    - PATCH "/", updateQuantity
    - GET "/price", getBasketPrice
    - GET "/validate", getBasketValidate

### Changed

- Endpoints
  - Items
    - users can now manager their items
    - fix image management
  - Shops
    - users can manage their shop(s)
  - Users
    - GET "/self", getSelfUser
    - PUT "/self", editSelfUser
    - DELETE "/self", removeSelfUser
    - POST "", createUser
    - GET "/subscriptions", getSubscribe
    - GET "/subscriptions/:id", addSubscribe
    - GET "/Owner", getOwnShop
    - GET "/Owner/:id", addOwnShop

### Fixed

- image examples are working (randomized name, correct path)
- authentication middleware
- foreign key access (it's now activated)