File size: 1,387 Bytes
471c9fc |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
{
"info": {
"name": "Text2Video gRPC Microservice Collection",
"description": "Postman collection to test the VideoGenerator.Generate gRPC method.",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"variable": [
{
"key": "grpc_host",
"value": "127.0.0.1:50051"
}
],
"item": [
{
"name": "Generate Video",
"request": {
"method": "POST",
"url": "{{grpc_host}}",
"body": {
"mode": "raw",
"raw": "{\n \"prompt\": \"A panda skateboarding in Times Square\",\n \"audio_path\": \"\",\n \"filter_option\": \"Grayscale\"\n}"
},
"description": "Generates a video from a text prompt using the Text2Video gRPC service."
},
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test('Message confirms success', () => {",
" pm.response.messages.to.include({",
" \"message\": \"Success\"",
" });",
"});",
"",
"pm.test('Status code is 200', () => {",
" pm.response.messages.to.include({",
" \"status_code\": 200",
" });",
"});"
]
}
}
]
}
]
} |