Sha256: 76d46da10d9f336fe946795aed8b296d19c7bf08a79a93f8331c6e8154f18d15
Contents?: true
Size: 683 Bytes
Versions: 3
Compression:
Stored size: 683 Bytes
Contents
Feature: post 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" post :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 """ POST /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/post_request.feature |
restful_mapper-0.0.2 | features/post_request.feature |
restful_mapper-0.0.1 | features/post_request.feature |