Git Product home page Git Product logo

bindapi's Introduction

# bind dlz dns api

# 设置token

``` curl -X POST -d "username=admin&password=password123" http://localhost:8000/api/api-token-auth/

{
"token": "ad0fd6577b32e0ca4a12bacd30e0155925a64a3b"

}

# 携带token获取records

``` curl -H "Authorization: token ad0fd6577b32e0ca4a12bacd30e0155925a64a3b" http://localhost:8000/api/records/

[
{
"url": "http://127.0.0.1:8888/api/records/4/", "id": 4, "zone": "oo.com", "name": "www", "type": "A", "value": "1.1.1.22", "ttl": 600, "mx_priority": null, "serial": null, "refresh": null, "retry": null, "expire": null, "minimum": null, "resp_person": "", "primary_ns": "", "create_time": "2018-04-14T19:29:10", "update_time": "2018-04-14T19:29:34.311111"

}, {

"url": "http://127.0.0.1:8888/api/records/5/", "id": 5, "zone": "oo.com", "name": "bbs", "type": "CNAME", "value": "www", "ttl": 600, "mx_priority": null, "serial": null, "refresh": null, "retry": null, "expire": null, "minimum": null, "resp_person": null, "primary_ns": null, "create_time": "2018-04-14T19:29:13", "update_time": "2018-04-14T19:29:21"

}

]

bindapi's People

Contributors

itimor avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.