Sha256: 0ebaef5afe350b44130be5e09d52d9c921ae176d282a8265a0c30576a76cd1a1
Contents?: true
Size: 680 Bytes
Versions: 3
Compression:
Stored size: 680 Bytes
Contents
Feature: put request Scenario: simple get request with a body and no other parameters that returns 200 Given following service definition """ class SimpleService < RestfulMapper::Service base_url "http://localhost:8765" put :simple_endpoint do path "/simple" body_parameter :body responses 201 => true end end """ And the service endpoint at port 8765 is running When I call service "SimpleService.simple_endpoint body: {'p1' => 'v1'}" And the endpoint should receive request """ PUT /simple HTTP/1.1 """ And request body should be """ {"p1":"v1"} """
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
restful_mapper-0.0.3 | features/put_request.feature |
restful_mapper-0.0.2 | features/put_request.feature |
restful_mapper-0.0.1 | features/put_request.feature |