Rename path parameter {token} to {eventToken} in OpenAPI spec
All checks were successful
CI / backend-test (push) Successful in 57s
CI / frontend-test (push) Successful in 23s
CI / frontend-e2e (push) Successful in 1m18s
CI / build-and-publish (push) Has been skipped

Aligns the path parameter naming with the value object convention
used throughout the codebase (eventToken, rsvpToken, organizerToken).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-12 18:07:44 +01:00
parent 7ab9068c14
commit 58043d1507
6 changed files with 36 additions and 36 deletions

View File

@@ -76,10 +76,10 @@ async function confirmDelete() {
if (rsvp) {
try {
const { response } = await api.DELETE('/events/{token}/rsvps/{rsvpToken}', {
const { response } = await api.DELETE('/events/{eventToken}/rsvps/{rsvpToken}', {
params: {
path: {
token: eventToken,
eventToken: eventToken,
rsvpToken: rsvp.rsvpToken,
},
},

View File

@@ -169,8 +169,8 @@ async function fetchEvent() {
event.value = null
try {
const { data, error, response } = await api.GET('/events/{token}', {
params: { path: { token: route.params.eventToken as string } },
const { data, error, response } = await api.GET('/events/{eventToken}', {
params: { path: { eventToken: route.params.eventToken as string } },
})
if (error) {
@@ -217,8 +217,8 @@ async function submitRsvp() {
submitting.value = true
try {
const { data, error } = await api.POST('/events/{token}/rsvps', {
params: { path: { token: route.params.eventToken as string } },
const { data, error } = await api.POST('/events/{eventToken}/rsvps', {
params: { path: { eventToken: route.params.eventToken as string } },
body: { name: nameInput.value },
})
@@ -256,10 +256,10 @@ async function handleCancelRsvp() {
if (!stored) return
try {
const { response } = await api.DELETE('/events/{token}/rsvps/{rsvpToken}', {
const { response } = await api.DELETE('/events/{eventToken}/rsvps/{rsvpToken}', {
params: {
path: {
token: route.params.eventToken as string,
eventToken: route.params.eventToken as string,
rsvpToken: stored.rsvpToken,
},
},
@@ -281,9 +281,9 @@ async function handleCancelRsvp() {
async function fetchAttendees(eventToken: string, organizerToken: string) {
try {
const { data, error } = await api.GET('/events/{token}/attendees', {
const { data, error } = await api.GET('/events/{eventToken}/attendees', {
params: {
path: { token: eventToken },
path: { eventToken: eventToken },
query: { organizerToken },
},
})

View File

@@ -280,8 +280,8 @@ describe('EventDetailView', () => {
await flushPromises()
// Verify API call
expect(vi.mocked(api.POST)).toHaveBeenCalledWith('/events/{token}/rsvps', {
params: { path: { token: 'test-token' } },
expect(vi.mocked(api.POST)).toHaveBeenCalledWith('/events/{eventToken}/rsvps', {
params: { path: { eventToken: 'test-token' } },
body: { name: 'Max' },
})