Skip to content

Latest commit

 

History

History
18 lines (16 loc) · 554 Bytes

README.md

File metadata and controls

18 lines (16 loc) · 554 Bytes

Bind and Validate

How to use

binding usage

How to run

  1. go run binding/main.go

  2. You can use the hertz client to send requests
    go run client/add_parameters/main.go

    Or you can use curl:

    curl --location --request POST '127.0.0.1:8080/v2/bind?query=hello&q=q1&q=q2&vd=1' \
    --header 'header: header' \
    --header 'Content-Type: application/json' \
    --data-raw '{
        "json":"hello,hertz"
    }'