Skip to main content

Request builder for testing API

Project description

request-api-builder

Request builder for quick testing API

Use

  1. Import RequestBuilder
from request_builder import RequestBuilder
  1. Set cookie and base url
BuildRequests.set_cookie(cookie)
BuildRequests.set_base_url(base_url)
  1. Create request
# GET
request_get = RequestBuilder(
    method='get',
    url_template='https://test.com/{id}/another/{another_id}',
    id='123',
    another_id='456',
    query_param_1='value1',
    query_param_2='value2',
)
# POST
request_post = RequestBuilder(
    method='post',
    url_template='https://test.com/{id}/another/{another_id}',
    data={},
    id='123',
    another_id='456',
    query_param_1='value1',
    query_param_2='value2',
)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

request_api_builder-2.0.2.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

request_api_builder-2.0.2-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file request_api_builder-2.0.2.tar.gz.

File metadata

  • Download URL: request_api_builder-2.0.2.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.2

File hashes

Hashes for request_api_builder-2.0.2.tar.gz
Algorithm Hash digest
SHA256 5f406c7a6f4147d4ffdeb937c6a24ead31e48c50f4aa9c1bae4402f51e99793b
MD5 a66c3033941b9b71d0b95e514cbe0ffb
BLAKE2b-256 fd3261ee1c0a70f407180280477dfd29c2ed2c246ec4a26eb2967897d146bcf8

See more details on using hashes here.

File details

Details for the file request_api_builder-2.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for request_api_builder-2.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e6ad78092de0842a9d56f31f16796a93302a5f7847b378181ad5430055bd7fa8
MD5 c9e681cbeeb7b0dc108e413ca805ba51
BLAKE2b-256 0a9ab18ed7564fda09c054af2dcf81057047bc0ad0c1620e19613f404ed3e990

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page