Sha256: 8d3c5f31d3d586b098bd5f855f0dccefd6a347bb2a103d20d95980b180cb40b5
Contents?: true
Size: 1.21 KB
Versions: 3
Compression:
Stored size: 1.21 KB
Contents
Feature: default parameters Scenario: simple get request with default request parameters Given following service definition """ class SimpleService < RestfulMapper::Service base_url "http://localhost:8765" default_parameters name: 'test' get :simple_endpoint do path "/simple" query_parameters [:name] responses 302 => true end end """ And the service endpoint at port 8765 is running When I call service "SimpleService.simple_endpoint" Then the endpoint should receive request """ GET /simple?name=test HTTP/1.1 """ Scenario: overriding default parameters with method parameters Given following service definition """ class SimpleService < RestfulMapper::Service base_url "http://localhost:8765" default_parameters name: 'test' get :simple_endpoint do path "/simple" query_parameters [:name] responses 302 => true end end """ And the service endpoint at port 8765 is running When I call service "SimpleService.simple_endpoint name: 'test2'" Then the endpoint should receive request """ GET /simple?name=test2 HTTP/1.1 """
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
restful_mapper-0.0.3 | features/default_parameters.feature |
restful_mapper-0.0.2 | features/default_parameters.feature |
restful_mapper-0.0.1 | features/default_parameters.feature |