kong db_less 配置demo

/etc/kong/kong.yml

services:

consumers:

  • username: my-user
    keyauth_credentials:
    • key: my-key

plugins:

  • name: syslog
    consumer: my-user
    service: my-service

加載:
kong reload -c /etc/kong/kong.conf
測試:
curl -i -X GET --url "http://192.168.8.106:8000/aa/query?type=yuantong&postid=11111111111" --header "apikey:my-key" --header "host:www.kuaidi100.com"
返回:
{"message":"ok","nu":"11111111111","ischeck":"1","com":"yuantong","status":"200","condition":"F00","state":"3","data":[{"time":"2019-10-05 16:51:59","context":"查無結果","ftime":"2019-10-05 16:51:59"}]}

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章