TypedRest Sample: Client

Sample project for using the typedrest-core library

Лицензия

Лицензия

Категории

Категории

CLI Взаимодействие с пользователем
Группа

Группа

com.oneandone
Идентификатор

Идентификатор

typedrest-sample-client
Последняя версия

Последняя версия

0.20
Дата

Дата

Тип

Тип

jar
Описание

Описание

TypedRest Sample: Client
Sample project for using the typedrest-core library

Скачать typedrest-sample-client

Как подключить последнюю версию

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

Зависимости

compile (2)

Идентификатор библиотеки Тип Версия
com.oneandone : typedrest-core jar 0.20
com.oneandone : typedrest-sample-model jar 0.20

provided (1)

Идентификатор библиотеки Тип Версия
org.projectlombok : lombok jar 1.16.6

test (2)

Идентификатор библиотеки Тип Версия
junit : junit jar 4.12
org.hamcrest : hamcrest-all jar 1.3

Модули Проекта

Данный проект не имеет модулей.

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.

Версии библиотеки

Версия
0.20
0.19
0.18
0.17
0.16