TypedRest Annotations

Annotations for data models to be used with TypedRest.

License

License

GroupId

GroupId

com.oneandone
ArtifactId

ArtifactId

typedrest-annotations
Last Version

Last Version

0.30
Release Date

Release Date

Type

Type

jar
Description

Description

TypedRest Annotations
Annotations for data models to be used with TypedRest.

Download typedrest-annotations

How to add to project

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

Dependencies

compile (1)

Group / Artifact Type Version
com.fasterxml.jackson.core : jackson-annotations jar 2.7.7

provided (1)

Group / Artifact Type Version
org.projectlombok : lombok jar 1.16.6

test (2)

Group / Artifact Type Version
junit : junit jar 4.12
org.hamcrest : hamcrest-all jar 1.3

Project Modules

There are no modules declared in this project.

TypedRest for Java

TypedRest for Java helps you build type-safe, fluent-style REST API clients. Common REST patterns such as collections are represented as classes, allowing you to write more idiomatic code.

MyClient client = new MyClient(URI.create("http://example.com/"));

// GET /contacts
List<Contact> contactList = client.getContacts().readAll();

// POST /contacts -> Location: /contacts/1337
ContactEndpoint smith = client.getContacts().create(new Contact("Smith"));
//ContactEndpoint smith = client.getContacts().get("1337");

// GET /contacts/1337
Contact contact = smith.read();

// PUT /contacts/1337/note
smith.getNote().set(new Note("some note"));

// GET /contacts/1337/note
Note note = smith.getNote().read();

// DELETE /contacts/1337
smith.delete();

Read an Introduction to TypedRest or jump right in with the Getting started guide.

For information about specific Java classes or interfaces you can read the API Documentation.

Maven artifacts

Artifact group: com.oneandone

typedrest-core
The main TypedRest library.

typedrest-annotations
Annotations for data models to be used with TypedRest.

typedrest-vaadin
Build Vaadin GUIs for TypedRest clients.

typedrest-archetype
Maven archetype (template) for creating TypedRest projects.

com.oneandone

1&1

Open Source by 1&1 Group.

Versions

Version
0.30
0.29.1
0.28.1
0.28
0.27
0.26
0.25
0.24
0.23
0.22
0.21
0.20
0.19
0.18
0.17
0.16
0.15
0.14
0.13
0.12
0.11
0.10
0.9