Skip to content

Commit

Permalink
release information
Browse files Browse the repository at this point in the history
  • Loading branch information
remmeier committed Jun 14, 2018
1 parent ffd8847 commit f0a8693
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 31 deletions.
39 changes: 39 additions & 0 deletions crnk-documentation/src/docs/releases/latest/info.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,45 @@
The 2.7 release focuses on various usability improvements. Some further updates will be released in the coming weeks.


<h3>Patch Release 14. June</h3>

<h4>WARN log message in case of security misconfigurations</h4>

A WARN message is written to the log if the security module or any other kind of resource filter hides all
repositories from a user upon a request. Most likely the security module is not properly configured in
such cases. If a user should not have access to any repositories, the authentication layer should entirely block him.

<h4>WARN log message when using wrong content type</h4>

A WARN message is written to the log if a PATCH or POST request is attempted to a JSON API repository with a content type
other than application/vnd.api+json. Crnk does not serve such requests and will return a 404. The log message
will let developer know what is wrong.

<h4>Minimal Spring Boot example application</h4>

<a href="https://github.com/crnk-project/crnk-framework/tree/master/crnk-examples/spring-boot-minimal-example">spring-boot-minimal-example</a>
is a new example application that shows a very minimal setup just based on auto configuration and a single repository.

<h4>Spring Boot 2 upgrade</h4>

The example applications have been upgraded to Spring Boot 2. Spring Boot 1.x continues to be supported.

<h4>PATCH method can return 204 status code</h4>

If a repository returns a null upon a PATCH request, it will result in a HTTP 204 status code without contents. But keep
in mind that POST requests must always return a resource.

<h4>Default paging fix for crnk-jpa</h4>

The customizable paging behavior introduced in the previous release led to an issue with JPA repositories ignoring the default
paging limit.


<br>
<br>

<h3>Initial Release 8. June</h3>

<h4>use of Jackson to parse filter parameters</h4>

The TypeParser now also makes use of Jackson to deserialize parameters (next to already built-in and custom parsers).
Expand Down
Original file line number Diff line number Diff line change
@@ -1,48 +1,17 @@
package io.crnk.example.springboot.minimal;

import java.util.HashMap;
import java.util.Map;

import io.crnk.core.engine.registry.RegistryEntry;
import io.crnk.core.engine.registry.ResourceRegistry;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Configuration
@RestController
@SpringBootApplication
@Import({ TestDataLoader.class })
public class MinimalSpringBootApplication {

@Autowired
private ResourceRegistry resourceRegistry;

public static void main(String[] args) {
SpringApplication.run(MinimalSpringBootApplication.class, args);
System.out.println("visit http://127.0.0.1:8080/ in your browser");
}

/**
* Base example of a Spring MVC service working next to Crnk
*/
@RequestMapping("/resourcesInfo")
public Map<?, ?> getResources() {
Map<String, String> result = new HashMap<>();
// Add all resources (i.e. Project and Task)
for (RegistryEntry entry : resourceRegistry.getResources()) {
result.put(entry.getResourceInformation().getResourceType(),
resourceRegistry.getResourceUrl(entry.getResourceInformation()));
}
return result;
}

@RequestMapping("/api/hello")
public String getHello() {
return "World";
}
}

0 comments on commit f0a8693

Please sign in to comment.