Skip to content

Commit

Permalink
1.0.19
Browse files Browse the repository at this point in the history
======
    [fix] version conflict when used by Spring Web App of different version than the internal used by XRest
    [add] In operator is now supported in JSON notation
    [add] In operator Test Cases in JSON notation (T04_JSONConditionTest)
    [modify] update readme
  • Loading branch information
Mahmoud AlSati committed Jul 25, 2024
1 parent 7a8f43c commit 7506ed2
Show file tree
Hide file tree
Showing 12 changed files with 419 additions and 175 deletions.
5 changes: 5 additions & 0 deletions .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 28 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,19 @@ Principally, XRest is supposed to work on any Sql-based database (PostgreSQL, My
<dependency>
<groupId>io.github.sattinos</groupId>
<artifactId>xrest</artifactId>
<version>1.0.13</version>
<version>1.0.19</version>
<exclusions>
<!-- Exclude spring-boot-starter-data-jpa to avoid version conflict -->
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</exclusion>
<!-- Exclude spring-boot-starter-web to avoid version conflict -->
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</exclusion>
</exclusions>
</dependency>
```

Expand Down Expand Up @@ -565,4 +577,18 @@ The Structure:
![Class Diagram](assets/classDiagram.png)

### Roadmap
JSON schema validation (todo)
JSON schema validation (todo)
Handle Invalid Input:
wrong key

Update Where

Transitive Dependency

Post Hooks
Missing Hooks

Support WildCard


CrudService should be protected
7 changes: 7 additions & 0 deletions assets/commits.txt
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,10 @@
1.0.18
======
[modify] update readme

1.0.19
======
[fix] version conflict when used by Spring Web App of different version than the internal used by XRest
[add] In operator is now supported in JSON notation
[add] In operator Test Cases in JSON notation (T04_JSONConditionTest)
[modify] update readme
4 changes: 3 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<groupId>io.github.sattinos</groupId>
<artifactId>xrest</artifactId>
<packaging>jar</packaging>
<version>1.0.16</version>
<version>1.0.19</version>
<name>xrest</name>
<url>https://github.com/sattinos/xrest.git</url>
<description>A REST accelerator library. It allows for creating CRUD Controller and express conditions in JSON
Expand Down Expand Up @@ -46,10 +46,12 @@
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public abstract class CrudController<T,
UpdateOneInputDto,
DeleteOneOutputDto,
GetOneOutputDto> {
private CrudService<T,
protected CrudService<T,
TKeyType,
CreateOneInputDto,
CreateOneOutputDto,
Expand Down Expand Up @@ -159,7 +159,7 @@ protected ResponseEntity<ServiceResponse<CreateOneOutputDto>> createOne(@Request
* @see CrudController#createOne
*/
@PostMapping(CrudEndpoints.CREATE_MANY)
protected ResponseEntity<ServiceResponse<CreateOneOutputDto[]>> createMany(@RequestBody Iterable<CreateOneInputDto> createInputDto) {
protected ResponseEntity<ServiceResponse<List<CreateOneOutputDto>>> createMany(@RequestBody List<CreateOneInputDto> createInputDto) {
var res = this.crudService.createMany(createInputDto);
if (res.isSuccess()) {
return new ResponseEntity<>(res, HttpStatus.CREATED);
Expand Down Expand Up @@ -259,7 +259,7 @@ protected ResponseEntity<ServiceResponse<Boolean>> updateOne(@RequestBody Update
*
*/
@PatchMapping(CrudEndpoints.UPDATE_MANY)
protected ResponseEntity<ServiceResponse<Boolean>> updateMany(@RequestBody Iterable<UpdateOneInputDto> updateManyInputDto) {
protected ResponseEntity<ServiceResponse<Boolean>> updateMany(@RequestBody List<UpdateOneInputDto> updateManyInputDto) {
var res = this.crudService.updateMany(updateManyInputDto);
if (res.isSuccess()) {
return new ResponseEntity<>(res, HttpStatus.OK);
Expand Down
Loading

0 comments on commit 7506ed2

Please sign in to comment.