Skip to content

Commit 4d79a5c

Browse files
authored
ref(replay): fix clicks and selectors examples (#67974)
fix typo + add explicit status code and response_only to selectors
1 parent fbfd680 commit 4d79a5c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/sentry/apidocs/examples/replay_examples.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class ReplayExamples:
5050
)
5151
]
5252

53-
GET_REPLAY_CLIKS = [
53+
GET_REPLAY_CLICKS = [
5454
OpenApiExample(
5555
"Retrieve a collection of RRWeb DOM node-ids and the timestamp they were clicked.",
5656
value={"data": [{"node_id": 1, "timestamp": "2024-02-08T15:52:25+00:00"}]},
@@ -91,6 +91,8 @@ class ReplayExamples:
9191
}
9292
]
9393
},
94+
status_codes=["200"],
95+
response_only=True,
9496
)
9597
]
9698

src/sentry/replays/endpoints/project_replay_clicks_index.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ class ProjectReplayClicksIndexEndpoint(ProjectEndpoint):
8181
403: RESPONSE_FORBIDDEN,
8282
404: RESPONSE_NOT_FOUND,
8383
},
84-
examples=ReplayExamples.GET_REPLAY_CLIKS,
84+
examples=ReplayExamples.GET_REPLAY_CLICKS,
8585
)
8686
def get(self, request: Request, project: Project, replay_id: str) -> Response:
8787
"""Retrieve a collection of RRWeb DOM node-ids and the timestamp they were clicked."""

0 commit comments

Comments
 (0)