Skip to content

Conversation

@inourbubble2
Copy link
Contributor

Implemented GET /api/v1/flags and GET /api/v1/flags/{key}

Get Flags:

GET http://localhost:8080/api/v1/flags

HTTP/1.1 200 
Content-Type: application/json

{
  "status": "Success",
  "message": "Fetched all feature flags",
  "data": [
    {
      "key": "user-limit",
      "status": true,
      "type": "number",
      "defaultValue": {
        "number": "10"
      },
      "description": "description",
      "variants": [
        {
          "number": "10"
        },
        {
          "free": "100"
        }
      ],
      "createdBy": "username",
      "updatedBy": "username",
      "createdAt": "2025-02-17T00:27:06.122Z",
      "updatedAt": "2025-02-17T00:27:06.161Z"
    }
  ]
}

Get a flag by key:

GET http://localhost:8080/api/v1/flags/user-limit

HTTP/1.1 200 
Content-Type: application/json

{
  "status": "Success",
  "message": "Fetched a flag successfully",
  "data": {
    "key": "user-limit",
    "status": true,
    "type": "number",
    "defaultValue": {
      "number": "10"
    },
    "description": "description",
    "variants": [
      {
        "number": "10"
      },
      {
        "free": "100"
      }
    ],
    "createdBy": "username",
    "updatedBy": "username",
    "createdAt": "2025-02-17T00:27:06.122Z",
    "updatedAt": "2025-02-17T00:27:06.161Z"
  }
}

@inourbubble2 inourbubble2 added the feature New Feature label Feb 17, 2025
@inourbubble2 inourbubble2 self-assigned this Feb 17, 2025
Copy link
Collaborator

@Yg-Hong Yg-Hong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Base automatically changed from feature/flag-creation to main February 24, 2025 06:00
Copy link
Contributor

@eunhwa99 eunhwa99 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@inourbubble2 inourbubble2 merged commit 0fd4864 into main Feb 25, 2025
2 of 3 checks passed
@inourbubble2 inourbubble2 deleted the feature/flag-search branch February 25, 2025 06:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New Feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants