Giter Site home page Giter Site logo

Comments (3)

Albatrossman avatar Albatrossman commented on May 24, 2024 1

I wanted to suggest a valuable enhancement to the existing API. Currently, when we retrieve the users list using api/users, we receive an array of configuration links without any clear association with their respective nodes.
I believe it would be immensely helpful if the API could also provide data in the following format:

{
  "users": [
    {
      "proxies": {},
      "expire": 0,
      "data_limit": 0,
      "data_limit_reset_strategy": "no_reset",
      "inbounds": {},
      "username": "string",
      "status": "active",
      "used_traffic": 0,
      "lifetime_used_traffic": 0,
      "created_at": "2023-08-05T00:36:24.950Z",
      "links": [
          {
              "node": {
                  "name": "string",
                  "address": "string",
                  "port": 62050,
                  "api_port": 62051,
                  "certificate": "string",
                  "id": 0,
                  "xray_version": "string",
                  "status": "connected",
                  "message": "string"
           },
              "link": "configuration_url"
          }
      ],
      "subscription_url": "",
      "excluded_inbounds": {}
    }
  ],
  "total": 0
}

This would allow users to easily map each configuration url to its corresponding node, simplifying node management and configuration tracking.

from marzban.

govfvck avatar govfvck commented on May 24, 2024

Hi @mromidi
There is already an open issue (#431) for this! please check the issues before opening a new one. please close this issue and comment your suggestions there.

from marzban.

govfvck avatar govfvck commented on May 24, 2024

Hi @Albatrossman
I don't think your comment is related to this issue, please take your suggestions to the appropriate issue or open a new one.
Thanks.

from marzban.

Related Issues (20)

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.