Sha256: 482c13051206aadfe8a0118583a83051c500d89f201ed9bc13b974dd143bebc8
Contents?: true
Size: 1.17 KB
Versions: 21
Compression:
Stored size: 1.17 KB
Contents
Feature: Retrieving Templates can be retrieved by using the ID that was returned when they were created Scenario: Retrieving a template Given the following template template: """ { "response":{ "default":false, "body":"Hello", "delay":0, "content_type":"text/plain", "status":200 }, "request":{ "parameters":{ }, "body_content":[ ], "http_method":"get" } } """ And the template is sent using PUT to '/templates/greeting' When GET is sent to '/templates/1' Then the following json should be returned: """ { "id": 1, "endpoint": "greeting", "requests_url": "http://localhost:7001/requests/1", "response":{ "default":false, "body":"Hello", "delay":0, "content_type":"text/plain", "status":200 }, "request":{ "parameters":{ }, "headers":{}, "body_content":[ ], "http_method":"get" } } """
Version data entries
21 entries across 21 versions & 2 rubygems