aibrix icon indicating copy to clipboard operation
aibrix copied to clipboard

refine the user management API

Open Jeffwan opened this issue 2 months ago • 0 comments

🚀 Feature Description and Motivation

https://github.com/vllm-project/aibrix/pull/1639#discussion_r2417964859

The current user management API (/CreateUser, /ReadUser, etc., all using POST) is a direct migration from the previous Go service. While functional, it doesn't follow standard RESTful API design principles, which can make it less intuitive and harder for new developers to use.

Since this is a new Python service, it's a great opportunity to adopt a more standard RESTful approach. I suggest refactoring these endpoints to use standard HTTP methods and resource-based paths. For example:

  • Create User: POST /v1/users
  • Read User: GET /v1/users/{user_name}
  • Update User: PUT /v1/users/{user_name}
  • Delete User: DELETE /v1/users/{user_name}

This change would improve the API's clarity, predictability, and align it with modern web service best practices.

Use Case

user management for rate limits etc

Proposed Solution

No response

Jeffwan avatar Oct 09 '25 21:10 Jeffwan