How to add two query parameters in a RESTCONF curl request?

Hi,

I’m using get method to retrieve the configuration data from confd through RESTCONF, I want to retrieve to a depth of 1.

curl -kisu 'admin:Sonus@123' -X GET -H "Accept:application/yang-data+xml" https://10.54.28.15/restconf/data/address=default/Group=LIF?depth=1

curl -kisu 'admin:Sonus@123' -X GET -H "Accept:application/yang-data+xml" https://10.54.28.15/restconf/data/address=default/Group=LIF?content=config

How do i combie these two commands?

Try adding a ‘\&’ between the query parameters:

curl -kisu 'admin:Sonus@123' -X GET -H "Accept:application/yang-data+xml" https://10.54.28.15/restconf/data/address=default/Group=LIF?depth=1\&content=config

One of two examples in the RFC8040:
https://tools.ietf.org/html/rfc8040#appendix-B.3.5

Thanks @cohult
It worked.