Follow @ServiceStack or join the Google+ Community for updates, or StackOverflow or the Customer Forums for support.
This repository contains the source for ServiceStack plugins for the leading Android Studio, IntelliJ and Eclipse Java IDE's providing Java developers a highly productive development experience for consuming Typed ServiceStack Services by leveraging Add ServiceStack Reference directly within their IDE!
- Rename FileUpload to
UploadFile
to match other ServiceStack libraries
Added new ServiceClient APIs:
<T> T postFileWithRequest(IReturn<T> request, FileUpload file);
<T> T postFileWithRequest(Object request, FileUpload file, Object responseType);
<T> T postFileWithRequest(String path, Object request, FileUpload file, Object responseType);
<T> T postFilesWithRequest(IReturn<T> request, FileUpload[] files);
<T> T postFilesWithRequest(Object request, FileUpload[] files, Object responseType);
<T> T postFilesWithRequest(String path, Object request, FileUpload[] files, Object responseType);
Added new AsyncServiceClient APIs:
<T> void postFileWithRequestAsync(IReturn<T> request, FileUpload file, final AsyncResult<T> asyncResult);
<T> void postFileWithRequestAsync(Object request, FileUpload file, Object responseType, final AsyncResult<T> asyncResult);
<T> void postFileWithRequestAsync(String path, Object request, FileUpload file, Object responseType, final AsyncResult<T> asyncResult);
<T> void postFilesWithRequestAsync(IReturn<T> request, FileUpload[] files, final AsyncResult<T> asyncResult);
<T> void postFilesWithRequestAsync(Object request, FileUpload[] files, Object responseType, final AsyncResult<T> asyncResult);
<T> void postFilesWithRequestAsync(String path, Object request, FileUpload[] files, Object responseType, final AsyncResult<T> asyncResult);
Switched to use /api
pre-defined route by default, revert to legacy /json/reply
pre-defined route with:
const client = new JsonServiceClient(baseUrl);
client.setBasePath();
- Install ServiceStack IDEA from the Plugin repository
- Download and Install ServiceStack IDEA Manually
Please submit issues to https://github.com/ServiceStack/Issues
For information on the different code-generation configuration options available and examples of using the JsonServiceClient
refer to the Java ServiceStack Reference Documentation.
For information on using the generic Java JSON Service Client Typed API's see the JsonServiceClient Documentation or jump to the interested sections directly:
- JsonServiceClient Usage
- Custom Urls Example Usage
- AutoQuery Example Usage
- Android Service Client
- Typed Error Handling
- JsonServiceClient Error Handlers
Contains information on how Java Add ServiceStack Reference ensures a high-fidelity, idiomatic translation within the constraints of Java language and its built-in libraries, where .NET Server DTO's are translated into clean, conventional Java POJO's where .NET built-in Value Types mapped to their equivalent Java data Type. Use the links below to jump directly to the sections you're interested in:
- .NET Attributes translated into Java Annotations
- Terse, typed API's with IReturn interfaces
- Getters and Setters generated for each property
- Java Type Conversions
- Java Enums
- Java Configuration
Example TechStacks Android App
To demonstrate Java Native Types in action we've ported the Swift TechStacks iOS App to a native Java Android App to showcase the responsiveness and easy-of-use of leveraging Java Add ServiceStack Reference in Android Projects.
Checkout the TechStacks Android App repository for a nice overview of how it leverages Java Native Types, Functional Java Utils and iOS-inspired Data Binding to easily develop services-heavy Mobile Apps.