Generate a number.
POST/generate/number
Generate a number.
Request
Header Parameters
ipaas string
- application/json
Bodyrequired
rangenumber[]required
The range of the generated number. The first number is the minimum, the second is the maximum.
Possible values: >= 2
, <= 2
typestring
The type of generated number. Default is integer
.
Possible values: [decimal
, float
, integer
]
roundnumber
The number of decimal places the generated number has. This is only used if type
is decimal
or float
.
Responses
- 200
- 400
Success
- application/json
- Schema
- Example (auto)
Schema
randomNumbernumberrequired
{
"randomNumber": 0
}
Bad Request
- application/json
- Schema
- Example (auto)
Schema
statusnumber
errorMessagestring
{
"status": 0,
"errorMessage": "string"
}