1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-25 00:07:47 +01:00

docs: add segments api placeholder

This commit is contained in:
Thomas Heartman 2022-03-30 16:01:07 +02:00
parent e37714d61a
commit 3440b4f42a
2 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,20 @@
---
title: /api/admin/segments
---
export const basePath = "/api/admin/segments"
### Get all segments: `GET /{{{basePath}}}`
### Create segment: `POST /`
### Get segment by id: `GET /:id`
### Update segment by id: `PUT /:id`
### Delete segment by id: `DELETE /:id`
### List strategies that use a specific segment: `GET /:id/strategies`
### List segments applied to a specific strategy: `GET /strategies/:strategyId`
### Replace activation strategy segments `POST /strategies/:strategyId`

View File

@ -141,6 +141,7 @@ module.exports = {
'api/admin/features-archive',
'api/admin/metrics',
'api/admin/projects',
'api/admin/segments',
'api/admin/state',
'api/admin/strategies',
'api/admin/user-admin',