Initial commit

This commit is contained in:
Yaser
2026-08-13 19:50:53 +03:30
commit 38084458fe
879 changed files with 95198 additions and 0 deletions

26
spec/api/swagger_spec.rb Normal file
View File

@@ -0,0 +1,26 @@
# encoding: UTF-8
# frozen_string_literal: true
describe 'Swagger', type: :request do
it "returns APIv2 swagger docs" do
expect do
get "/api/v2/swagger"
expect(response).to have_http_status 200
end.not_to raise_error
end
it "returns APIv2 management swagger docs" do
expect do
get "/api/v2/management/swagger"
expect(response).to have_http_status 200
end.not_to raise_error
end
it "returns APIv2 admin swagger docs" do
expect do
get "/api/v2/admin/swagger"
expect(response).to have_http_status 200
end.not_to raise_error
end
end