songtradr_api_client_ruby 1.16.0 → 1.17.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +5 -5
- data/README.md +5 -30
- data/docs/ImageRecognitionResponse.md +2 -2
- data/docs/MusicalFeaturesDTO.md +78 -78
- data/docs/RecordingGenrePredictionDTO.md +3 -3
- data/docs/RecordingMediumDTO.md +4 -4
- data/docs/RecordingPartyDTO.md +3 -3
- data/docs/RecordingSmallDTO.md +3 -3
- data/docs/VideoRecognitionResponse.md +2 -2
- data/lib/songtradr_api_client_ruby/api/allowed_values_api.rb +2 -2
- data/lib/songtradr_api_client_ruby/api/playlist_api.rb +2 -2
- data/lib/songtradr_api_client_ruby/api/recording_api.rb +2 -2
- data/lib/songtradr_api_client_ruby/api/user_api.rb +2 -2
- data/lib/songtradr_api_client_ruby/api_client.rb +4 -4
- data/lib/songtradr_api_client_ruby/api_error.rb +2 -2
- data/lib/songtradr_api_client_ruby/configuration.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/category_medium_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/category_minimal_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/config_access_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/config_identifier_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/contributor_type_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/curate_playlist_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/curate_playlist_response_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/error_response.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/field_summary_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/file_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/file_list_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/file_small_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/file_upload_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/file_w_ith_url_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/files_summary_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/forgot_password_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/genre_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/genre_minimal_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/genres_summary_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/image_recognition_response.rb +4 -4
- data/lib/songtradr_api_client_ruby/models/init_put_recording_audio_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/jwt_token_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/login_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/musical_features_dto.rb +557 -557
- data/lib/songtradr_api_client_ruby/models/party_small_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/recording_for_similarity_search_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/recording_genre_prediction_dto.rb +22 -22
- data/lib/songtradr_api_client_ruby/models/recording_list_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/recording_medium_dto.rb +35 -35
- data/lib/songtradr_api_client_ruby/models/recording_minimal_with_musical_features_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/recording_minimal_with_taggrams_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/recording_minimal_with_tagstrengths_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/recording_party_dto.rb +17 -17
- data/lib/songtradr_api_client_ruby/models/recording_small_dto.rb +27 -27
- data/lib/songtradr_api_client_ruby/models/recording_tag_small_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/save_user_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/search_filter_values_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/search_recording_granular_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/sign_up_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/tag_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/tag_small_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/taggram_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/tags_summary_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/tagstrength_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/title_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/token_request.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/track_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/update_password_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/user_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/video_recognition_response.rb +4 -4
- data/lib/songtradr_api_client_ruby/version.rb +3 -3
- data/lib/songtradr_api_client_ruby.rb +2 -27
- data/openapi-generator-config.yaml +1 -1
- data/songtradr_api_client_ruby.gemspec +2 -2
- data/spec/api/allowed_values_api_spec.rb +2 -2
- data/spec/api/playlist_api_spec.rb +2 -2
- data/spec/api/recording_api_spec.rb +2 -2
- data/spec/api/user_api_spec.rb +2 -2
- data/spec/models/category_medium_dto_spec.rb +2 -2
- data/spec/models/category_minimal_dto_spec.rb +2 -2
- data/spec/models/config_access_dto_spec.rb +2 -2
- data/spec/models/config_identifier_dto_spec.rb +2 -2
- data/spec/models/contributor_type_dto_spec.rb +2 -2
- data/spec/models/curate_playlist_dto_spec.rb +2 -2
- data/spec/models/curate_playlist_response_dto_spec.rb +2 -2
- data/spec/models/error_response_spec.rb +2 -2
- data/spec/models/field_summary_dto_spec.rb +2 -2
- data/spec/models/file_dto_spec.rb +2 -2
- data/spec/models/file_list_dto_spec.rb +2 -2
- data/spec/models/file_small_dto_spec.rb +2 -2
- data/spec/models/file_upload_dto_spec.rb +2 -2
- data/spec/models/file_w_ith_url_dto_spec.rb +2 -2
- data/spec/models/files_summary_dto_spec.rb +2 -2
- data/spec/models/forgot_password_dto_spec.rb +2 -2
- data/spec/models/genre_dto_spec.rb +2 -2
- data/spec/models/genre_minimal_dto_spec.rb +2 -2
- data/spec/models/genres_summary_dto_spec.rb +2 -2
- data/spec/models/image_recognition_response_spec.rb +2 -2
- data/spec/models/init_put_recording_audio_dto_spec.rb +2 -2
- data/spec/models/jwt_token_dto_spec.rb +2 -2
- data/spec/models/login_dto_spec.rb +2 -2
- data/spec/models/musical_features_dto_spec.rb +171 -171
- data/spec/models/party_small_dto_spec.rb +2 -2
- data/spec/models/recording_for_similarity_search_dto_spec.rb +2 -2
- data/spec/models/recording_genre_prediction_dto_spec.rb +5 -5
- data/spec/models/recording_list_dto_spec.rb +2 -2
- data/spec/models/recording_medium_dto_spec.rb +9 -9
- data/spec/models/recording_minimal_with_musical_features_dto_spec.rb +2 -2
- data/spec/models/recording_minimal_with_taggrams_dto_spec.rb +2 -2
- data/spec/models/recording_minimal_with_tagstrengths_dto_spec.rb +2 -2
- data/spec/models/recording_party_dto_spec.rb +4 -4
- data/spec/models/recording_small_dto_spec.rb +5 -5
- data/spec/models/recording_tag_small_dto_spec.rb +2 -2
- data/spec/models/save_user_dto_spec.rb +2 -2
- data/spec/models/search_filter_values_dto_spec.rb +2 -2
- data/spec/models/search_recording_granular_dto_spec.rb +2 -2
- data/spec/models/sign_up_dto_spec.rb +2 -2
- data/spec/models/tag_dto_spec.rb +2 -2
- data/spec/models/tag_small_dto_spec.rb +2 -2
- data/spec/models/taggram_dto_spec.rb +2 -2
- data/spec/models/tags_summary_dto_spec.rb +2 -2
- data/spec/models/tagstrength_dto_spec.rb +2 -2
- data/spec/models/title_dto_spec.rb +2 -2
- data/spec/models/token_request_spec.rb +2 -2
- data/spec/models/track_dto_spec.rb +2 -2
- data/spec/models/update_password_dto_spec.rb +2 -2
- data/spec/models/user_dto_spec.rb +2 -2
- data/spec/models/video_recognition_response_spec.rb +2 -2
- data/spec/spec_helper.rb +2 -2
- metadata +42 -146
- data/docs/AgeRange.md +0 -20
- data/docs/Beard.md +0 -20
- data/docs/BoundingBox.md +0 -24
- data/docs/DominantColor.md +0 -30
- data/docs/Emotion.md +0 -20
- data/docs/EyeDirection.md +0 -22
- data/docs/EyeOpen.md +0 -20
- data/docs/Eyeglasses.md +0 -20
- data/docs/FaceDetail.md +0 -50
- data/docs/FaceDetection.md +0 -20
- data/docs/FaceOccluded.md +0 -20
- data/docs/Gender.md +0 -20
- data/docs/ImageQuality.md +0 -20
- data/docs/Instance.md +0 -22
- data/docs/Label.md +0 -28
- data/docs/LabelAlias.md +0 -18
- data/docs/LabelCategory.md +0 -18
- data/docs/LabelDetection.md +0 -26
- data/docs/Landmark.md +0 -22
- data/docs/MouthOpen.md +0 -20
- data/docs/Mustache.md +0 -20
- data/docs/Parent.md +0 -18
- data/docs/Pose.md +0 -22
- data/docs/Smile.md +0 -20
- data/docs/Sunglasses.md +0 -20
- data/lib/songtradr_api_client_ruby/models/age_range.rb +0 -223
- data/lib/songtradr_api_client_ruby/models/beard.rb +0 -223
- data/lib/songtradr_api_client_ruby/models/bounding_box.rb +0 -241
- data/lib/songtradr_api_client_ruby/models/dominant_color.rb +0 -268
- data/lib/songtradr_api_client_ruby/models/emotion.rb +0 -223
- data/lib/songtradr_api_client_ruby/models/eye_direction.rb +0 -232
- data/lib/songtradr_api_client_ruby/models/eye_open.rb +0 -223
- data/lib/songtradr_api_client_ruby/models/eyeglasses.rb +0 -223
- data/lib/songtradr_api_client_ruby/models/face_detail.rb +0 -362
- data/lib/songtradr_api_client_ruby/models/face_detection.rb +0 -223
- data/lib/songtradr_api_client_ruby/models/face_occluded.rb +0 -223
- data/lib/songtradr_api_client_ruby/models/gender.rb +0 -223
- data/lib/songtradr_api_client_ruby/models/image_quality.rb +0 -223
- data/lib/songtradr_api_client_ruby/models/instance.rb +0 -234
- data/lib/songtradr_api_client_ruby/models/label.rb +0 -267
- data/lib/songtradr_api_client_ruby/models/label_alias.rb +0 -214
- data/lib/songtradr_api_client_ruby/models/label_category.rb +0 -214
- data/lib/songtradr_api_client_ruby/models/label_detection.rb +0 -250
- data/lib/songtradr_api_client_ruby/models/landmark.rb +0 -232
- data/lib/songtradr_api_client_ruby/models/mouth_open.rb +0 -223
- data/lib/songtradr_api_client_ruby/models/mustache.rb +0 -223
- data/lib/songtradr_api_client_ruby/models/parent.rb +0 -214
- data/lib/songtradr_api_client_ruby/models/pose.rb +0 -232
- data/lib/songtradr_api_client_ruby/models/smile.rb +0 -223
- data/lib/songtradr_api_client_ruby/models/sunglasses.rb +0 -223
- data/spec/api_client_spec.rb +0 -223
- data/spec/configuration_spec.rb +0 -82
- data/spec/models/age_range_spec.rb +0 -42
- data/spec/models/beard_spec.rb +0 -42
- data/spec/models/bounding_box_spec.rb +0 -54
- data/spec/models/dominant_color_spec.rb +0 -72
- data/spec/models/emotion_spec.rb +0 -42
- data/spec/models/eye_direction_spec.rb +0 -48
- data/spec/models/eye_open_spec.rb +0 -42
- data/spec/models/eyeglasses_spec.rb +0 -42
- data/spec/models/face_detail_spec.rb +0 -132
- data/spec/models/face_detection_spec.rb +0 -42
- data/spec/models/face_occluded_spec.rb +0 -42
- data/spec/models/gender_spec.rb +0 -42
- data/spec/models/image_quality_spec.rb +0 -42
- data/spec/models/instance_spec.rb +0 -48
- data/spec/models/label_alias_spec.rb +0 -36
- data/spec/models/label_category_spec.rb +0 -36
- data/spec/models/label_detection_spec.rb +0 -60
- data/spec/models/label_spec.rb +0 -66
- data/spec/models/landmark_spec.rb +0 -48
- data/spec/models/mouth_open_spec.rb +0 -42
- data/spec/models/mustache_spec.rb +0 -42
- data/spec/models/parent_spec.rb +0 -36
- data/spec/models/pose_spec.rb +0 -48
- data/spec/models/smile_spec.rb +0 -42
- data/spec/models/sunglasses_spec.rb +0 -42
data/spec/api_client_spec.rb
DELETED
@@ -1,223 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#Songtradr API
|
3
|
-
|
4
|
-
#This is the Songtradr API. Use it to retrieve deep music metadata and trigger processes like auto-tagging. You can also use the API to manage your account and musicube cloud data. **Authentication** 1. Reach out to support@songtradr.com to receive a free account or use your login data if you are already signed up. 2. To authenticate, you need to login via the POST /api/v1/user/login endpoint. 3. The endpoint responds with a jwtToken which you can use in all following API requests as a bearer token. **Rate Limiting** The current limit is 120 Requests per minute. Reach out to us via support@songtradr.com if you need to request more. **Getting Started with auto-tagging** 1. If you want to get your own files auto-tagged, use the POST /api/v1/user/file/{name}/initUpload endpoint. It responds with a presigned S3 link where you can upload your file. 2. You can check the processing status of your file via the GET /api/v1/user/file/{name}/filesStatus endpoint. 3. As soon as processing is done, you can request the generated data via the GET /api/v1/user/files endpoint. **Getting Started with search** You can either search the released music via the /public/recording endpoints or your own private uploaded music via the /user/file/ endpoints. 1. If you want to search the world's released music, a good starting point is the GET /api/v1/public/recording/search endpoint. Please find the extensive list of parameters that serve as semantic search filters. 2. If you want to search your own previously uploaded music, a good starting point is the GET GET /api/v1/user/files endpoint. It has the same extensive list of parameters that serve as semantic search filters.
|
5
|
-
|
6
|
-
The version of the OpenAPI document: 1.16.0
|
7
|
-
Contact: info@songtradr.com
|
8
|
-
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 7.2.0-SNAPSHOT
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'spec_helper'
|
14
|
-
|
15
|
-
describe SongtradrApiClientRuby::ApiClient do
|
16
|
-
context 'initialization' do
|
17
|
-
context 'URL stuff' do
|
18
|
-
context 'host' do
|
19
|
-
it 'removes http from host' do
|
20
|
-
SongtradrApiClientRuby.configure { |c| c.host = 'http://example.com' }
|
21
|
-
expect(SongtradrApiClientRuby::Configuration.default.host).to eq('example.com')
|
22
|
-
end
|
23
|
-
|
24
|
-
it 'removes https from host' do
|
25
|
-
SongtradrApiClientRuby.configure { |c| c.host = 'https://wookiee.com' }
|
26
|
-
expect(SongtradrApiClientRuby::ApiClient.default.config.host).to eq('wookiee.com')
|
27
|
-
end
|
28
|
-
|
29
|
-
it 'removes trailing path from host' do
|
30
|
-
SongtradrApiClientRuby.configure { |c| c.host = 'hobo.com/v4' }
|
31
|
-
expect(SongtradrApiClientRuby::Configuration.default.host).to eq('hobo.com')
|
32
|
-
end
|
33
|
-
end
|
34
|
-
|
35
|
-
context 'base_path' do
|
36
|
-
it "prepends a slash to base_path" do
|
37
|
-
SongtradrApiClientRuby.configure { |c| c.base_path = 'v4/dog' }
|
38
|
-
expect(SongtradrApiClientRuby::Configuration.default.base_path).to eq('/v4/dog')
|
39
|
-
end
|
40
|
-
|
41
|
-
it "doesn't prepend a slash if one is already there" do
|
42
|
-
SongtradrApiClientRuby.configure { |c| c.base_path = '/v4/dog' }
|
43
|
-
expect(SongtradrApiClientRuby::Configuration.default.base_path).to eq('/v4/dog')
|
44
|
-
end
|
45
|
-
|
46
|
-
it "ends up as a blank string if nil" do
|
47
|
-
SongtradrApiClientRuby.configure { |c| c.base_path = nil }
|
48
|
-
expect(SongtradrApiClientRuby::Configuration.default.base_path).to eq('')
|
49
|
-
end
|
50
|
-
end
|
51
|
-
end
|
52
|
-
end
|
53
|
-
|
54
|
-
|
55
|
-
describe 'proxy in #build_connection' do
|
56
|
-
let(:config) { SongtradrApiClientRuby::Configuration.new }
|
57
|
-
let(:api_client) { SongtradrApiClientRuby::ApiClient.new(config) }
|
58
|
-
let(:proxy_uri) { URI('http://example.org:8080') }
|
59
|
-
|
60
|
-
it 'defaults to nil' do
|
61
|
-
expect(SongtradrApiClientRuby::Configuration.default.proxy).to be_nil
|
62
|
-
expect(config.proxy).to be_nil
|
63
|
-
|
64
|
-
connection = api_client.build_connection
|
65
|
-
expect(connection.proxy_for_request('/test')).to be_nil
|
66
|
-
end
|
67
|
-
|
68
|
-
it 'can be customized with a string' do
|
69
|
-
config.proxy = proxy_uri.to_s
|
70
|
-
|
71
|
-
connection = api_client.build_connection
|
72
|
-
configured_proxy = connection.proxy_for_request('/test')
|
73
|
-
|
74
|
-
expect(configured_proxy).not_to be_nil
|
75
|
-
expect(configured_proxy.uri.to_s).to eq proxy_uri.to_s
|
76
|
-
end
|
77
|
-
|
78
|
-
it 'can be customized with a hash' do
|
79
|
-
config.proxy = { uri: proxy_uri }
|
80
|
-
|
81
|
-
connection = api_client.build_connection
|
82
|
-
configured_proxy = connection.proxy_for_request('/test')
|
83
|
-
|
84
|
-
expect(configured_proxy).not_to be_nil
|
85
|
-
expect(configured_proxy.uri).to eq proxy_uri
|
86
|
-
end
|
87
|
-
end
|
88
|
-
|
89
|
-
describe '#deserialize' do
|
90
|
-
it "handles Array<Integer>" do
|
91
|
-
api_client = SongtradrApiClientRuby::ApiClient.new
|
92
|
-
headers = { 'Content-Type' => 'application/json' }
|
93
|
-
response = double('response', headers: headers, body: '[12, 34]')
|
94
|
-
data = api_client.deserialize(response, 'Array<Integer>')
|
95
|
-
expect(data).to be_instance_of(Array)
|
96
|
-
expect(data).to eq([12, 34])
|
97
|
-
end
|
98
|
-
|
99
|
-
it 'handles Array<Array<Integer>>' do
|
100
|
-
api_client = SongtradrApiClientRuby::ApiClient.new
|
101
|
-
headers = { 'Content-Type' => 'application/json' }
|
102
|
-
response = double('response', headers: headers, body: '[[12, 34], [56]]')
|
103
|
-
data = api_client.deserialize(response, 'Array<Array<Integer>>')
|
104
|
-
expect(data).to be_instance_of(Array)
|
105
|
-
expect(data).to eq([[12, 34], [56]])
|
106
|
-
end
|
107
|
-
|
108
|
-
it 'handles Hash<String, String>' do
|
109
|
-
api_client = SongtradrApiClientRuby::ApiClient.new
|
110
|
-
headers = { 'Content-Type' => 'application/json' }
|
111
|
-
response = double('response', headers: headers, body: '{"message": "Hello"}')
|
112
|
-
data = api_client.deserialize(response, 'Hash<String, String>')
|
113
|
-
expect(data).to be_instance_of(Hash)
|
114
|
-
expect(data).to eq(:message => 'Hello')
|
115
|
-
end
|
116
|
-
end
|
117
|
-
|
118
|
-
describe "#object_to_hash" do
|
119
|
-
it 'ignores nils and includes empty arrays' do
|
120
|
-
# uncomment below to test object_to_hash for model
|
121
|
-
# api_client = SongtradrApiClientRuby::ApiClient.new
|
122
|
-
# _model = SongtradrApiClientRuby::ModelName.new
|
123
|
-
# update the model attribute below
|
124
|
-
# _model.id = 1
|
125
|
-
# update the expected value (hash) below
|
126
|
-
# expected = {id: 1, name: '', tags: []}
|
127
|
-
# expect(api_client.object_to_hash(_model)).to eq(expected)
|
128
|
-
end
|
129
|
-
end
|
130
|
-
|
131
|
-
describe '#build_collection_param' do
|
132
|
-
let(:param) { ['aa', 'bb', 'cc'] }
|
133
|
-
let(:api_client) { SongtradrApiClientRuby::ApiClient.new }
|
134
|
-
|
135
|
-
it 'works for csv' do
|
136
|
-
expect(api_client.build_collection_param(param, :csv)).to eq('aa,bb,cc')
|
137
|
-
end
|
138
|
-
|
139
|
-
it 'works for ssv' do
|
140
|
-
expect(api_client.build_collection_param(param, :ssv)).to eq('aa bb cc')
|
141
|
-
end
|
142
|
-
|
143
|
-
it 'works for tsv' do
|
144
|
-
expect(api_client.build_collection_param(param, :tsv)).to eq("aa\tbb\tcc")
|
145
|
-
end
|
146
|
-
|
147
|
-
it 'works for pipes' do
|
148
|
-
expect(api_client.build_collection_param(param, :pipes)).to eq('aa|bb|cc')
|
149
|
-
end
|
150
|
-
|
151
|
-
it 'works for multi' do
|
152
|
-
expect(api_client.build_collection_param(param, :multi)).to eq(['aa', 'bb', 'cc'])
|
153
|
-
end
|
154
|
-
|
155
|
-
it 'fails for invalid collection format' do
|
156
|
-
expect { api_client.build_collection_param(param, :INVALID) }.to raise_error(RuntimeError, 'unknown collection format: :INVALID')
|
157
|
-
end
|
158
|
-
end
|
159
|
-
|
160
|
-
describe '#json_mime?' do
|
161
|
-
let(:api_client) { SongtradrApiClientRuby::ApiClient.new }
|
162
|
-
|
163
|
-
it 'works' do
|
164
|
-
expect(api_client.json_mime?(nil)).to eq false
|
165
|
-
expect(api_client.json_mime?('')).to eq false
|
166
|
-
|
167
|
-
expect(api_client.json_mime?('application/json')).to eq true
|
168
|
-
expect(api_client.json_mime?('application/json; charset=UTF8')).to eq true
|
169
|
-
expect(api_client.json_mime?('APPLICATION/JSON')).to eq true
|
170
|
-
|
171
|
-
expect(api_client.json_mime?('application/xml')).to eq false
|
172
|
-
expect(api_client.json_mime?('text/plain')).to eq false
|
173
|
-
expect(api_client.json_mime?('application/jsonp')).to eq false
|
174
|
-
end
|
175
|
-
end
|
176
|
-
|
177
|
-
describe '#select_header_accept' do
|
178
|
-
let(:api_client) { SongtradrApiClientRuby::ApiClient.new }
|
179
|
-
|
180
|
-
it 'works' do
|
181
|
-
expect(api_client.select_header_accept(nil)).to be_nil
|
182
|
-
expect(api_client.select_header_accept([])).to be_nil
|
183
|
-
|
184
|
-
expect(api_client.select_header_accept(['application/json'])).to eq('application/json')
|
185
|
-
expect(api_client.select_header_accept(['application/xml', 'application/json; charset=UTF8'])).to eq('application/json; charset=UTF8')
|
186
|
-
expect(api_client.select_header_accept(['APPLICATION/JSON', 'text/html'])).to eq('APPLICATION/JSON')
|
187
|
-
|
188
|
-
expect(api_client.select_header_accept(['application/xml'])).to eq('application/xml')
|
189
|
-
expect(api_client.select_header_accept(['text/html', 'application/xml'])).to eq('text/html,application/xml')
|
190
|
-
end
|
191
|
-
end
|
192
|
-
|
193
|
-
describe '#select_header_content_type' do
|
194
|
-
let(:api_client) { SongtradrApiClientRuby::ApiClient.new }
|
195
|
-
|
196
|
-
it 'works' do
|
197
|
-
expect(api_client.select_header_content_type(nil)).to be_nil
|
198
|
-
expect(api_client.select_header_content_type([])).to be_nil
|
199
|
-
|
200
|
-
expect(api_client.select_header_content_type(['application/json'])).to eq('application/json')
|
201
|
-
expect(api_client.select_header_content_type(['application/xml', 'application/json; charset=UTF8'])).to eq('application/json; charset=UTF8')
|
202
|
-
expect(api_client.select_header_content_type(['APPLICATION/JSON', 'text/html'])).to eq('APPLICATION/JSON')
|
203
|
-
expect(api_client.select_header_content_type(['application/xml'])).to eq('application/xml')
|
204
|
-
expect(api_client.select_header_content_type(['text/plain', 'application/xml'])).to eq('text/plain')
|
205
|
-
end
|
206
|
-
end
|
207
|
-
|
208
|
-
describe '#sanitize_filename' do
|
209
|
-
let(:api_client) { SongtradrApiClientRuby::ApiClient.new }
|
210
|
-
|
211
|
-
it 'works' do
|
212
|
-
expect(api_client.sanitize_filename('sun')).to eq('sun')
|
213
|
-
expect(api_client.sanitize_filename('sun.gif')).to eq('sun.gif')
|
214
|
-
expect(api_client.sanitize_filename('../sun.gif')).to eq('sun.gif')
|
215
|
-
expect(api_client.sanitize_filename('/var/tmp/sun.gif')).to eq('sun.gif')
|
216
|
-
expect(api_client.sanitize_filename('./sun.gif')).to eq('sun.gif')
|
217
|
-
expect(api_client.sanitize_filename('..\sun.gif')).to eq('sun.gif')
|
218
|
-
expect(api_client.sanitize_filename('\var\tmp\sun.gif')).to eq('sun.gif')
|
219
|
-
expect(api_client.sanitize_filename('c:\var\tmp\sun.gif')).to eq('sun.gif')
|
220
|
-
expect(api_client.sanitize_filename('.\sun.gif')).to eq('sun.gif')
|
221
|
-
end
|
222
|
-
end
|
223
|
-
end
|
data/spec/configuration_spec.rb
DELETED
@@ -1,82 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#Songtradr API
|
3
|
-
|
4
|
-
#This is the Songtradr API. Use it to retrieve deep music metadata and trigger processes like auto-tagging. You can also use the API to manage your account and musicube cloud data. **Authentication** 1. Reach out to support@songtradr.com to receive a free account or use your login data if you are already signed up. 2. To authenticate, you need to login via the POST /api/v1/user/login endpoint. 3. The endpoint responds with a jwtToken which you can use in all following API requests as a bearer token. **Rate Limiting** The current limit is 120 Requests per minute. Reach out to us via support@songtradr.com if you need to request more. **Getting Started with auto-tagging** 1. If you want to get your own files auto-tagged, use the POST /api/v1/user/file/{name}/initUpload endpoint. It responds with a presigned S3 link where you can upload your file. 2. You can check the processing status of your file via the GET /api/v1/user/file/{name}/filesStatus endpoint. 3. As soon as processing is done, you can request the generated data via the GET /api/v1/user/files endpoint. **Getting Started with search** You can either search the released music via the /public/recording endpoints or your own private uploaded music via the /user/file/ endpoints. 1. If you want to search the world's released music, a good starting point is the GET /api/v1/public/recording/search endpoint. Please find the extensive list of parameters that serve as semantic search filters. 2. If you want to search your own previously uploaded music, a good starting point is the GET GET /api/v1/user/files endpoint. It has the same extensive list of parameters that serve as semantic search filters.
|
5
|
-
|
6
|
-
The version of the OpenAPI document: 1.16.0
|
7
|
-
Contact: info@songtradr.com
|
8
|
-
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 7.2.0-SNAPSHOT
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'spec_helper'
|
14
|
-
|
15
|
-
describe SongtradrApiClientRuby::Configuration do
|
16
|
-
let(:config) { SongtradrApiClientRuby::Configuration.default }
|
17
|
-
|
18
|
-
before(:each) do
|
19
|
-
# uncomment below to setup host and base_path
|
20
|
-
# require 'URI'
|
21
|
-
# uri = URI.parse("https://api.songtradr.com")
|
22
|
-
# SongtradrApiClientRuby.configure do |c|
|
23
|
-
# c.host = uri.host
|
24
|
-
# c.base_path = uri.path
|
25
|
-
# end
|
26
|
-
end
|
27
|
-
|
28
|
-
describe '#base_url' do
|
29
|
-
it 'should have the default value' do
|
30
|
-
# uncomment below to test default value of the base path
|
31
|
-
# expect(config.base_url).to eq("https://api.songtradr.com")
|
32
|
-
end
|
33
|
-
|
34
|
-
it 'should remove trailing slashes' do
|
35
|
-
[nil, '', '/', '//'].each do |base_path|
|
36
|
-
config.base_path = base_path
|
37
|
-
# uncomment below to test trailing slashes
|
38
|
-
# expect(config.base_url).to eq("https://api.songtradr.com")
|
39
|
-
end
|
40
|
-
end
|
41
|
-
end
|
42
|
-
|
43
|
-
describe '#configure_faraday_connection' do
|
44
|
-
let(:faraday_connection) { Faraday::Connection.new }
|
45
|
-
|
46
|
-
before do
|
47
|
-
stub_const('CustomAdapter', Class.new(Faraday::Adapter))
|
48
|
-
stub_const('AnotherCustomAdapter', Class.new(Faraday::Adapter))
|
49
|
-
|
50
|
-
config.configure_faraday_connection do |conn|
|
51
|
-
conn.adapter CustomAdapter
|
52
|
-
conn.response :logger, nil, headers: true, bodies: true, log_level: :debug do |logger|
|
53
|
-
logger.filter(/(Authorization: )(.*)/, '\1[REDACTED]')
|
54
|
-
end
|
55
|
-
end
|
56
|
-
end
|
57
|
-
|
58
|
-
it 'adds a block that will be used to configure the connection' do
|
59
|
-
expect(faraday_connection.adapter).to eq(Faraday::Adapter::NetHttp)
|
60
|
-
expect(faraday_connection.builder.handlers).to_not include(Faraday::Response::Logger)
|
61
|
-
|
62
|
-
config.configure_connection(faraday_connection)
|
63
|
-
|
64
|
-
expect(faraday_connection.adapter).to eq(CustomAdapter)
|
65
|
-
expect(faraday_connection.builder.handlers).to include(Faraday::Response::Logger)
|
66
|
-
end
|
67
|
-
|
68
|
-
it 'supports multiple configuration blocks' do
|
69
|
-
config.configure_faraday_connection do |conn|
|
70
|
-
conn.adapter AnotherCustomAdapter
|
71
|
-
end
|
72
|
-
|
73
|
-
expect(faraday_connection.adapter).to eq(Faraday::Adapter::NetHttp)
|
74
|
-
expect(faraday_connection.builder.handlers).to_not include(Faraday::Response::Logger)
|
75
|
-
|
76
|
-
config.configure_connection(faraday_connection)
|
77
|
-
|
78
|
-
expect(faraday_connection.adapter).to eq(AnotherCustomAdapter)
|
79
|
-
expect(faraday_connection.builder.handlers).to include(Faraday::Response::Logger)
|
80
|
-
end
|
81
|
-
end
|
82
|
-
end
|
@@ -1,42 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#Songtradr API
|
3
|
-
|
4
|
-
#This is the Songtradr API. Use it to retrieve deep music metadata and trigger processes like auto-tagging. You can also use the API to manage your account and musicube cloud data. **Authentication** 1. Reach out to support@songtradr.com to receive a free account or use your login data if you are already signed up. 2. To authenticate, you need to login via the POST /api/v1/user/login endpoint. 3. The endpoint responds with a jwtToken which you can use in all following API requests as a bearer token. **Rate Limiting** The current limit is 120 Requests per minute. Reach out to us via support@songtradr.com if you need to request more. **Getting Started with auto-tagging** 1. If you want to get your own files auto-tagged, use the POST /api/v1/user/file/{name}/initUpload endpoint. It responds with a presigned S3 link where you can upload your file. 2. You can check the processing status of your file via the GET /api/v1/user/file/{name}/filesStatus endpoint. 3. As soon as processing is done, you can request the generated data via the GET /api/v1/user/files endpoint. **Getting Started with search** You can either search the released music via the /public/recording endpoints or your own private uploaded music via the /user/file/ endpoints. 1. If you want to search the world's released music, a good starting point is the GET /api/v1/public/recording/search endpoint. Please find the extensive list of parameters that serve as semantic search filters. 2. If you want to search your own previously uploaded music, a good starting point is the GET GET /api/v1/user/files endpoint. It has the same extensive list of parameters that serve as semantic search filters.
|
5
|
-
|
6
|
-
The version of the OpenAPI document: 1.16.0
|
7
|
-
Contact: info@songtradr.com
|
8
|
-
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 7.2.0-SNAPSHOT
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'spec_helper'
|
14
|
-
require 'json'
|
15
|
-
require 'date'
|
16
|
-
|
17
|
-
# Unit tests for SongtradrApiClientRuby::AgeRange
|
18
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
-
# Please update as you see appropriate
|
20
|
-
describe SongtradrApiClientRuby::AgeRange do
|
21
|
-
let(:instance) { SongtradrApiClientRuby::AgeRange.new }
|
22
|
-
|
23
|
-
describe 'test an instance of AgeRange' do
|
24
|
-
it 'should create an instance of AgeRange' do
|
25
|
-
# uncomment below to test the instance creation
|
26
|
-
#expect(instance).to be_instance_of(SongtradrApiClientRuby::AgeRange)
|
27
|
-
end
|
28
|
-
end
|
29
|
-
|
30
|
-
describe 'test attribute "low"' 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 "high"' 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
|
data/spec/models/beard_spec.rb
DELETED
@@ -1,42 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#Songtradr API
|
3
|
-
|
4
|
-
#This is the Songtradr API. Use it to retrieve deep music metadata and trigger processes like auto-tagging. You can also use the API to manage your account and musicube cloud data. **Authentication** 1. Reach out to support@songtradr.com to receive a free account or use your login data if you are already signed up. 2. To authenticate, you need to login via the POST /api/v1/user/login endpoint. 3. The endpoint responds with a jwtToken which you can use in all following API requests as a bearer token. **Rate Limiting** The current limit is 120 Requests per minute. Reach out to us via support@songtradr.com if you need to request more. **Getting Started with auto-tagging** 1. If you want to get your own files auto-tagged, use the POST /api/v1/user/file/{name}/initUpload endpoint. It responds with a presigned S3 link where you can upload your file. 2. You can check the processing status of your file via the GET /api/v1/user/file/{name}/filesStatus endpoint. 3. As soon as processing is done, you can request the generated data via the GET /api/v1/user/files endpoint. **Getting Started with search** You can either search the released music via the /public/recording endpoints or your own private uploaded music via the /user/file/ endpoints. 1. If you want to search the world's released music, a good starting point is the GET /api/v1/public/recording/search endpoint. Please find the extensive list of parameters that serve as semantic search filters. 2. If you want to search your own previously uploaded music, a good starting point is the GET GET /api/v1/user/files endpoint. It has the same extensive list of parameters that serve as semantic search filters.
|
5
|
-
|
6
|
-
The version of the OpenAPI document: 1.16.0
|
7
|
-
Contact: info@songtradr.com
|
8
|
-
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 7.2.0-SNAPSHOT
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'spec_helper'
|
14
|
-
require 'json'
|
15
|
-
require 'date'
|
16
|
-
|
17
|
-
# Unit tests for SongtradrApiClientRuby::Beard
|
18
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
-
# Please update as you see appropriate
|
20
|
-
describe SongtradrApiClientRuby::Beard do
|
21
|
-
let(:instance) { SongtradrApiClientRuby::Beard.new }
|
22
|
-
|
23
|
-
describe 'test an instance of Beard' do
|
24
|
-
it 'should create an instance of Beard' do
|
25
|
-
# uncomment below to test the instance creation
|
26
|
-
#expect(instance).to be_instance_of(SongtradrApiClientRuby::Beard)
|
27
|
-
end
|
28
|
-
end
|
29
|
-
|
30
|
-
describe 'test attribute "value"' 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 "confidence"' 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
|
@@ -1,54 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#Songtradr API
|
3
|
-
|
4
|
-
#This is the Songtradr API. Use it to retrieve deep music metadata and trigger processes like auto-tagging. You can also use the API to manage your account and musicube cloud data. **Authentication** 1. Reach out to support@songtradr.com to receive a free account or use your login data if you are already signed up. 2. To authenticate, you need to login via the POST /api/v1/user/login endpoint. 3. The endpoint responds with a jwtToken which you can use in all following API requests as a bearer token. **Rate Limiting** The current limit is 120 Requests per minute. Reach out to us via support@songtradr.com if you need to request more. **Getting Started with auto-tagging** 1. If you want to get your own files auto-tagged, use the POST /api/v1/user/file/{name}/initUpload endpoint. It responds with a presigned S3 link where you can upload your file. 2. You can check the processing status of your file via the GET /api/v1/user/file/{name}/filesStatus endpoint. 3. As soon as processing is done, you can request the generated data via the GET /api/v1/user/files endpoint. **Getting Started with search** You can either search the released music via the /public/recording endpoints or your own private uploaded music via the /user/file/ endpoints. 1. If you want to search the world's released music, a good starting point is the GET /api/v1/public/recording/search endpoint. Please find the extensive list of parameters that serve as semantic search filters. 2. If you want to search your own previously uploaded music, a good starting point is the GET GET /api/v1/user/files endpoint. It has the same extensive list of parameters that serve as semantic search filters.
|
5
|
-
|
6
|
-
The version of the OpenAPI document: 1.16.0
|
7
|
-
Contact: info@songtradr.com
|
8
|
-
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 7.2.0-SNAPSHOT
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'spec_helper'
|
14
|
-
require 'json'
|
15
|
-
require 'date'
|
16
|
-
|
17
|
-
# Unit tests for SongtradrApiClientRuby::BoundingBox
|
18
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
-
# Please update as you see appropriate
|
20
|
-
describe SongtradrApiClientRuby::BoundingBox do
|
21
|
-
let(:instance) { SongtradrApiClientRuby::BoundingBox.new }
|
22
|
-
|
23
|
-
describe 'test an instance of BoundingBox' do
|
24
|
-
it 'should create an instance of BoundingBox' do
|
25
|
-
# uncomment below to test the instance creation
|
26
|
-
#expect(instance).to be_instance_of(SongtradrApiClientRuby::BoundingBox)
|
27
|
-
end
|
28
|
-
end
|
29
|
-
|
30
|
-
describe 'test attribute "width"' 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 "height"' 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 "left"' 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
|
-
describe 'test attribute "top"' do
|
49
|
-
it 'should work' do
|
50
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
51
|
-
end
|
52
|
-
end
|
53
|
-
|
54
|
-
end
|
@@ -1,72 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#Songtradr API
|
3
|
-
|
4
|
-
#This is the Songtradr API. Use it to retrieve deep music metadata and trigger processes like auto-tagging. You can also use the API to manage your account and musicube cloud data. **Authentication** 1. Reach out to support@songtradr.com to receive a free account or use your login data if you are already signed up. 2. To authenticate, you need to login via the POST /api/v1/user/login endpoint. 3. The endpoint responds with a jwtToken which you can use in all following API requests as a bearer token. **Rate Limiting** The current limit is 120 Requests per minute. Reach out to us via support@songtradr.com if you need to request more. **Getting Started with auto-tagging** 1. If you want to get your own files auto-tagged, use the POST /api/v1/user/file/{name}/initUpload endpoint. It responds with a presigned S3 link where you can upload your file. 2. You can check the processing status of your file via the GET /api/v1/user/file/{name}/filesStatus endpoint. 3. As soon as processing is done, you can request the generated data via the GET /api/v1/user/files endpoint. **Getting Started with search** You can either search the released music via the /public/recording endpoints or your own private uploaded music via the /user/file/ endpoints. 1. If you want to search the world's released music, a good starting point is the GET /api/v1/public/recording/search endpoint. Please find the extensive list of parameters that serve as semantic search filters. 2. If you want to search your own previously uploaded music, a good starting point is the GET GET /api/v1/user/files endpoint. It has the same extensive list of parameters that serve as semantic search filters.
|
5
|
-
|
6
|
-
The version of the OpenAPI document: 1.16.0
|
7
|
-
Contact: info@songtradr.com
|
8
|
-
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 7.2.0-SNAPSHOT
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'spec_helper'
|
14
|
-
require 'json'
|
15
|
-
require 'date'
|
16
|
-
|
17
|
-
# Unit tests for SongtradrApiClientRuby::DominantColor
|
18
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
-
# Please update as you see appropriate
|
20
|
-
describe SongtradrApiClientRuby::DominantColor do
|
21
|
-
let(:instance) { SongtradrApiClientRuby::DominantColor.new }
|
22
|
-
|
23
|
-
describe 'test an instance of DominantColor' do
|
24
|
-
it 'should create an instance of DominantColor' do
|
25
|
-
# uncomment below to test the instance creation
|
26
|
-
#expect(instance).to be_instance_of(SongtradrApiClientRuby::DominantColor)
|
27
|
-
end
|
28
|
-
end
|
29
|
-
|
30
|
-
describe 'test attribute "red"' 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 "blue"' 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 "green"' 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
|
-
describe 'test attribute "hex_code"' do
|
49
|
-
it 'should work' do
|
50
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
51
|
-
end
|
52
|
-
end
|
53
|
-
|
54
|
-
describe 'test attribute "simplified_color"' 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
|
-
describe 'test attribute "pixel_percent"' do
|
61
|
-
it 'should work' do
|
62
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
63
|
-
end
|
64
|
-
end
|
65
|
-
|
66
|
-
describe 'test attribute "csscolor"' do
|
67
|
-
it 'should work' do
|
68
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
69
|
-
end
|
70
|
-
end
|
71
|
-
|
72
|
-
end
|
data/spec/models/emotion_spec.rb
DELETED
@@ -1,42 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#Songtradr API
|
3
|
-
|
4
|
-
#This is the Songtradr API. Use it to retrieve deep music metadata and trigger processes like auto-tagging. You can also use the API to manage your account and musicube cloud data. **Authentication** 1. Reach out to support@songtradr.com to receive a free account or use your login data if you are already signed up. 2. To authenticate, you need to login via the POST /api/v1/user/login endpoint. 3. The endpoint responds with a jwtToken which you can use in all following API requests as a bearer token. **Rate Limiting** The current limit is 120 Requests per minute. Reach out to us via support@songtradr.com if you need to request more. **Getting Started with auto-tagging** 1. If you want to get your own files auto-tagged, use the POST /api/v1/user/file/{name}/initUpload endpoint. It responds with a presigned S3 link where you can upload your file. 2. You can check the processing status of your file via the GET /api/v1/user/file/{name}/filesStatus endpoint. 3. As soon as processing is done, you can request the generated data via the GET /api/v1/user/files endpoint. **Getting Started with search** You can either search the released music via the /public/recording endpoints or your own private uploaded music via the /user/file/ endpoints. 1. If you want to search the world's released music, a good starting point is the GET /api/v1/public/recording/search endpoint. Please find the extensive list of parameters that serve as semantic search filters. 2. If you want to search your own previously uploaded music, a good starting point is the GET GET /api/v1/user/files endpoint. It has the same extensive list of parameters that serve as semantic search filters.
|
5
|
-
|
6
|
-
The version of the OpenAPI document: 1.16.0
|
7
|
-
Contact: info@songtradr.com
|
8
|
-
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 7.2.0-SNAPSHOT
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'spec_helper'
|
14
|
-
require 'json'
|
15
|
-
require 'date'
|
16
|
-
|
17
|
-
# Unit tests for SongtradrApiClientRuby::Emotion
|
18
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
-
# Please update as you see appropriate
|
20
|
-
describe SongtradrApiClientRuby::Emotion do
|
21
|
-
let(:instance) { SongtradrApiClientRuby::Emotion.new }
|
22
|
-
|
23
|
-
describe 'test an instance of Emotion' do
|
24
|
-
it 'should create an instance of Emotion' do
|
25
|
-
# uncomment below to test the instance creation
|
26
|
-
#expect(instance).to be_instance_of(SongtradrApiClientRuby::Emotion)
|
27
|
-
end
|
28
|
-
end
|
29
|
-
|
30
|
-
describe 'test attribute "type"' 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 "confidence"' 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
|
@@ -1,48 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#Songtradr API
|
3
|
-
|
4
|
-
#This is the Songtradr API. Use it to retrieve deep music metadata and trigger processes like auto-tagging. You can also use the API to manage your account and musicube cloud data. **Authentication** 1. Reach out to support@songtradr.com to receive a free account or use your login data if you are already signed up. 2. To authenticate, you need to login via the POST /api/v1/user/login endpoint. 3. The endpoint responds with a jwtToken which you can use in all following API requests as a bearer token. **Rate Limiting** The current limit is 120 Requests per minute. Reach out to us via support@songtradr.com if you need to request more. **Getting Started with auto-tagging** 1. If you want to get your own files auto-tagged, use the POST /api/v1/user/file/{name}/initUpload endpoint. It responds with a presigned S3 link where you can upload your file. 2. You can check the processing status of your file via the GET /api/v1/user/file/{name}/filesStatus endpoint. 3. As soon as processing is done, you can request the generated data via the GET /api/v1/user/files endpoint. **Getting Started with search** You can either search the released music via the /public/recording endpoints or your own private uploaded music via the /user/file/ endpoints. 1. If you want to search the world's released music, a good starting point is the GET /api/v1/public/recording/search endpoint. Please find the extensive list of parameters that serve as semantic search filters. 2. If you want to search your own previously uploaded music, a good starting point is the GET GET /api/v1/user/files endpoint. It has the same extensive list of parameters that serve as semantic search filters.
|
5
|
-
|
6
|
-
The version of the OpenAPI document: 1.16.0
|
7
|
-
Contact: info@songtradr.com
|
8
|
-
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 7.2.0-SNAPSHOT
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'spec_helper'
|
14
|
-
require 'json'
|
15
|
-
require 'date'
|
16
|
-
|
17
|
-
# Unit tests for SongtradrApiClientRuby::EyeDirection
|
18
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
-
# Please update as you see appropriate
|
20
|
-
describe SongtradrApiClientRuby::EyeDirection do
|
21
|
-
let(:instance) { SongtradrApiClientRuby::EyeDirection.new }
|
22
|
-
|
23
|
-
describe 'test an instance of EyeDirection' do
|
24
|
-
it 'should create an instance of EyeDirection' do
|
25
|
-
# uncomment below to test the instance creation
|
26
|
-
#expect(instance).to be_instance_of(SongtradrApiClientRuby::EyeDirection)
|
27
|
-
end
|
28
|
-
end
|
29
|
-
|
30
|
-
describe 'test attribute "yaw"' 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 "pitch"' 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 "confidence"' 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
|