<@U04SE163WC8> while writing a custom source. is i...
# ask-ai
y
@kapa.ai while writing a custom source. is it necessary for airbyte in which order the methods inside the HTtp streams are?
u
When writing a custom source using HTTP streams in Airbyte, the order of methods inside the HTTP streams is not strictly necessary, but there are some best practices and conventions to follow. According to the [HTTP-API-based Connectors documentation](https://docs.airbyte.com/connector-development/cdk-python/http-streams#overview-of-http-streams), the bare minimum required to implement an
HTTPStream
includes: 1. The
url_base
property 2. The
path
function 3. The
parse_response
function 4. The schema file These elements are essential for creating a basic Full-Refresh Airbyte Stream. However, the specific order of these methods within your code is not critical as long as they are properly defined and implemented. It's worth noting that while the order is not strictly enforced, following a consistent and logical structure in your code can improve readability and maintainability. The Airbyte CDK (Connector Development Kit) provides a framework that helps standardize the implementation of connectors, including HTTP streams. When developing your custom source, you can refer to existing connectors as examples. For instance, the [Webflow source connector](https://airbyte.com/tutorials/extract-data-from-the-webflow-api#step-2) demonstrates how these elements are typically organized within a stream class. Remember that the most important aspect is ensuring that your custom source implements all the necessary methods and properties to function correctly within the Airbyte ecosystem, rather than focusing on a specific order of methods.