rail-locator-api 1.0.16 → 1.0.17

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6fa26e287bbf1e8327473419affda7a3ddfa8018d27869348468c079702f3a8e
4
- data.tar.gz: 7562afc27ee24ba57792c11dcc92779932457a13c8d914a73e5100936c18dd50
3
+ metadata.gz: 3ecb5cb1204014eceb1b9078581d3087cc654bac09651346ad9400e565cb59b7
4
+ data.tar.gz: 903f53daec2bf659b6275e570157697a2eef5d8ae7dfe0cd225514137a248392
5
5
  SHA512:
6
- metadata.gz: 6aa2591702393fc54bf38267e8fe5616ffb98457d70dfcfc583ec6ba947d8e8042cb2a96b4a593ae41c6aab2442028ea27c4e4536e58db4fa0d76630ddfb6772
7
- data.tar.gz: 9ca8da23eb5bb6a6222bcc293dc37948caccdeaa5c55865f308c3524773de2dc165373e6daafa03451fc7d5ccb8afb17c65283da29effa844249000ea8edb116
6
+ metadata.gz: 133889e2f13630c3db16f2acad96df608b8deb4c6596ca5a5e353648b017d0e22b006b6c17764d0af7d7f44fd70287b4eeb6a00378d277032978b9fd53eb1272
7
+ data.tar.gz: 3207f49bb24d1dabd2a74e421c8909b3186e94153dc300ce18aecbf724167f50218f025445a06e0dda8cb32047d3af285b37e175bc963cdd0e392ee4e08d6c04
data/README.markdown CHANGED
@@ -48,7 +48,7 @@ API wrapper для RailLocator API v2
48
48
 
49
49
  # <a name="install"></a> Установка
50
50
 
51
- Для авторизации по api key необходимо получить его [в личном кабинете локатора](https://rail-locator.com/app/api-keys)
51
+ Для авторизации по api key необходимо получить его [в личном кабинете локатора](https://rail-scan.com/app/api-keys)
52
52
  или в телеграм боте [@RailLocatorApiBot](https://t.me/RailLocatorApiBot)
53
53
 
54
54
  либо использовать другие методы авторизации:
@@ -123,7 +123,7 @@ RailLocatorApi::Request.logger = MyLogger.new
123
123
 
124
124
  # <a name="examples"></a> Примеры
125
125
  ## <a name="tracks"></a> Дислокация
126
- ### <a name="tracks_dislocation_get"></a> [Получение Списка Треков](https://rail-locator.com/api/v2.0/redoc#tag/Dislokaciya/operation/________________________tracks_dislocation_get)
126
+ ### <a name="tracks_dislocation_get"></a> [Получение Списка Треков](https://rail-scan.com/api/v2.0/redoc#tag/Dislokaciya/operation/________________________tracks_dislocation_get)
127
127
  ```ruby
128
128
  request = {
129
129
  "limit": 100,
@@ -170,7 +170,7 @@ response = RailLocatorApi::Request.tracks.dislocation.retrieve(body: request)
170
170
  p response.body
171
171
  ```
172
172
 
173
- ### <a name="tracks_dislocation_post"></a> [Постановка На Слежение](https://rail-locator.com/api/v2.0/redoc#tag/Dislokaciya/operation/_______________________tracks_dislocation_post)
173
+ ### <a name="tracks_dislocation_post"></a> [Постановка На Слежение](https://rail-scan.com/api/v2.0/redoc#tag/Dislokaciya/operation/_______________________tracks_dislocation_post)
174
174
 
175
175
  ```ruby
176
176
  request = [
@@ -186,7 +186,7 @@ response = RailLocatorApi::Request.tracks.dislocation.create(body: request)
186
186
  p response.body
187
187
  ```
188
188
 
189
- ### <a name="tracks_dislocation_batch_get"></a> [Получение Дислокации По Нескольким Трекам](https://rail-locator.com/api/v2.0/redoc#tag/Dislokaciya/operation/__________________________________________tracks_dislocation_batch_get)
189
+ ### <a name="tracks_dislocation_batch_get"></a> [Получение Дислокации По Нескольким Трекам](https://rail-scan.com/api/v2.0/redoc#tag/Dislokaciya/operation/__________________________________________tracks_dislocation_batch_get)
190
190
 
191
191
  ```ruby
192
192
  request = {
@@ -199,7 +199,7 @@ response = RailLocatorApi::Request.tracks.dislocation.history.retrieve(body: req
199
199
  p response.body
200
200
  ```
201
201
 
202
- ### <a name="tracks_dislocation_route_info_get"></a> [Получение Информации О Маршруте](https://rail-locator.com/api/v2.0/redoc#tag/Dislokaciya/operation/________________________________tracks_dislocation_route_info_get)
202
+ ### <a name="tracks_dislocation_route_info_get"></a> [Получение Информации О Маршруте](https://rail-scan.com/api/v2.0/redoc#tag/Dislokaciya/operation/________________________________tracks_dislocation_route_info_get)
203
203
 
204
204
  ```ruby
205
205
  track_id = 1
@@ -207,7 +207,7 @@ response = RailLocatorApi::Request.tracks.dislocation(track_id).route.retrieve
207
207
  p response.body
208
208
  ```
209
209
 
210
- ### <a name="tracks_dislocation__track_id__get"></a> [Получение Дислокации По Одному Треку](https://rail-locator.com/api/v2.0/redoc#tag/Dislokaciya/operation/_____________________________________tracks_dislocation__track_id__get)
210
+ ### <a name="tracks_dislocation__track_id__get"></a> [Получение Дислокации По Одному Треку](https://rail-scan.com/api/v2.0/redoc#tag/Dislokaciya/operation/_____________________________________tracks_dislocation__track_id__get)
211
211
 
212
212
  ```ruby
213
213
  track_id = 1
@@ -217,7 +217,7 @@ p response.body
217
217
 
218
218
  ## <a name="inquiries"></a> Справки
219
219
 
220
- ### <a name="tracks_inquiries_get"></a> [Получение Справок](https://rail-locator.com/api/v2.0/redoc#tag/Spravki/operation/__________________tracks_inquiries_get)
220
+ ### <a name="tracks_inquiries_get"></a> [Получение Справок](https://rail-scan.com/api/v2.0/redoc#tag/Spravki/operation/__________________tracks_inquiries_get)
221
221
  ```ruby
222
222
  request = {
223
223
  "limit": 100,
@@ -264,7 +264,7 @@ response = RailLocatorApi::Request.tracks.inquiries.retrieve(body: request)
264
264
  p response.body
265
265
  ```
266
266
 
267
- ### <a name="tracks_inquiries_post"></a> [Постановка На Слежение](https://rail-locator.com/api/v2.0/redoc#tag/Spravki/operation/_______________________tracks_inquiries_post)
267
+ ### <a name="tracks_inquiries_post"></a> [Постановка На Слежение](https://rail-scan.com/api/v2.0/redoc#tag/Spravki/operation/_______________________tracks_inquiries_post)
268
268
  ```ruby
269
269
  request = [
270
270
  {
@@ -276,7 +276,7 @@ response = RailLocatorApi::Request.tracks.inquiries.create(body: request)
276
276
  p response.body
277
277
  ```
278
278
 
279
- ### <a name="tracks_inquiries__track_id__get"></a> [Получение Справки](https://rail-locator.com/api/v2.0/redoc#tag/Spravki/operation/__________________tracks_inquiries__track_id__get)
279
+ ### <a name="tracks_inquiries__track_id__get"></a> [Получение Справки](https://rail-scan.com/api/v2.0/redoc#tag/Spravki/operation/__________________tracks_inquiries__track_id__get)
280
280
  ```ruby
281
281
  track_id = 1
282
282
  response = RailLocatorApi::Request.tracks.inquiries(track_id).retrieve
@@ -284,7 +284,7 @@ p response.body
284
284
  ```
285
285
 
286
286
  ## <a name="approaches"></a> Подходы
287
- ### <a name="tracks_approaches_post"></a> [Постановка На Слежение](https://rail-locator.com/api/v2.0/redoc#tag/Podhody/operation/_______________________tracks_approaches_post)
287
+ ### <a name="tracks_approaches_post"></a> [Постановка На Слежение](https://rail-scan.com/api/v2.0/redoc#tag/Podhody/operation/_______________________tracks_approaches_post)
288
288
  ```ruby
289
289
  request = [
290
290
  {
@@ -304,7 +304,7 @@ p response.body
304
304
  ```
305
305
 
306
306
  ## <a name="tech_passport"></a> Тех. паспорт вагона
307
- ### <a name="tracks_tech_passport_batch_get"></a> [Получение Тех. Паспортов](https://rail-locator.com/api/v2.0/redoc#tag/Teh.-pasport-vagona/operation/_________________________tracks_tech_passport_batch_get)
307
+ ### <a name="tracks_tech_passport_batch_get"></a> [Получение Тех. Паспортов](https://rail-scan.com/api/v2.0/redoc#tag/Teh.-pasport-vagona/operation/_________________________tracks_tech_passport_batch_get)
308
308
  ```ruby
309
309
  request = {
310
310
  "track_ids": [
@@ -315,7 +315,7 @@ request = {
315
315
  response = RailLocatorApi::Request.tracks.dislocation.tech_passports.retrieve(body: request)
316
316
  p response.body
317
317
  ```
318
- ### <a name="tracks_tech_passport__track_id__get"></a> [Получение Тех. Паспорта](https://rail-locator.com/api/v2.0/redoc#tag/Teh.-pasport-vagona/operation/_________________________tracks_tech_passport__track_id__get)
318
+ ### <a name="tracks_tech_passport__track_id__get"></a> [Получение Тех. Паспорта](https://rail-scan.com/api/v2.0/redoc#tag/Teh.-pasport-vagona/operation/_________________________tracks_tech_passport__track_id__get)
319
319
  ```ruby
320
320
  track_id = 1
321
321
  response = RailLocatorApi::Request.tracks.dislocation(track_id).tech_passports.retrieve
@@ -323,7 +323,7 @@ p response.body
323
323
  ```
324
324
 
325
325
  ## <a name="tech_condition"></a> Контроль тех. состояния
326
- ### <a name="tracks_tech_condition_get"></a> [Получение Тех. Состояния](https://rail-locator.com/api/v2.0/redoc#tag/Kontrol-teh.-sostoyaniya/operation/_________________________tracks_tech_condition_get)
326
+ ### <a name="tracks_tech_condition_get"></a> [Получение Тех. Состояния](https://rail-scan.com/api/v2.0/redoc#tag/Kontrol-teh.-sostoyaniya/operation/_________________________tracks_tech_condition_get)
327
327
  ```ruby
328
328
  request = {
329
329
  "limit": 100,
@@ -370,7 +370,7 @@ response = RailLocatorApi::Request.tracks.tech_condition.retrieve(body: request)
370
370
  p response.body
371
371
  ```
372
372
 
373
- ### <a name="tracks_tech_condition_post"></a> [Постановка На Слежение](https://rail-locator.com/api/v2.0/redoc#tag/Kontrol-teh.-sostoyaniya/operation/_______________________tracks_tech_condition_post)
373
+ ### <a name="tracks_tech_condition_post"></a> [Постановка На Слежение](https://rail-scan.com/api/v2.0/redoc#tag/Kontrol-teh.-sostoyaniya/operation/_______________________tracks_tech_condition_post)
374
374
 
375
375
  ```ruby
376
376
  request = [
@@ -383,7 +383,7 @@ p response.body
383
383
  ```
384
384
 
385
385
  ## <a name="update_delete_tracks"></a> Изменение/Снятие треков
386
- ### <a name="tracks_batch_delete"></a> [Снятие Со Слежения Нескольких Треков](https://rail-locator.com/api/v2.0/redoc#tag/IzmenenieSnyatie-trekov/operation/_____________________________________tracks_batch_delete)
386
+ ### <a name="tracks_batch_delete"></a> [Снятие Со Слежения Нескольких Треков](https://rail-scan.com/api/v2.0/redoc#tag/IzmenenieSnyatie-trekov/operation/_____________________________________tracks_batch_delete)
387
387
  ```ruby
388
388
  request = {
389
389
  "track_ids": [
@@ -395,7 +395,7 @@ response = RailLocatorApi::Request.tracks.batch.delete(body: request)
395
395
  p response.body
396
396
  ```
397
397
 
398
- ### <a name="tracks_batch_patch"></a> [Изменение Информации О Нескольких Треках](https://rail-locator.com/api/v2.0/redoc#tag/IzmenenieSnyatie-trekov/operation/_________________________________________tracks_batch_patch)
398
+ ### <a name="tracks_batch_patch"></a> [Изменение Информации О Нескольких Треках](https://rail-scan.com/api/v2.0/redoc#tag/IzmenenieSnyatie-trekov/operation/_________________________________________tracks_batch_patch)
399
399
  ```ruby
400
400
  request = [
401
401
  {
@@ -407,14 +407,14 @@ response = RailLocatorApi::Request.tracks.batch.update(body: request)
407
407
  p response.body
408
408
  ```
409
409
 
410
- ### <a name="tracks__track_id__delete"></a> [Снятие Со Слежения Одного Трека](https://rail-locator.com/api/v2.0/redoc#tag/IzmenenieSnyatie-trekov/operation/________________________________tracks__track_id__delete)
410
+ ### <a name="tracks__track_id__delete"></a> [Снятие Со Слежения Одного Трека](https://rail-scan.com/api/v2.0/redoc#tag/IzmenenieSnyatie-trekov/operation/________________________________tracks__track_id__delete)
411
411
  ```ruby
412
412
  track_id = 1
413
413
  response = RailLocatorApi::Request.tracks(track_id).delete
414
414
  p response.body
415
415
  ```
416
416
 
417
- ### <a name="tracks__track_id__patch"></a> [Изменение Информации О Треке](https://rail-locator.com/api/v2.0/redoc#tag/IzmenenieSnyatie-trekov/operation/_____________________________tracks__track_id__patch)
417
+ ### <a name="tracks__track_id__patch"></a> [Изменение Информации О Треке](https://rail-scan.com/api/v2.0/redoc#tag/IzmenenieSnyatie-trekov/operation/_____________________________tracks__track_id__patch)
418
418
  ```ruby
419
419
  track_id = 1
420
420
  request = {
@@ -425,12 +425,12 @@ p response.body
425
425
  ```
426
426
 
427
427
  ## <a name="groups"></a> Группы
428
- ### <a name="groups_get"></a> [Получение Списка Групп](https://rail-locator.com/api/v2.0/redoc#tag/Gruppy/operation/_______________________groups_get)
428
+ ### <a name="groups_get"></a> [Получение Списка Групп](https://rail-scan.com/api/v2.0/redoc#tag/Gruppy/operation/_______________________groups_get)
429
429
  ```ruby
430
430
  response = RailLocatorApi::Request.groups.retrieve
431
431
  p response.body
432
432
  ```
433
- ### <a name="groups_post"></a> [Создание Группы](https://rail-locator.com/api/v2.0/redoc#tag/Gruppy/operation/________________groups_post)
433
+ ### <a name="groups_post"></a> [Создание Группы](https://rail-scan.com/api/v2.0/redoc#tag/Gruppy/operation/________________groups_post)
434
434
  ```ruby
435
435
  request = {
436
436
  "group_name": "Название новой группы"
@@ -438,13 +438,13 @@ request = {
438
438
  response = RailLocatorApi::Request.groups.create(body: request)
439
439
  p response.body
440
440
  ```
441
- ### <a name="groups__group_id__delete"></a> [Удаление Группы](https://rail-locator.com/api/v2.0/redoc#tag/Gruppy/operation/________________groups__group_id__delete)
441
+ ### <a name="groups__group_id__delete"></a> [Удаление Группы](https://rail-scan.com/api/v2.0/redoc#tag/Gruppy/operation/________________groups__group_id__delete)
442
442
  ```ruby
443
443
  group_id = 1
444
444
  response = RailLocatorApi::Request.groups(group_id).delete
445
445
  p response.body
446
446
  ```
447
- ### <a name="groups__group_id__patch"></a> [Изменение Группы](https://rail-locator.com/api/v2.0/redoc#tag/Gruppy/operation/_________________groups__group_id__patch)
447
+ ### <a name="groups__group_id__patch"></a> [Изменение Группы](https://rail-scan.com/api/v2.0/redoc#tag/Gruppy/operation/_________________groups__group_id__patch)
448
448
  ```ruby
449
449
  group_id = 1
450
450
  request = {
@@ -453,7 +453,7 @@ request = {
453
453
  response = RailLocatorApi::Request.groups(group_id).update(body: request)
454
454
  p response.body
455
455
  ```
456
- ### <a name="groups__group_id__cargo_transport_unit_number_batch_put"></a> [Добавление Вагона В Группу](https://rail-locator.com/api/v2.0/redoc#tag/Gruppy/operation/___________________________groups__group_id__cargo_transport_unit_number_batch_put)
456
+ ### <a name="groups__group_id__cargo_transport_unit_number_batch_put"></a> [Добавление Вагона В Группу](https://rail-scan.com/api/v2.0/redoc#tag/Gruppy/operation/___________________________groups__group_id__cargo_transport_unit_number_batch_put)
457
457
  ```ruby
458
458
  group_id = 1
459
459
  request = {
@@ -465,7 +465,7 @@ request = {
465
465
  response = RailLocatorApi::Request.groups(group_id).cargo_transport_unit_number.batch.update(body: request)
466
466
  p response.body
467
467
  ```
468
- ### <a name="groups__group_id__cargo_transport_unit_number_batch_delete"></a> [Удаление Вагонов Из Группы](https://rail-locator.com/api/v2.0/redoc#tag/Gruppy/operation/___________________________groups__group_id__cargo_transport_unit_number_batch_delete)
468
+ ### <a name="groups__group_id__cargo_transport_unit_number_batch_delete"></a> [Удаление Вагонов Из Группы](https://rail-scan.com/api/v2.0/redoc#tag/Gruppy/operation/___________________________groups__group_id__cargo_transport_unit_number_batch_delete)
469
469
  ```ruby
470
470
  group_id = 1
471
471
  request = {
@@ -477,14 +477,14 @@ request = {
477
477
  response = RailLocatorApi::Request.groups(group_id).cargo_transport_unit_number.batch.delete(body: request)
478
478
  p response.body
479
479
  ```
480
- ### <a name="groups__group_id__cargo_transport_unit_number__cargo_transport_unit_number__put"></a> [Добавление Вагона В Группу](https://rail-locator.com/api/v2.0/redoc#tag/Gruppy/operation/___________________________groups__group_id__cargo_transport_unit_number__cargo_transport_unit_number__put)
480
+ ### <a name="groups__group_id__cargo_transport_unit_number__cargo_transport_unit_number__put"></a> [Добавление Вагона В Группу](https://rail-scan.com/api/v2.0/redoc#tag/Gruppy/operation/___________________________groups__group_id__cargo_transport_unit_number__cargo_transport_unit_number__put)
481
481
  ```ruby
482
482
  group_id = 1
483
483
  cargo_transport_unit_number = "11111"
484
484
  response = RailLocatorApi::Request.groups(group_id).cargo_transport_unit_number(cargo_transport_unit_number).update
485
485
  p response.body
486
486
  ```
487
- ### <a name="groups__group_id__cargo_transport_unit_number__cargo_transport_unit_number__delete"></a> [Удаление Вагона Из Группы](https://rail-locator.com/api/v2.0/redoc#tag/Gruppy/operation/__________________________groups__group_id__cargo_transport_unit_number__cargo_transport_unit_number__delete)
487
+ ### <a name="groups__group_id__cargo_transport_unit_number__cargo_transport_unit_number__delete"></a> [Удаление Вагона Из Группы](https://rail-scan.com/api/v2.0/redoc#tag/Gruppy/operation/__________________________groups__group_id__cargo_transport_unit_number__cargo_transport_unit_number__delete)
488
488
  ```ruby
489
489
  group_id = 1
490
490
  cargo_transport_unit_number = "11111"
@@ -493,19 +493,19 @@ p response.body
493
493
  ```
494
494
 
495
495
  ## <a name="references"></a> Справочники
496
- ### <a name="references_station_get"></a> [Получение Координат Станции](https://rail-locator.com/api/v2.0/redoc#tag/Spravochniki/operation/____________________________references_station_get)
496
+ ### <a name="references_station_get"></a> [Получение Координат Станции](https://rail-scan.com/api/v2.0/redoc#tag/Spravochniki/operation/____________________________references_station_get)
497
497
  ```ruby
498
498
  response = RailLocatorApi::Request.references.station.retrieve(params: {disloc_id: 1})
499
499
  p response.body
500
500
  ```
501
501
 
502
- ### <a name="references_stations_get"></a> [Получение Списка Станций С Краткой Информацией](https://rail-locator.com/api/v2.0/redoc#tag/Spravochniki/operation/_______________________________________________references_stations_get)
502
+ ### <a name="references_stations_get"></a> [Получение Списка Станций С Краткой Информацией](https://rail-scan.com/api/v2.0/redoc#tag/Spravochniki/operation/_______________________________________________references_stations_get)
503
503
  ```ruby
504
504
  response = RailLocatorApi::Request.references.stations.retrieve(params: {station_code: "111"})
505
505
  p response.body
506
506
  ```
507
507
  ## <a name="emailings"></a> Рассылки
508
- ### <a name="emailings_post"></a> [Создание Рассылки](https://rail-locator.com/api/v2.0/redoc#tag/Rassylki/operation/__________________emailings_post)
508
+ ### <a name="emailings_post"></a> [Создание Рассылки](https://rail-scan.com/api/v2.0/redoc#tag/Rassylki/operation/__________________emailings_post)
509
509
 
510
510
  ```ruby
511
511
  request = {
@@ -1,5 +1,5 @@
1
1
  defaults: &defaults
2
- API_ENDPOINT: "https://rail-locator.com"
2
+ API_ENDPOINT: "https://rail-scan.com"
3
3
 
4
4
  API_AUTH_METHOD: "api_key"
5
5
  API_KEY: "***"
@@ -290,11 +290,11 @@ module RailLocatorApi
290
290
  end
291
291
 
292
292
  def lk_api_url
293
- "https://rail-locator.com/"
293
+ "https://rail-scan.com/"
294
294
  end
295
295
 
296
296
  def app_api_url
297
- "https://rail-locator.com/"
297
+ "https://rail-scan.com/"
298
298
  end
299
299
 
300
300
  def union_api_url
@@ -1,3 +1,3 @@
1
1
  module RailLocatorApi
2
- VERSION = "1.0.16"
2
+ VERSION = "1.0.17"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rail-locator-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.16
4
+ version: 1.0.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Osetrov
@@ -98,7 +98,7 @@ files:
98
98
  - lib/rail-locator-api/request.rb
99
99
  - lib/rail-locator-api/response.rb
100
100
  - lib/rail-locator-api/version.rb
101
- homepage: https://rail-locator.com/api/v2.0/redoc
101
+ homepage: https://rail-scan.com/api/v2.0/redoc
102
102
  licenses:
103
103
  - MIT
104
104
  metadata: {}