What is the difference between Resource and query string parameter in case of integration.
Hi @TanyaS58,
Query String Parameters:
Query string parameters are appended to the URL after the ? character and are used to filter, sort, or specify additional options for the resource. They are key-value pairs separated by &. It’s like where clause.
Resource Parameters:
Resource parameters are part of the path of the URL and identify a specific resource on the server. They are typically used to specify the hierarchy or structure of the resource being accessed. Resource parameters are often used in RESTful APIs to indicate specific resources or collections of resources.
Context: Resource parameters are part of the URL path and identify specific resources (e.g., /users/1234/orders/5678).
Query string parameters are appended after the ? and modify the resource’s behavior or results (e.g., ?status=active).
End Point URL: https://api.example.com/users/1234/orders?status=pending
Resource parameters: /users/1234/orders
Query string parameters: ?status=pending
I hope now you got clarifications.
Thanks,
Ravoof.
Query String Parameters:
Query string parameters are appended to the URL after the ? character and are used to filter, sort, or specify additional options for the resource. They are key-value pairs separated by &. It’s like where clause.
Resource Parameters:
Resource parameters are part of the path of the URL and identify a specific resource on the server. They are typically used to specify the hierarchy or structure of the resource being accessed. Resource parameters are often used in RESTful APIs to indicate specific resources or collections of resources.
Context: Resource parameters are part of the URL path and identify specific resources (e.g., /users/1234/orders/5678).
Query string parameters are appended after the ? and modify the resource’s behavior or results (e.g., ?status=active).
End Point URL: https://api.test.com/userA/11111/orders?status=pending
Resource parameters: /users/1234/orders
Query string parameters: ?status=pending
@tanya
Query String Parameters:
Query string parameters are appended to the URL after the ? character and are used to filter, sort, or specify additional options for the resource. They are key-value pairs separated by &. It’s like where clause.
Resource Parameters:
Resource parameters are part of the path of the URL and identify a specific resource on the server. They are typically used to specify the hierarchy or structure of the resource being accessed. Resource parameters are often used in RESTful APIs to indicate specific resources or collections of resources.
Context: Resource parameters are part of the URL path and identify specific resources (e.g., /users/1234/orders/5678).
Query string parameters are appended after the ? and modify the resource’s behavior or results (e.g., ?status=active).
End Point URL: https://api.test.com/userA/11111/orders?status=pending
Resource parameters: /users/1234/orders
Query string parameters: ?status=pending