Summary and Going Further

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

  1. Importing and referencing the Thriftly.Server library within your project.

  2. Connecting to the Thriftly Server and calling the services you want to transform into APIs within your application’s .exe file.

  3. Updating your services to import Thriftly attributes and include the [PublishedAttribute]. Remember, [PublishedAttribute] controls whether a function is exposed as part of your API.

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 need to know more about what they can (and can’t) code into their Delphi APIs, we recommend taking a look at our Delphi 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.