rankvectors 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/README.md +191 -0
- data/Rakefile +10 -0
- data/docs/AddCredits200Response.md +22 -0
- data/docs/AddCreditsRequest.md +20 -0
- data/docs/AutoRechargeSettings.md +22 -0
- data/docs/ChangeResult.md +24 -0
- data/docs/ContentVerification.md +22 -0
- data/docs/ContentVerificationApi.md +81 -0
- data/docs/Crawl.md +30 -0
- data/docs/CrawlingApi.md +155 -0
- data/docs/CreateProjectRequest.md +60 -0
- data/docs/CreditBalance.md +30 -0
- data/docs/CreditBalanceInfo.md +26 -0
- data/docs/CreditsApi.md +161 -0
- data/docs/CustomCredentials.md +20 -0
- data/docs/DeleteProject200Response.md +20 -0
- data/docs/Error.md +24 -0
- data/docs/GenerateSuggestions200Response.md +22 -0
- data/docs/GenerateSuggestionsRequest.md +18 -0
- data/docs/GetImplementation200Response.md +20 -0
- data/docs/Implementation.md +36 -0
- data/docs/ImplementationInstructions.md +28 -0
- data/docs/ImplementationRequest.md +26 -0
- data/docs/ImplementationResponse.md +22 -0
- data/docs/ImplementationResult.md +24 -0
- data/docs/ImplementationSummary.md +24 -0
- data/docs/ImplementationsApi.md +313 -0
- data/docs/LinkOpportunity.md +28 -0
- data/docs/ListImplementations200Response.md +24 -0
- data/docs/PageInfo.md +24 -0
- data/docs/PageLimitStatus.md +22 -0
- data/docs/PeriodCharges.md +22 -0
- data/docs/Project.md +70 -0
- data/docs/ProjectCount.md +20 -0
- data/docs/ProjectsApi.md +292 -0
- data/docs/ReportImplementationStatus200Response.md +20 -0
- data/docs/ReportImplementationStatusRequest.md +22 -0
- data/docs/Rollback.md +24 -0
- data/docs/RollbackImplementation200Response.md +22 -0
- data/docs/RollbackImplementationRequest.md +20 -0
- data/docs/SpendingLimitStatus.md +24 -0
- data/docs/StartCrawlRequest.md +18 -0
- data/docs/StepByStepInstructions.md +20 -0
- data/docs/Suggestion.md +38 -0
- data/docs/SuggestionsApi.md +235 -0
- data/docs/UpdateSuggestionRequest.md +18 -0
- data/docs/UsageHistoryItem.md +26 -0
- data/docs/VerifyContent200Response.md +20 -0
- data/docs/VerifyContentRequest.md +20 -0
- data/docs/WebhooksApi.md +151 -0
- data/git_push.sh +57 -0
- data/lib/openapi_client/api/content_verification_api.rb +96 -0
- data/lib/openapi_client/api/crawling_api.rb +155 -0
- data/lib/openapi_client/api/credits_api.rb +168 -0
- data/lib/openapi_client/api/implementations_api.rb +332 -0
- data/lib/openapi_client/api/projects_api.rb +273 -0
- data/lib/openapi_client/api/suggestions_api.rb +242 -0
- data/lib/openapi_client/api/webhooks_api.rb +154 -0
- data/lib/openapi_client/api_client.rb +393 -0
- data/lib/openapi_client/api_error.rb +58 -0
- data/lib/openapi_client/configuration.rb +316 -0
- data/lib/openapi_client/models/add_credits200_response.rb +238 -0
- data/lib/openapi_client/models/add_credits_request.rb +259 -0
- data/lib/openapi_client/models/auto_recharge_settings.rb +292 -0
- data/lib/openapi_client/models/change_result.rb +328 -0
- data/lib/openapi_client/models/content_verification.rb +274 -0
- data/lib/openapi_client/models/crawl.rb +373 -0
- data/lib/openapi_client/models/create_project_request.rb +541 -0
- data/lib/openapi_client/models/credit_balance.rb +379 -0
- data/lib/openapi_client/models/credit_balance_info.rb +329 -0
- data/lib/openapi_client/models/custom_credentials.rb +265 -0
- data/lib/openapi_client/models/delete_project200_response.rb +229 -0
- data/lib/openapi_client/models/error.rb +268 -0
- data/lib/openapi_client/models/generate_suggestions200_response.rb +261 -0
- data/lib/openapi_client/models/generate_suggestions_request.rb +249 -0
- data/lib/openapi_client/models/get_implementation200_response.rb +229 -0
- data/lib/openapi_client/models/implementation.rb +454 -0
- data/lib/openapi_client/models/implementation_instructions.rb +372 -0
- data/lib/openapi_client/models/implementation_request.rb +362 -0
- data/lib/openapi_client/models/implementation_response.rb +293 -0
- data/lib/openapi_client/models/implementation_result.rb +268 -0
- data/lib/openapi_client/models/implementation_summary.rb +319 -0
- data/lib/openapi_client/models/link_opportunity.rb +355 -0
- data/lib/openapi_client/models/list_implementations200_response.rb +251 -0
- data/lib/openapi_client/models/page_info.rb +285 -0
- data/lib/openapi_client/models/page_limit_status.rb +292 -0
- data/lib/openapi_client/models/period_charges.rb +292 -0
- data/lib/openapi_client/models/project.rb +634 -0
- data/lib/openapi_client/models/project_count.rb +230 -0
- data/lib/openapi_client/models/report_implementation_status200_response.rb +229 -0
- data/lib/openapi_client/models/report_implementation_status_request.rb +316 -0
- data/lib/openapi_client/models/rollback.rb +302 -0
- data/lib/openapi_client/models/rollback_implementation200_response.rb +239 -0
- data/lib/openapi_client/models/rollback_implementation_request.rb +247 -0
- data/lib/openapi_client/models/spending_limit_status.rb +319 -0
- data/lib/openapi_client/models/start_crawl_request.rb +249 -0
- data/lib/openapi_client/models/step_by_step_instructions.rb +267 -0
- data/lib/openapi_client/models/suggestion.rb +497 -0
- data/lib/openapi_client/models/update_suggestion_request.rb +262 -0
- data/lib/openapi_client/models/usage_history_item.rb +331 -0
- data/lib/openapi_client/models/verify_content200_response.rb +229 -0
- data/lib/openapi_client/models/verify_content_request.rb +265 -0
- data/lib/openapi_client/version.rb +15 -0
- data/lib/openapi_client.rb +87 -0
- data/openapi_client.gemspec +39 -0
- data/spec/api/content_verification_api_spec.rb +48 -0
- data/spec/api/crawling_api_spec.rb +60 -0
- data/spec/api/credits_api_spec.rb +63 -0
- data/spec/api/implementations_api_spec.rb +91 -0
- data/spec/api/projects_api_spec.rb +82 -0
- data/spec/api/suggestions_api_spec.rb +75 -0
- data/spec/api/webhooks_api_spec.rb +59 -0
- data/spec/models/add_credits200_response_spec.rb +48 -0
- data/spec/models/add_credits_request_spec.rb +42 -0
- data/spec/models/auto_recharge_settings_spec.rb +48 -0
- data/spec/models/change_result_spec.rb +62 -0
- data/spec/models/content_verification_spec.rb +48 -0
- data/spec/models/crawl_spec.rb +76 -0
- data/spec/models/create_project_request_spec.rb +170 -0
- data/spec/models/credit_balance_info_spec.rb +60 -0
- data/spec/models/credit_balance_spec.rb +72 -0
- data/spec/models/custom_credentials_spec.rb +42 -0
- data/spec/models/delete_project200_response_spec.rb +42 -0
- data/spec/models/error_spec.rb +54 -0
- data/spec/models/generate_suggestions200_response_spec.rb +48 -0
- data/spec/models/generate_suggestions_request_spec.rb +36 -0
- data/spec/models/get_implementation200_response_spec.rb +42 -0
- data/spec/models/implementation_instructions_spec.rb +66 -0
- data/spec/models/implementation_request_spec.rb +68 -0
- data/spec/models/implementation_response_spec.rb +48 -0
- data/spec/models/implementation_result_spec.rb +54 -0
- data/spec/models/implementation_spec.rb +102 -0
- data/spec/models/implementation_summary_spec.rb +54 -0
- data/spec/models/link_opportunity_spec.rb +66 -0
- data/spec/models/list_implementations200_response_spec.rb +54 -0
- data/spec/models/page_info_spec.rb +54 -0
- data/spec/models/page_limit_status_spec.rb +48 -0
- data/spec/models/period_charges_spec.rb +48 -0
- data/spec/models/project_count_spec.rb +42 -0
- data/spec/models/project_spec.rb +200 -0
- data/spec/models/report_implementation_status200_response_spec.rb +42 -0
- data/spec/models/report_implementation_status_request_spec.rb +52 -0
- data/spec/models/rollback_implementation200_response_spec.rb +48 -0
- data/spec/models/rollback_implementation_request_spec.rb +42 -0
- data/spec/models/rollback_spec.rb +54 -0
- data/spec/models/spending_limit_status_spec.rb +54 -0
- data/spec/models/start_crawl_request_spec.rb +36 -0
- data/spec/models/step_by_step_instructions_spec.rb +42 -0
- data/spec/models/suggestion_spec.rb +100 -0
- data/spec/models/update_suggestion_request_spec.rb +40 -0
- data/spec/models/usage_history_item_spec.rb +60 -0
- data/spec/models/verify_content200_response_spec.rb +42 -0
- data/spec/models/verify_content_request_spec.rb +42 -0
- data/spec/spec_helper.rb +111 -0
- metadata +288 -0
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#RankVectors API
|
|
3
|
+
|
|
4
|
+
#Intelligent internal linking optimization API using AI. RankVectors helps you automatically discover and implement optimal internal links across your website to improve SEO performance and user experience. ## Key Features - **AI-Powered Analysis**: Uses OpenAI embeddings to find optimal linking opportunities - **Smart Crawling**: Automatically crawls and analyzes your website content - **Automated Implementation**: Implement links via webhooks or manual instructions - **Credit-Based System**: Pay-per-use model with transparent pricing - **Multi-Platform Support**: Works with any CMS or platform via REST API ## Getting Started 1. Create a project with your website URL 2. Start a crawl to analyze your content 3. Generate AI-powered link suggestions 4. Implement suggestions via API or webhook 5. Track performance and manage credits ## Authentication All API endpoints require authentication using your RankVectors API key. Include your API key in the `Authorization` header: ``` Authorization: Bearer YOUR_API_KEY ``` Get your API key from your RankVectors dashboard: Settings → API Keys
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.2.0
|
|
7
|
+
Contact: support@rankvectors.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.16.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
|
|
16
|
+
# Unit tests for OpenapiClient::CrawlingApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'CrawlingApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@api_instance = OpenapiClient::CrawlingApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of CrawlingApi' do
|
|
30
|
+
it 'should create an instance of CrawlingApi' do
|
|
31
|
+
expect(@api_instance).to be_instance_of(OpenapiClient::CrawlingApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for get_crawl_history
|
|
36
|
+
# Get crawl history
|
|
37
|
+
# Get the crawl history for a project
|
|
38
|
+
# @param project_id Unique identifier for the project
|
|
39
|
+
# @param [Hash] opts the optional parameters
|
|
40
|
+
# @return [Array<Crawl>]
|
|
41
|
+
describe 'get_crawl_history test' do
|
|
42
|
+
it 'should work' do
|
|
43
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
# unit tests for start_crawl
|
|
48
|
+
# Start website crawl
|
|
49
|
+
# Start crawling a website to analyze content for link opportunities
|
|
50
|
+
# @param project_id Unique identifier for the project
|
|
51
|
+
# @param [Hash] opts the optional parameters
|
|
52
|
+
# @option opts [StartCrawlRequest] :start_crawl_request
|
|
53
|
+
# @return [Crawl]
|
|
54
|
+
describe 'start_crawl test' do
|
|
55
|
+
it 'should work' do
|
|
56
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
end
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#RankVectors API
|
|
3
|
+
|
|
4
|
+
#Intelligent internal linking optimization API using AI. RankVectors helps you automatically discover and implement optimal internal links across your website to improve SEO performance and user experience. ## Key Features - **AI-Powered Analysis**: Uses OpenAI embeddings to find optimal linking opportunities - **Smart Crawling**: Automatically crawls and analyzes your website content - **Automated Implementation**: Implement links via webhooks or manual instructions - **Credit-Based System**: Pay-per-use model with transparent pricing - **Multi-Platform Support**: Works with any CMS or platform via REST API ## Getting Started 1. Create a project with your website URL 2. Start a crawl to analyze your content 3. Generate AI-powered link suggestions 4. Implement suggestions via API or webhook 5. Track performance and manage credits ## Authentication All API endpoints require authentication using your RankVectors API key. Include your API key in the `Authorization` header: ``` Authorization: Bearer YOUR_API_KEY ``` Get your API key from your RankVectors dashboard: Settings → API Keys
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.2.0
|
|
7
|
+
Contact: support@rankvectors.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.16.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
|
|
16
|
+
# Unit tests for OpenapiClient::CreditsApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'CreditsApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@api_instance = OpenapiClient::CreditsApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of CreditsApi' do
|
|
30
|
+
it 'should create an instance of CreditsApi' do
|
|
31
|
+
expect(@api_instance).to be_instance_of(OpenapiClient::CreditsApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for add_credits
|
|
36
|
+
# Add credits
|
|
37
|
+
# Add credits to a project (admin or payment webhook use)
|
|
38
|
+
# @param project_id Unique identifier for the project
|
|
39
|
+
# @param add_credits_request
|
|
40
|
+
# @param [Hash] opts the optional parameters
|
|
41
|
+
# @return [AddCredits200Response]
|
|
42
|
+
describe 'add_credits test' do
|
|
43
|
+
it 'should work' do
|
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
# unit tests for get_credits
|
|
49
|
+
# Get credit balance
|
|
50
|
+
# Get credit balance and usage history for a project
|
|
51
|
+
# @param project_id Unique identifier for the project
|
|
52
|
+
# @param [Hash] opts the optional parameters
|
|
53
|
+
# @option opts [Boolean] :include_history Include usage history
|
|
54
|
+
# @option opts [Time] :start_date History start date (ISO 8601)
|
|
55
|
+
# @option opts [Time] :end_date History end date (ISO 8601)
|
|
56
|
+
# @return [CreditBalance]
|
|
57
|
+
describe 'get_credits test' do
|
|
58
|
+
it 'should work' do
|
|
59
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
60
|
+
end
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
end
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#RankVectors API
|
|
3
|
+
|
|
4
|
+
#Intelligent internal linking optimization API using AI. RankVectors helps you automatically discover and implement optimal internal links across your website to improve SEO performance and user experience. ## Key Features - **AI-Powered Analysis**: Uses OpenAI embeddings to find optimal linking opportunities - **Smart Crawling**: Automatically crawls and analyzes your website content - **Automated Implementation**: Implement links via webhooks or manual instructions - **Credit-Based System**: Pay-per-use model with transparent pricing - **Multi-Platform Support**: Works with any CMS or platform via REST API ## Getting Started 1. Create a project with your website URL 2. Start a crawl to analyze your content 3. Generate AI-powered link suggestions 4. Implement suggestions via API or webhook 5. Track performance and manage credits ## Authentication All API endpoints require authentication using your RankVectors API key. Include your API key in the `Authorization` header: ``` Authorization: Bearer YOUR_API_KEY ``` Get your API key from your RankVectors dashboard: Settings → API Keys
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.2.0
|
|
7
|
+
Contact: support@rankvectors.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.16.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
|
|
16
|
+
# Unit tests for OpenapiClient::ImplementationsApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'ImplementationsApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@api_instance = OpenapiClient::ImplementationsApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of ImplementationsApi' do
|
|
30
|
+
it 'should create an instance of ImplementationsApi' do
|
|
31
|
+
expect(@api_instance).to be_instance_of(OpenapiClient::ImplementationsApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for get_implementation
|
|
36
|
+
# Get implementation details
|
|
37
|
+
# Get detailed information about a specific implementation
|
|
38
|
+
# @param project_id Unique identifier for the project
|
|
39
|
+
# @param implementation_id Unique identifier for the implementation
|
|
40
|
+
# @param [Hash] opts the optional parameters
|
|
41
|
+
# @return [GetImplementation200Response]
|
|
42
|
+
describe 'get_implementation test' do
|
|
43
|
+
it 'should work' do
|
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
# unit tests for implement_links
|
|
49
|
+
# Implement link suggestions
|
|
50
|
+
# Implement one or more link suggestions
|
|
51
|
+
# @param project_id Unique identifier for the project
|
|
52
|
+
# @param implementation_request
|
|
53
|
+
# @param [Hash] opts the optional parameters
|
|
54
|
+
# @return [ImplementationResponse]
|
|
55
|
+
describe 'implement_links test' do
|
|
56
|
+
it 'should work' do
|
|
57
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# unit tests for list_implementations
|
|
62
|
+
# List implementations
|
|
63
|
+
# Get implementation history for a project
|
|
64
|
+
# @param project_id Unique identifier for the project
|
|
65
|
+
# @param [Hash] opts the optional parameters
|
|
66
|
+
# @option opts [String] :status Filter by implementation status
|
|
67
|
+
# @option opts [String] :platform Filter by platform
|
|
68
|
+
# @option opts [Integer] :limit Results per page
|
|
69
|
+
# @option opts [Integer] :offset Pagination offset
|
|
70
|
+
# @return [ListImplementations200Response]
|
|
71
|
+
describe 'list_implementations test' do
|
|
72
|
+
it 'should work' do
|
|
73
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
# unit tests for rollback_implementation
|
|
78
|
+
# Rollback implementation
|
|
79
|
+
# Undo a link implementation and restore original content
|
|
80
|
+
# @param project_id Unique identifier for the project
|
|
81
|
+
# @param implementation_id Unique identifier for the implementation
|
|
82
|
+
# @param rollback_implementation_request
|
|
83
|
+
# @param [Hash] opts the optional parameters
|
|
84
|
+
# @return [RollbackImplementation200Response]
|
|
85
|
+
describe 'rollback_implementation test' do
|
|
86
|
+
it 'should work' do
|
|
87
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
88
|
+
end
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
end
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#RankVectors API
|
|
3
|
+
|
|
4
|
+
#Intelligent internal linking optimization API using AI. RankVectors helps you automatically discover and implement optimal internal links across your website to improve SEO performance and user experience. ## Key Features - **AI-Powered Analysis**: Uses OpenAI embeddings to find optimal linking opportunities - **Smart Crawling**: Automatically crawls and analyzes your website content - **Automated Implementation**: Implement links via webhooks or manual instructions - **Credit-Based System**: Pay-per-use model with transparent pricing - **Multi-Platform Support**: Works with any CMS or platform via REST API ## Getting Started 1. Create a project with your website URL 2. Start a crawl to analyze your content 3. Generate AI-powered link suggestions 4. Implement suggestions via API or webhook 5. Track performance and manage credits ## Authentication All API endpoints require authentication using your RankVectors API key. Include your API key in the `Authorization` header: ``` Authorization: Bearer YOUR_API_KEY ``` Get your API key from your RankVectors dashboard: Settings → API Keys
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.2.0
|
|
7
|
+
Contact: support@rankvectors.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.16.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
|
|
16
|
+
# Unit tests for OpenapiClient::ProjectsApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'ProjectsApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@api_instance = OpenapiClient::ProjectsApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of ProjectsApi' do
|
|
30
|
+
it 'should create an instance of ProjectsApi' do
|
|
31
|
+
expect(@api_instance).to be_instance_of(OpenapiClient::ProjectsApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for create_project
|
|
36
|
+
# Create a new project
|
|
37
|
+
# Create a new project for internal linking optimization
|
|
38
|
+
# @param create_project_request
|
|
39
|
+
# @param [Hash] opts the optional parameters
|
|
40
|
+
# @return [Project]
|
|
41
|
+
describe 'create_project test' do
|
|
42
|
+
it 'should work' do
|
|
43
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
# unit tests for delete_project
|
|
48
|
+
# Delete a project
|
|
49
|
+
# Delete a project and all associated data
|
|
50
|
+
# @param project_id Unique identifier for the project
|
|
51
|
+
# @param [Hash] opts the optional parameters
|
|
52
|
+
# @return [DeleteProject200Response]
|
|
53
|
+
describe 'delete_project test' do
|
|
54
|
+
it 'should work' do
|
|
55
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
# unit tests for get_project
|
|
60
|
+
# Get project details
|
|
61
|
+
# Get detailed information about a specific project
|
|
62
|
+
# @param project_id Unique identifier for the project
|
|
63
|
+
# @param [Hash] opts the optional parameters
|
|
64
|
+
# @return [Project]
|
|
65
|
+
describe 'get_project test' do
|
|
66
|
+
it 'should work' do
|
|
67
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
# unit tests for list_projects
|
|
72
|
+
# List all projects
|
|
73
|
+
# Get a list of all projects for the authenticated user
|
|
74
|
+
# @param [Hash] opts the optional parameters
|
|
75
|
+
# @return [Array<Project>]
|
|
76
|
+
describe 'list_projects test' do
|
|
77
|
+
it 'should work' do
|
|
78
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
79
|
+
end
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
end
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#RankVectors API
|
|
3
|
+
|
|
4
|
+
#Intelligent internal linking optimization API using AI. RankVectors helps you automatically discover and implement optimal internal links across your website to improve SEO performance and user experience. ## Key Features - **AI-Powered Analysis**: Uses OpenAI embeddings to find optimal linking opportunities - **Smart Crawling**: Automatically crawls and analyzes your website content - **Automated Implementation**: Implement links via webhooks or manual instructions - **Credit-Based System**: Pay-per-use model with transparent pricing - **Multi-Platform Support**: Works with any CMS or platform via REST API ## Getting Started 1. Create a project with your website URL 2. Start a crawl to analyze your content 3. Generate AI-powered link suggestions 4. Implement suggestions via API or webhook 5. Track performance and manage credits ## Authentication All API endpoints require authentication using your RankVectors API key. Include your API key in the `Authorization` header: ``` Authorization: Bearer YOUR_API_KEY ``` Get your API key from your RankVectors dashboard: Settings → API Keys
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.2.0
|
|
7
|
+
Contact: support@rankvectors.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.16.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
|
|
16
|
+
# Unit tests for OpenapiClient::SuggestionsApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'SuggestionsApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@api_instance = OpenapiClient::SuggestionsApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of SuggestionsApi' do
|
|
30
|
+
it 'should create an instance of SuggestionsApi' do
|
|
31
|
+
expect(@api_instance).to be_instance_of(OpenapiClient::SuggestionsApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for generate_suggestions
|
|
36
|
+
# Generate link suggestions
|
|
37
|
+
# Generate new AI-powered link suggestions for a project
|
|
38
|
+
# @param project_id Unique identifier for the project
|
|
39
|
+
# @param [Hash] opts the optional parameters
|
|
40
|
+
# @option opts [GenerateSuggestionsRequest] :generate_suggestions_request
|
|
41
|
+
# @return [GenerateSuggestions200Response]
|
|
42
|
+
describe 'generate_suggestions test' do
|
|
43
|
+
it 'should work' do
|
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
# unit tests for get_suggestions
|
|
49
|
+
# Get link suggestions
|
|
50
|
+
# Get AI-generated link suggestions for a project
|
|
51
|
+
# @param project_id Unique identifier for the project
|
|
52
|
+
# @param [Hash] opts the optional parameters
|
|
53
|
+
# @option opts [String] :status Filter suggestions by status
|
|
54
|
+
# @return [Array<Suggestion>]
|
|
55
|
+
describe 'get_suggestions test' do
|
|
56
|
+
it 'should work' do
|
|
57
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# unit tests for update_suggestion
|
|
62
|
+
# Update suggestion status
|
|
63
|
+
# Update the status of a link suggestion
|
|
64
|
+
# @param project_id Unique identifier for the project
|
|
65
|
+
# @param suggestion_id Unique identifier for the suggestion
|
|
66
|
+
# @param update_suggestion_request
|
|
67
|
+
# @param [Hash] opts the optional parameters
|
|
68
|
+
# @return [Suggestion]
|
|
69
|
+
describe 'update_suggestion test' do
|
|
70
|
+
it 'should work' do
|
|
71
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
end
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#RankVectors API
|
|
3
|
+
|
|
4
|
+
#Intelligent internal linking optimization API using AI. RankVectors helps you automatically discover and implement optimal internal links across your website to improve SEO performance and user experience. ## Key Features - **AI-Powered Analysis**: Uses OpenAI embeddings to find optimal linking opportunities - **Smart Crawling**: Automatically crawls and analyzes your website content - **Automated Implementation**: Implement links via webhooks or manual instructions - **Credit-Based System**: Pay-per-use model with transparent pricing - **Multi-Platform Support**: Works with any CMS or platform via REST API ## Getting Started 1. Create a project with your website URL 2. Start a crawl to analyze your content 3. Generate AI-powered link suggestions 4. Implement suggestions via API or webhook 5. Track performance and manage credits ## Authentication All API endpoints require authentication using your RankVectors API key. Include your API key in the `Authorization` header: ``` Authorization: Bearer YOUR_API_KEY ``` Get your API key from your RankVectors dashboard: Settings → API Keys
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.2.0
|
|
7
|
+
Contact: support@rankvectors.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.16.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
|
|
16
|
+
# Unit tests for OpenapiClient::WebhooksApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'WebhooksApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@api_instance = OpenapiClient::WebhooksApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of WebhooksApi' do
|
|
30
|
+
it 'should create an instance of WebhooksApi' do
|
|
31
|
+
expect(@api_instance).to be_instance_of(OpenapiClient::WebhooksApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for get_implementation_instructions
|
|
36
|
+
# Get implementation instructions
|
|
37
|
+
# Get step-by-step instructions for implementing a link
|
|
38
|
+
# @param suggestion_id ID of the suggestion to implement
|
|
39
|
+
# @param [Hash] opts the optional parameters
|
|
40
|
+
# @return [ImplementationInstructions]
|
|
41
|
+
describe 'get_implementation_instructions test' do
|
|
42
|
+
it 'should work' do
|
|
43
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
# unit tests for report_implementation_status
|
|
48
|
+
# Report implementation status
|
|
49
|
+
# Report the status of a link implementation
|
|
50
|
+
# @param report_implementation_status_request
|
|
51
|
+
# @param [Hash] opts the optional parameters
|
|
52
|
+
# @return [ReportImplementationStatus200Response]
|
|
53
|
+
describe 'report_implementation_status test' do
|
|
54
|
+
it 'should work' do
|
|
55
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
end
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#RankVectors API
|
|
3
|
+
|
|
4
|
+
#Intelligent internal linking optimization API using AI. RankVectors helps you automatically discover and implement optimal internal links across your website to improve SEO performance and user experience. ## Key Features - **AI-Powered Analysis**: Uses OpenAI embeddings to find optimal linking opportunities - **Smart Crawling**: Automatically crawls and analyzes your website content - **Automated Implementation**: Implement links via webhooks or manual instructions - **Credit-Based System**: Pay-per-use model with transparent pricing - **Multi-Platform Support**: Works with any CMS or platform via REST API ## Getting Started 1. Create a project with your website URL 2. Start a crawl to analyze your content 3. Generate AI-powered link suggestions 4. Implement suggestions via API or webhook 5. Track performance and manage credits ## Authentication All API endpoints require authentication using your RankVectors API key. Include your API key in the `Authorization` header: ``` Authorization: Bearer YOUR_API_KEY ``` Get your API key from your RankVectors dashboard: Settings → API Keys
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.2.0
|
|
7
|
+
Contact: support@rankvectors.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.16.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for OpenapiClient::AddCredits200Response
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe OpenapiClient::AddCredits200Response do
|
|
21
|
+
#let(:instance) { OpenapiClient::AddCredits200Response.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of AddCredits200Response' do
|
|
24
|
+
it 'should create an instance of AddCredits200Response' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(OpenapiClient::AddCredits200Response)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "success"' do
|
|
31
|
+
it 'should work' do
|
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
describe 'test attribute "balance"' do
|
|
37
|
+
it 'should work' do
|
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
describe 'test attribute "message"' do
|
|
43
|
+
it 'should work' do
|
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
end
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#RankVectors API
|
|
3
|
+
|
|
4
|
+
#Intelligent internal linking optimization API using AI. RankVectors helps you automatically discover and implement optimal internal links across your website to improve SEO performance and user experience. ## Key Features - **AI-Powered Analysis**: Uses OpenAI embeddings to find optimal linking opportunities - **Smart Crawling**: Automatically crawls and analyzes your website content - **Automated Implementation**: Implement links via webhooks or manual instructions - **Credit-Based System**: Pay-per-use model with transparent pricing - **Multi-Platform Support**: Works with any CMS or platform via REST API ## Getting Started 1. Create a project with your website URL 2. Start a crawl to analyze your content 3. Generate AI-powered link suggestions 4. Implement suggestions via API or webhook 5. Track performance and manage credits ## Authentication All API endpoints require authentication using your RankVectors API key. Include your API key in the `Authorization` header: ``` Authorization: Bearer YOUR_API_KEY ``` Get your API key from your RankVectors dashboard: Settings → API Keys
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.2.0
|
|
7
|
+
Contact: support@rankvectors.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.16.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for OpenapiClient::AddCreditsRequest
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe OpenapiClient::AddCreditsRequest do
|
|
21
|
+
#let(:instance) { OpenapiClient::AddCreditsRequest.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of AddCreditsRequest' do
|
|
24
|
+
it 'should create an instance of AddCreditsRequest' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(OpenapiClient::AddCreditsRequest)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "amount"' do
|
|
31
|
+
it 'should work' do
|
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
describe 'test attribute "source"' do
|
|
37
|
+
it 'should work' do
|
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
end
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#RankVectors API
|
|
3
|
+
|
|
4
|
+
#Intelligent internal linking optimization API using AI. RankVectors helps you automatically discover and implement optimal internal links across your website to improve SEO performance and user experience. ## Key Features - **AI-Powered Analysis**: Uses OpenAI embeddings to find optimal linking opportunities - **Smart Crawling**: Automatically crawls and analyzes your website content - **Automated Implementation**: Implement links via webhooks or manual instructions - **Credit-Based System**: Pay-per-use model with transparent pricing - **Multi-Platform Support**: Works with any CMS or platform via REST API ## Getting Started 1. Create a project with your website URL 2. Start a crawl to analyze your content 3. Generate AI-powered link suggestions 4. Implement suggestions via API or webhook 5. Track performance and manage credits ## Authentication All API endpoints require authentication using your RankVectors API key. Include your API key in the `Authorization` header: ``` Authorization: Bearer YOUR_API_KEY ``` Get your API key from your RankVectors dashboard: Settings → API Keys
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.2.0
|
|
7
|
+
Contact: support@rankvectors.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.16.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for OpenapiClient::AutoRechargeSettings
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe OpenapiClient::AutoRechargeSettings do
|
|
21
|
+
#let(:instance) { OpenapiClient::AutoRechargeSettings.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of AutoRechargeSettings' do
|
|
24
|
+
it 'should create an instance of AutoRechargeSettings' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(OpenapiClient::AutoRechargeSettings)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "enabled"' do
|
|
31
|
+
it 'should work' do
|
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
describe 'test attribute "threshold"' do
|
|
37
|
+
it 'should work' do
|
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
describe 'test attribute "amount"' do
|
|
43
|
+
it 'should work' do
|
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
end
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#RankVectors API
|
|
3
|
+
|
|
4
|
+
#Intelligent internal linking optimization API using AI. RankVectors helps you automatically discover and implement optimal internal links across your website to improve SEO performance and user experience. ## Key Features - **AI-Powered Analysis**: Uses OpenAI embeddings to find optimal linking opportunities - **Smart Crawling**: Automatically crawls and analyzes your website content - **Automated Implementation**: Implement links via webhooks or manual instructions - **Credit-Based System**: Pay-per-use model with transparent pricing - **Multi-Platform Support**: Works with any CMS or platform via REST API ## Getting Started 1. Create a project with your website URL 2. Start a crawl to analyze your content 3. Generate AI-powered link suggestions 4. Implement suggestions via API or webhook 5. Track performance and manage credits ## Authentication All API endpoints require authentication using your RankVectors API key. Include your API key in the `Authorization` header: ``` Authorization: Bearer YOUR_API_KEY ``` Get your API key from your RankVectors dashboard: Settings → API Keys
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.2.0
|
|
7
|
+
Contact: support@rankvectors.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.16.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for OpenapiClient::ChangeResult
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe OpenapiClient::ChangeResult do
|
|
21
|
+
#let(:instance) { OpenapiClient::ChangeResult.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of ChangeResult' do
|
|
24
|
+
it 'should create an instance of ChangeResult' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(OpenapiClient::ChangeResult)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "page_url"' do
|
|
31
|
+
it 'should work' do
|
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
describe 'test attribute "change_status"' do
|
|
37
|
+
it 'should work' do
|
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
39
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["same", "changed", "not_found"])
|
|
40
|
+
# validator.allowable_values.each do |value|
|
|
41
|
+
# expect { instance.change_status = value }.not_to raise_error
|
|
42
|
+
# end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
describe 'test attribute "visibility"' do
|
|
47
|
+
it 'should work' do
|
|
48
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
49
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["visible", "hidden", "error"])
|
|
50
|
+
# validator.allowable_values.each do |value|
|
|
51
|
+
# expect { instance.visibility = value }.not_to raise_error
|
|
52
|
+
# end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
describe 'test attribute "previous_scrape_at"' do
|
|
57
|
+
it 'should work' do
|
|
58
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
end
|