Publish Swagger (OpenAPI 2.0) Documentation
Luna API
Write, Document, Publish
IMPORTANT NOTE:
Even though the credentials always need to be sent, we do not need to enter these in our tests. The credential fields that are used are defined in the v1_Credentials property of the APICalls class.
For the default Luna setup, it is defined as such
{
"Authorization": {
"required": true,
"type": "string",
"description": "AuthorizationKey needed to Access the API"
}
The value of the credentials is set in the GetAndSetCredentials method of the execute module (api2swagger/lib folder in the project)
For the default Luna project we use the AuthorizationKey constant of the execute module as the value for this field.
//Set the Credentials
//named according to the name of the credential in APICalls v1_Credentials
SetCredentials(myAPICalls,strAPIVersion,"Authorization",AuthorizationKey)