how to pass enum in postman body 1

how to pass enum in postman body

export enum TestStatus {
    allCandidates,
    completedTest,
    expiredTest,
    blockedTest
}
{
    "TestStatus": "expiredTest"
}

Here is what the above code is Doing:
1. We are creating an enum called TestStatus.
2. We are defining four values for the enum: allCandidates, completedTest, expiredTest, blockedTest.
3. We are creating a variable called TestStatus and assigning it the value expiredTest.

Similar Posts