Resolve "Fix: Change the date beeing stored as a sting in the tatabease for soring purposes"
See merge request padas/24ss-5430-web-and-data-eng/gruppe-3/datadash!23
This commit refactors the `DatasetController` and `DatasetService` classes to update the endpoints for upvoting and downvoting datasets. The `@PostMapping` annotations are replaced with `@PutMapping` annotations to better align with RESTful conventions. This change improves the clarity and consistency of the API endpoints.
This commit refactors the `DatasetController` and `DatasetService` classes. It updates the request mappings in the `DatasetController` class to `/api/v1/datasets` and adds new methods for upvoting and downvoting datasets. In the `DatasetService` class, it adds the `upvoteDataset` and `downvoteDataset` methods to handle dataset upvoting and downvoting. Additionally, it improves the search query in the `getDatasetsByDateAfter` method by adding optional criteria for title, description, author, abstract, type, and minimum rating. This refactoring enhances code organization, functionality, and search capabilities.
finished basic implementation of frontend features toolbar/searchbar & addbutton
See merge request padas/24ss-5430-web-and-data-eng/gruppe-3/datadash!10
This commit refactors the `DatasetController` and `DatasetService` classes. It updates the request mappings in the `DatasetController` class to `/api/v1/datasets` and adds new methods for upvoting and downvoting datasets. In the `DatasetService` class, it adds the `upvoteDataset` and `downvoteDataset` methods to handle dataset upvoting and downvoting. This refactoring improves code organization and functionality.
The variable `Categories` in the `Dataset` class has been renamed to `categories` to follow the naming convention. This change improves code readability and consistency.
The `findByAutor` method in the `dataRepository` interface has been renamed to `findByAuthor` to align with the naming convention. This change improves code readability and consistency.