Summary and Going Further

You now have the skills you need to start creating Thriftly APIs from your own Java applications. Remember, the key steps to creating a Thriftly API from your application are:

  1. Importing and referencing the necessary Thriftly Java libraries (Thriftly.Java.dll, Thriftly.Java.jar, and Thrifty.Java.Resources.dll).

  2. Importing the thriftly.java.ThriftlyServer and thriftly.java.EvoException packages into your application’s Main.java file.

  3. Connecting to the Thriftly Server and calling the services you want to transform into APIs within your Main.java file.

  4. Adding the @PublishedAttribute and @ParametersName attributes to the functions included in those services, so you (or other developers) can access those functions over the web.

Depending on your experience with APIs, you may now know all you need to know to create robust APIs using Thriftly. Or, you might be wondering what to do next:

  • For those who want to know more about what they can (and can’t) code into their Java Thriftly APIs, we recommend taking a look at our Java Developers’ Reference. This topic provides more information on Thriftly-specific metadata and references you can include in your application and lists the data types Thriftly allows you to access as APIs.

  • For those who want to see some of Thriftly’s advanced API creation features, including our built-in JSON Web Token support and easy-to-add API documentation, we recommend you jump to the Thriftly Developer: Beyond the Basics section. There, you’ll learn how to do more with your Thriftly APIs.