rest-schemagen-spring

Spring configuration for rest-schemagen

License

License

GroupId

GroupId

com.mercateo
ArtifactId

ArtifactId

rest-schemagen-spring
Last Version

Last Version

0.1.12
Release Date

Release Date

Type

Type

jar
Description

Description

rest-schemagen-spring
Spring configuration for rest-schemagen
Project URL

Project URL

https://github.com/Mercateo/rest-schemagen-spring
Project Organization

Project Organization

Mercateo AG
Source Code Management

Source Code Management

https://github.com/Mercateo/rest-schemagen-spring.git

Download rest-schemagen-spring

How to add to project

<!-- https://jarcasting.com/artifacts/com.mercateo/rest-schemagen-spring/ -->
<dependency>
    <groupId>com.mercateo</groupId>
    <artifactId>rest-schemagen-spring</artifactId>
    <version>0.1.12</version>
</dependency>
// https://jarcasting.com/artifacts/com.mercateo/rest-schemagen-spring/
implementation 'com.mercateo:rest-schemagen-spring:0.1.12'
// https://jarcasting.com/artifacts/com.mercateo/rest-schemagen-spring/
implementation ("com.mercateo:rest-schemagen-spring:0.1.12")
'com.mercateo:rest-schemagen-spring:jar:0.1.12'
<dependency org="com.mercateo" name="rest-schemagen-spring" rev="0.1.12">
  <artifact name="rest-schemagen-spring" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.mercateo', module='rest-schemagen-spring', version='0.1.12')
)
libraryDependencies += "com.mercateo" % "rest-schemagen-spring" % "0.1.12"
[com.mercateo/rest-schemagen-spring "0.1.12"]

Dependencies

compile (4)

Group / Artifact Type Version
com.mercateo : common.rest.schemagen jar 0.18.1
org.springframework : spring-beans jar 4.3.5.RELEASE
org.springframework : spring-web jar 4.3.5.RELEASE
javax.servlet : javax.servlet-api jar 3.1.0

test (5)

Group / Artifact Type Version
junit : junit jar 4.12
org.mockito : mockito-core jar 1.10.19
org.assertj : assertj-core jar 3.6.2
org.springframework : spring-test jar 4.3.5.RELEASE
ch.qos.logback : logback-classic jar 1.1.8

Project Modules

There are no modules declared in this project.

rest-schemagen-spring

Build Status Coverage Status MavenCentral

Spring support for Mercateo/rest-schemagen. See TNG/rest-demo-jersey for a comprehensive example.

Getting started

After adding this projects dependency, the following minimal configuration is required for a working schema generator:

@Configuration
@Import(JerseyHateoasConfiguration.class)
public class WeatherServerConfiguration {

    @Bean
    public FieldCheckerForSchema fieldCheckerForSchema() {
        return (field, callContext) -> true;
    }

    @Bean
    public MethodCheckerForLink methodCheckerForLink() {
        return scope -> true;
    }
}

Particular link factories can be created via:

    @Bean
    @Named("stationsLinkFactory")
    LinkFactory<FooResource> stationsResourceLinkFactory(LinkMetaFactory linkMetaFactory) {
        return linkMetaFactory.createFactoryFor(FooResource.class);
    }
com.mercateo
the procurement platform for your business

Versions

Version
0.1.12
0.1.11
0.1.10
0.1.9
0.1.8
0.1.7
0.1.6
0.1.5
0.1.4