Summary and Going Further

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

  1. Importing the ThriftlyLib library into your project.

  2. Including the Use Thriftly.pkg and ThriftlyServer directives in your application’s .src file.

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

  4. Updating your services to include the Use cThriftlyService.pkg directive and {Published = True} attribute. Remember, the {Published = True} attribute 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 want to know more about what they can (and can’t) code into their DataFlex Thriftly APIs, we recommend taking a look at our DataFlex 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.