collective / sphinxcontrib-httpexample

Adds example directive for sphinx-contrib httpdomain
23 stars 20 forks source link

Add support for Inline responses #29

Closed cdevienne closed 6 years ago

cdevienne commented 6 years ago

External files is annoying when we generate automatically the sphinx code. This PR add support for inline responses. The rule to find the separation between the request and the response is 2 empty lines followed by a line starting with "HTTP/"

coveralls commented 6 years ago

Coverage Status

Coverage decreased (-0.9%) to 98.182% when pulling 8cee9e335b5011d79304169d0edf92c2d2181e7d on cdevienne:inline-response into 6c38c22305cf39171b09a53c288055aad01fb426 on collective:master.

datakurre commented 6 years ago

@cdevienne Nice. Do I read this correctly that request and response should be separated with two or more spaces in the example?

Sorry for the CI issues, again. I'll check this through and make a release.

cdevienne commented 6 years ago

Yes, two empty lines at least, and the response should start with "HTTP/".