Skip to content
Volodymyr Ladnik edited this page Sep 25, 2018 · 1 revision

Apache Thrift is a software framework, for scalable cross-language services development, combines a software stack with a code generation engine for multiple languages.

Add New Service

In order to add new Thrift service, navigate to Thrift in navigation menu and click "Add" button on the page or click File>"New Service" in the main menu.

Thrift File - is the first step and the most important option, that allows you to navigate and specify Thrift file with service definition

Includes - is optional and should be used only if Mimic can't successfully parse Thrift file. It allows to specify a list of search paths when looking for Thrift includes

Server - specify server type and it matches use-http = true in your application config

Transport - will switch to Talon default, don't change it unless you know what you are doing

Protocol - the same as transport, leave it to Talon default, unless you need specific protocol

Service - choose service from the ones defined in Thrift file, usually it will be a single one

Alias - defaults to service name, but you can specify anything else, it can be changed later

Port - port for the service to listen on. You can have multiple services defined with the same port

Add Response

If no response is specified, Mimic will generate random response that will match Thrift service definition. If you need to specify one yourself, just navigate to service details page and click "Add" button underneath "Responses" table.

Function - choose function from the service definition

Type - choose type of response, either success or one of the exceptions

Data - specify response data and switch, that allows you to use either:

  • Text field with built-in JSON and Thrift validations.
  • Tree-view, that provides a convenient way to build complex responses. By clicking on any node it will display a dropdown with all actions available.
Clone this wiki locally