DRF Docs

Document Web APIs made with Django REST Framework.

api

获取个人信息

Fields:

  • email: EmailField
  • id: IntegerField
  • username: CharField

获取用户Token

Fields:

  • username: CharField R
  • password: CharField R

获取节点信息

Fields:

  • os: ChoiceField
  • stationname: CharField
  • os_detail: CharField
  • token: CharField
  • remarks: CharField
  • pk: IntegerField
  • lock: ChoiceField

单个节点信息的修改和删除

Fields:

  • os: ChoiceField
  • stationname: CharField
  • os_detail: CharField
  • token: CharField
  • remarks: CharField
  • pk: IntegerField
  • lock: ChoiceField

获取域名信息

Fields:

  • pk: IntegerField
  • full_domain: CharField R
  • root_domain: CharField
  • remarks: CharField
  • setting: PrimaryKeyRelatedField
  • zone: PrimaryKeyRelatedField R
  • port: IntegerField
  • https: BooleanField
  • backend_https: BooleanField
  • ssl: PrimaryKeyRelatedField
  • server: CharField
  • http_redirect_https: BooleanField
  • isalive: ChoiceField

单个域名信息的修改和删除

Fields:

  • pk: IntegerField
  • full_domain: CharField R
  • root_domain: CharField
  • remarks: CharField
  • setting: PrimaryKeyRelatedField
  • zone: PrimaryKeyRelatedField R
  • port: IntegerField
  • https: BooleanField
  • backend_https: BooleanField
  • ssl: PrimaryKeyRelatedField
  • http_redirect_https: BooleanField
  • back_source: BooleanField
  • isalive: ChoiceField

获取域名证书

Fields:

  • pk: IntegerField
  • name: CharField R
  • ssl_certificate: CharField R
  • ssl_certificate_key: CharField R

单个域名证书信息的修改和删除

Fields:

  • pk: IntegerField
  • name: CharField R
  • ssl_certificate: CharField R
  • ssl_certificate_key: CharField R

获取分组列表

Fields:

  • pk: IntegerField
  • zonename: CharField R
  • remarks: CharField
  • created: DateTimeField
  • updated: DateTimeField
  • default_zone: BooleanField

获取配置列表

Fields:

  • pk: IntegerField
  • remarks: CharField
  • created: DateTimeField
  • updated: DateTimeField

获取清除缓存任务历史列表

Fields:

  • pk: IntegerField
  • urls: JSONField R
  • remark: CharField
  • count: IntegerField
  • created: DateTimeField
  • updated: DateTimeField

重新下发清除缓存任务

Fields:

  • pk: IntegerField
  • urls: JSONField R
  • remark: CharField
  • count: IntegerField
  • created: DateTimeField
  • updated: DateTimeField