2025-01-13 20:38:47 +00:00
|
|
|
# Copyright (C) 2024 Manuel Bustillo
|
|
|
|
|
2025-01-13 21:37:02 +01:00
|
|
|
# Copyright (C) 2024-2025 LibreWeddingPlanner contributors
|
2024-11-30 17:47:30 +00:00
|
|
|
|
2024-12-28 18:37:47 +01:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2024-11-30 18:46:25 +01:00
|
|
|
require 'swagger_helper'
|
|
|
|
|
2024-12-28 18:07:22 +01:00
|
|
|
RSpec.describe 'users/confirmations' do
|
2024-11-30 19:57:08 +01:00
|
|
|
path '/{slug}/users/confirmation' do
|
2024-11-30 18:46:25 +01:00
|
|
|
get('confirm user email') do
|
|
|
|
tags 'Users'
|
|
|
|
produces 'application/json'
|
|
|
|
|
2024-11-30 19:57:08 +01:00
|
|
|
parameter Swagger::Schema::SLUG
|
2024-11-30 18:46:25 +01:00
|
|
|
parameter name: :confirmation_token, in: :query, type: :string, required: true
|
|
|
|
|
|
|
|
response(200, 'confirmed') do
|
|
|
|
schema Swagger::Schema::USER
|
|
|
|
xit
|
|
|
|
end
|
|
|
|
|
2024-12-28 18:07:22 +01:00
|
|
|
response422
|
2024-11-30 18:46:25 +01:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|