-
-
Notifications
You must be signed in to change notification settings - Fork 5
Date format
Ahmad K. Bawaneh edited this page Jun 25, 2020
·
3 revisions
if we have a @QueryParam
or @PathParam
or @HeaderParam
and the type of parameter is Date
then we can use @DateFormat
annotation provided by domino-rest to specify the pattern to format the value of the parameter, if @DateFormat
is not specified we fallback to the default String.valueOf
.
@GET
@Path("someService/{starting-date}")
String getByDate(@QueryParam("birth-date") @DateFormat("dd-MM-yyyy") Date birthDate,
@PathParam("starting-date") @DateFormat("d-M-yy") Date startingDate);
- Home
- Quick start
- Sharing clients
-
Configuration
- Locating resource classes
- Service root
- Resource root
- Http methods
- Service method path mapping
- Service path
- Query parameters
- Path parameters
- Header parameters
- Date format
- Request body
- Request and Response mapping
- Produces and Consumes
- Success codes
- Timeout and maximum retries
- With credentials
- Custom request URL
- Global interceptors
- Default failed response handler
- Interface inheritance
- Multipart form data