Skip to content

Commit 92ba39a

Browse files
authored
fix: Bring API docs back (#5908)
1 parent df82a2a commit 92ba39a

3 files changed

Lines changed: 21 additions & 9 deletions

File tree

api/poetry.lock

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ pygithub = "2.1.1"
160160
hubspot-api-client = "^8.2.1"
161161
djangorestframework-dataclasses = "^1.3.1"
162162
pyotp = "^2.9.0"
163-
flagsmith-common = "^1.15.0"
163+
flagsmith-common = "^2.0.0"
164164
django-stubs = "^5.1.3"
165165
tzdata = "^2024.1"
166166
djangorestframework-simplejwt = "^5.3.1"
@@ -191,7 +191,7 @@ flagsmith-ldap = { git = "https://github.com/flagsmith/flagsmith-ldap", tag = "v
191191
optional = true
192192

193193
[tool.poetry.group.workflows.dependencies]
194-
workflows-logic = { git = "https://github.com/flagsmith/flagsmith-workflows", tag = "v2.7.8" }
194+
workflows-logic = { git = "https://github.com/flagsmith/flagsmith-workflows", branch = "refactor/segment-change-requests" }
195195

196196
[tool.poetry.group.licensing]
197197
optional = true
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
from rest_framework.test import APIClient
2+
3+
4+
def test_api_documentation_specification_loads(
5+
client: APIClient,
6+
) -> None:
7+
# When
8+
response = client.get("/api/v1/docs/?format=openapi")
9+
10+
# Then
11+
assert response.status_code == 200
12+
assert response.json()["info"]["title"] == "Flagsmith API"

0 commit comments

Comments
 (0)