package com.codename1.annotations.rest

Annotations for declaring type safe REST clients.

An interface is marked with RestClient and its methods describe HTTP requests using the verb annotations GET, POST, PUT, PATCH and DELETE. Request data is bound through Path, Query, Header, Cookie and Body. These annotations are processed to generate the concrete REST client implementation.

Types

annotation BodyMarks an interface method parameter as the request body.
annotation CookieBinds an interface method parameter to a Cookie request-header entry.
annotation DELETEHTTP DELETE request.
annotation GETHTTP GET request.
annotation HeaderBinds an interface method parameter to an HTTP request header.
annotation PATCHHTTP PATCH request.
annotation POSTHTTP POST request.
annotation PUTHTTP PUT request.
annotation PathBinds an interface method parameter to a {name} placeholder in the URL path declared on the verb annotation.
annotation QueryBinds an interface method parameter to a URL query-string entry.
annotation RestClientMarks an interface as a REST client that the build-time annotation processor wires up to a generated network implementation.