Create Project from Swagger Data

To create new project from Swagger data, select menu option 'File/New Project from Swagger Data'. The import window is opened where you have to specify the source of Swagger data; source can be URL address or disk file. Obtained Swagger data must be stored in JSON format. If parsing is successful, application will display data in the following sections: When you have finished tweaking the data, click 'OK' button and new project will be created and opened in HttpMaster main window.

How request body is created

If request data for the operation is specified as 'body', HttpMaster will obtain values of 'consumes' element and determine type of the body with the following procedure:

Connect Swagger parameters with HttpMaster project parameters

HttpMaster supports variety of parameter types which can be created in project properties. These parameters can be used to generate dynamic data for request item and can be used in URL, request body, or headers field. When these parameters are used, they must be enclosed in curly braces, for example, {id}. Since Swagger parameters are also enclosed in curly braces, you can specify HttpMaster project parameters with the same name as used in Swagger data and they will be connected automatically.