Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- GET /api/motion_groups/:motion_group_id/content.json
- Поиск
- query[filter][full_text_cont] = ...
- Фильтрация
- catalog_subject_id_eq - Предмет
- catalog_category_id_eq - Тип продукции
- catalog_publisher_id_eq - Издательство
- Пример ответа для открытой:
- {
- "catalogs": [{
- "id": 243,
- "title": "Технология. 1 класс",
- "cover": {
- "origin": {
- "id": "storage/cc18041211f064db726c3e3b8aa82d8792bd0041fdee4c9675320d3921b094bf/7706.png",
- "storage": "legacy_store",
- "metadata": {
- "size": 1092156,
- "filename": "7706.png",
- "mime_type": "image/png"
- },
- "url": "http://localhost:3000/storage/cc18041211f064db726c3e3b8aa82d8792bd0041fdee4c9675320d3921b094bf/7706.png"
- },
- "thumb": {
- "id": "storage/cc18041211f064db726c3e3b8aa82d8792bd0041fdee4c9675320d3921b094bf/7706.png",
- "storage": "legacy_store",
- "metadata": {
- "size": 1092156,
- "filename": "7706.png",
- "mime_type": "image/png"
- },
- "url": "http://localhost:3000/storage/cc18041211f064db726c3e3b8aa82d8792bd0041fdee4c9675320d3921b094bf/7706.png"
- },
- "thumb_with_watermark": {
- "id": "storage/cc18041211f064db726c3e3b8aa82d8792bd0041fdee4c9675320d3921b094bf/7706.png",
- "storage": "legacy_store",
- "metadata": {
- "size": 1092156,
- "filename": "7706.png",
- "mime_type": "image/png"
- },
- "url": "http://localhost:3000/storage/cc18041211f064db726c3e3b8aa82d8792bd0041fdee4c9675320d3921b094bf/7706.png"
- }
- },
- "published_year": 2015,
- "category": {
- "id": 1,
- "title": "Учебники",
- "external_id": 1,
- "slug": "efu",
- "is_public": true
- },
- "subject": {
- "id": 7,
- "title": "Технология",
- "is_public": 1
- },
- "publisher": {
- "id": 1,
- "title": "Дрофа",
- "is_public": true
- },
- "authors": [{
- "id": 401,
- "title": "Малышева Н.А.",
- "last_name": "Малышева",
- "first_name": "Н",
- "middle_name": "А",
- "is_public": true,
- "position": 0
- }]
- }],
- "usage_stats": {
- "used_count": 1,
- "total_count": 1
- },
- "total_count": 1
- }
- Пример ответа для фиксированной:
- {
- "catalogs": [{
- "catalog": {
- "id": 700,
- "title": "Английский язык. Rainbow English. 2 класс. Часть 2",
- "cover": {
- "origin": {
- "id": "storage/156284e7a10da83c1ea125478457be5b853871bacb337d6f24f7fbaeca490428/7796.jpg",
- "storage": "legacy_store",
- "metadata": {
- "size": 355162,
- "filename": "7796.jpg",
- "mime_type": "image/jpeg"
- },
- "url": "http://localhost:3000/storage/156284e7a10da83c1ea125478457be5b853871bacb337d6f24f7fbaeca490428/7796.jpg"
- },
- "thumb": {
- "id": "storage/156284e7a10da83c1ea125478457be5b853871bacb337d6f24f7fbaeca490428/7796.jpg",
- "storage": "legacy_store",
- "metadata": {
- "size": 355162,
- "filename": "7796.jpg",
- "mime_type": "image/jpeg"
- },
- "url": "http://localhost:3000/storage/156284e7a10da83c1ea125478457be5b853871bacb337d6f24f7fbaeca490428/7796.jpg"
- },
- "thumb_with_watermark": {
- "id": "storage/156284e7a10da83c1ea125478457be5b853871bacb337d6f24f7fbaeca490428/7796.jpg",
- "storage": "legacy_store",
- "metadata": {
- "size": 355162,
- "filename": "7796.jpg",
- "mime_type": "image/jpeg"
- },
- "url": "http://localhost:3000/storage/156284e7a10da83c1ea125478457be5b853871bacb337d6f24f7fbaeca490428/7796.jpg"
- }
- },
- "published_year": 2015,
- "category": {
- "id": 1,
- "title": "Учебники",
- "external_id": 1,
- "slug": "efu",
- "is_public": true
- },
- "subject": {
- "id": 16,
- "title": "Английский язык",
- "is_public": 1
- },
- "publisher": {
- "id": 1,
- "title": "Дрофа",
- "is_public": true
- },
- "authors": [{
- "id": 82,
- "title": "Афанасьева О.В.",
- "last_name": "Афанасьева",
- "first_name": "О",
- "middle_name": "В",
- "is_public": true,
- "position": 0
- }, {
- "id": 83,
- "title": "Михеева И.В.",
- "last_name": "Михеева",
- "first_name": "И",
- "middle_name": "В",
- "is_public": true,
- "position": 1
- }]
- },
- "activated_at": "2017-09-25T11:34:03.211+03:00",
- "user": {
- "id": 2626,
- "email": "lytkov@lecta.ru",
- "first_name": "firstName",
- "last_name": "lastName",
- "middle_name": "middleName",
- "phone": "123",
- "roles": ["admin", "owner", "lecta_admin", "partner_manager"],
- "registration_role": "teacher",
- "registration_role_id": 3,
- "full_name": "lastName firstName middleName",
- "short_full_name": "lastName F.M."
- }
- }, {
- "catalog": {
- "id": 234,
- "title": "Окружающий мир. 2 класс. Часть 2",
- "cover": {
- "origin": {
- "id": "storage/f20e44cd2a2f5a04aa1788a90c4af52ff23c2bbfb82b5d27738212f96f8d2100/8397.jpg",
- "storage": "legacy_store",
- "metadata": {
- "size": 86252,
- "filename": "8397.jpg",
- "mime_type": "image/jpeg"
- },
- "url": "http://localhost:3000/storage/f20e44cd2a2f5a04aa1788a90c4af52ff23c2bbfb82b5d27738212f96f8d2100/8397.jpg"
- },
- "thumb": {
- "id": "storage/f20e44cd2a2f5a04aa1788a90c4af52ff23c2bbfb82b5d27738212f96f8d2100/8397.jpg",
- "storage": "legacy_store",
- "metadata": {
- "size": 86252,
- "filename": "8397.jpg",
- "mime_type": "image/jpeg"
- },
- "url": "http://localhost:3000/storage/f20e44cd2a2f5a04aa1788a90c4af52ff23c2bbfb82b5d27738212f96f8d2100/8397.jpg"
- },
- "thumb_with_watermark": {
- "id": "storage/f20e44cd2a2f5a04aa1788a90c4af52ff23c2bbfb82b5d27738212f96f8d2100/8397.jpg",
- "storage": "legacy_store",
- "metadata": {
- "size": 86252,
- "filename": "8397.jpg",
- "mime_type": "image/jpeg"
- },
- "url": "http://localhost:3000/storage/f20e44cd2a2f5a04aa1788a90c4af52ff23c2bbfb82b5d27738212f96f8d2100/8397.jpg"
- }
- },
- "published_year": 2016,
- "category": {
- "id": 1,
- "title": "Учебники",
- "external_id": 1,
- "slug": "efu",
- "is_public": true
- },
- "subject": {
- "id": 8,
- "title": "Окружающий мир",
- "is_public": 1
- },
- "publisher": {
- "id": 3,
- "title": "Издательство «Астрель»",
- "is_public": true
- },
- "authors": [{
- "id": 386,
- "title": "Ивченкова Г.Г.",
- "last_name": "Ивченкова",
- "first_name": "Г",
- "middle_name": "Г",
- "is_public": true,
- "position": 0
- }, {
- "id": 387,
- "title": "Потапов И.В.",
- "last_name": "Потапов",
- "first_name": "И",
- "middle_name": "В",
- "is_public": true,
- "position": 1
- }]
- },
- "activated_at": "2017-02-28T14:55:11.000+03:00",
- "user": {
- "id": 2626,
- "email": "lytkov@lecta.ru",
- "first_name": "firstName",
- "last_name": "lastName",
- "middle_name": "middleName",
- "phone": "123",
- "roles": ["admin", "owner", "lecta_admin", "partner_manager"],
- "registration_role": "teacher",
- "registration_role_id": 3,
- "full_name": "lastName firstName middleName",
- "short_full_name": "lastName F.M."
- }
- }, {
- "catalog": {
- "id": 20,
- "title": "Английский язык \"Forward\" 2 класс. Часть 1. Аудиоприложение к учебнику",
- "cover": {
- "origin": {
- "id": "storage/a03ad8a045906e487bd883b4aedf768d1bb66137356ec7bed24f4265a00423ef/cover.jpg",
- "storage": "legacy_store",
- "metadata": {
- "size": 1498439,
- "filename": "cover.jpg",
- "mime_type": "image/jpeg"
- },
- "url": "http://localhost:3000/storage/a03ad8a045906e487bd883b4aedf768d1bb66137356ec7bed24f4265a00423ef/cover.jpg"
- },
- "thumb": {
- "id": "storage/a03ad8a045906e487bd883b4aedf768d1bb66137356ec7bed24f4265a00423ef/cover.jpg",
- "storage": "legacy_store",
- "metadata": {
- "size": 1498439,
- "filename": "cover.jpg",
- "mime_type": "image/jpeg"
- },
- "url": "http://localhost:3000/storage/a03ad8a045906e487bd883b4aedf768d1bb66137356ec7bed24f4265a00423ef/cover.jpg"
- },
- "thumb_with_watermark": {
- "id": "storage/a03ad8a045906e487bd883b4aedf768d1bb66137356ec7bed24f4265a00423ef/cover.jpg",
- "storage": "legacy_store",
- "metadata": {
- "size": 1498439,
- "filename": "cover.jpg",
- "mime_type": "image/jpeg"
- },
- "url": "http://localhost:3000/storage/a03ad8a045906e487bd883b4aedf768d1bb66137356ec7bed24f4265a00423ef/cover.jpg"
- }
- },
- "published_year": 2017,
- "category": {
- "id": 2,
- "title": "Аудиоприложение",
- "external_id": 4,
- "slug": "audio",
- "is_public": true
- },
- "subject": {
- "id": 16,
- "title": "Английский язык",
- "is_public": 1
- },
- "publisher": {
- "id": 2,
- "title": "Вентана-Граф",
- "is_public": true
- },
- "authors": [{
- "id": 30,
- "title": "Вербицкая М.В.",
- "last_name": "Вербицкая",
- "first_name": "М",
- "middle_name": "В",
- "is_public": true,
- "position": 0
- }, {
- "id": 32,
- "title": "Эббс Б.",
- "last_name": "Эббс",
- "first_name": "Б",
- "is_public": true,
- "position": 1
- }, {
- "id": 561,
- "title": "Уорелл Э.",
- "last_name": "Уорелл",
- "first_name": "Э",
- "is_public": true,
- "position": 2
- }, {
- "id": 33,
- "title": "Уорд Э.",
- "last_name": "Уорд",
- "first_name": "Э",
- "is_public": true,
- "position": 3
- }, {
- "id": 296,
- "title": "Оралова О.В.",
- "last_name": "Оралова",
- "first_name": "О",
- "middle_name": "В",
- "is_public": true,
- "position": 4
- }]
- },
- "activated_at": "2017-03-23T19:40:51.000+03:00",
- "user": {
- "id": 2626,
- "email": "lytkov@lecta.ru",
- "first_name": "firstName",
- "last_name": "lastName",
- "middle_name": "middleName",
- "phone": "123",
- "roles": ["admin", "owner", "lecta_admin", "partner_manager"],
- "registration_role": "teacher",
- "registration_role_id": 3,
- "full_name": "lastName firstName middleName",
- "short_full_name": "lastName F.M."
- }
- }, {
- "catalog": {
- "id": 912,
- "title": "Английский язык. Enjoy English. 2 класс. Аудиоприложение к учебнику",
- "cover": {
- "origin": {
- "id": "storage/2a8f0fb52a92bc13ca6cb41d1520beb2edcc7cf50588bc87b0cea81f43dcdd85/cover.jpg",
- "storage": "legacy_store",
- "metadata": {
- "size": 1161613,
- "filename": "cover.jpg",
- "mime_type": "image/jpeg"
- },
- "url": "http://localhost:3000/storage/2a8f0fb52a92bc13ca6cb41d1520beb2edcc7cf50588bc87b0cea81f43dcdd85/cover.jpg"
- },
- "thumb": {
- "id": "storage/2a8f0fb52a92bc13ca6cb41d1520beb2edcc7cf50588bc87b0cea81f43dcdd85/cover.jpg",
- "storage": "legacy_store",
- "metadata": {
- "size": 1161613,
- "filename": "cover.jpg",
- "mime_type": "image/jpeg"
- },
- "url": "http://localhost:3000/storage/2a8f0fb52a92bc13ca6cb41d1520beb2edcc7cf50588bc87b0cea81f43dcdd85/cover.jpg"
- },
- "thumb_with_watermark": {
- "id": "storage/2a8f0fb52a92bc13ca6cb41d1520beb2edcc7cf50588bc87b0cea81f43dcdd85/cover.jpg",
- "storage": "legacy_store",
- "metadata": {
- "size": 1161613,
- "filename": "cover.jpg",
- "mime_type": "image/jpeg"
- },
- "url": "http://localhost:3000/storage/2a8f0fb52a92bc13ca6cb41d1520beb2edcc7cf50588bc87b0cea81f43dcdd85/cover.jpg"
- }
- },
- "published_year": 2017,
- "category": {
- "id": 2,
- "title": "Аудиоприложение",
- "external_id": 4,
- "slug": "audio",
- "is_public": true
- },
- "subject": {
- "id": 16,
- "title": "Английский язык",
- "is_public": 1
- },
- "publisher": {
- "id": 1,
- "title": "Дрофа",
- "is_public": true
- },
- "authors": [{
- "id": 379,
- "title": "Биболетова М.З.",
- "last_name": "Биболетова",
- "first_name": "М",
- "middle_name": "З",
- "is_public": true,
- "position": 0
- }, {
- "id": 380,
- "title": "Денисенко О.А.",
- "last_name": "Денисенко",
- "first_name": "О",
- "middle_name": "А",
- "is_public": true,
- "position": 1
- }, {
- "id": 381,
- "title": "Трубанева Н.Н.",
- "last_name": "Трубанева",
- "first_name": "Н",
- "middle_name": "Н",
- "is_public": true,
- "position": 2
- }]
- },
- "activated_at": "2017-03-29T19:19:10.000+03:00",
- "user": {
- "id": 2626,
- "email": "lytkov@lecta.ru",
- "first_name": "firstName",
- "last_name": "lastName",
- "middle_name": "middleName",
- "phone": "123",
- "roles": ["admin", "owner", "lecta_admin", "partner_manager"],
- "registration_role": "teacher",
- "registration_role_id": 3,
- "full_name": "lastName firstName middleName",
- "short_full_name": "lastName F.M."
- }
- }, {
- "catalog": {
- "id": 300,
- "title": "Изобразительное искусство. 2 класс",
- "cover": {
- "origin": {
- "id": "storage/11db0cdf44a294fa74b7a7ee10fe64a15c6b555545ce65fb8f606021363aeb99/8150.png",
- "storage": "legacy_store",
- "metadata": {
- "size": 897534,
- "filename": "8150.png",
- "mime_type": "image/png"
- },
- "url": "http://localhost:3000/storage/11db0cdf44a294fa74b7a7ee10fe64a15c6b555545ce65fb8f606021363aeb99/8150.png"
- },
- "thumb": {
- "id": "storage/11db0cdf44a294fa74b7a7ee10fe64a15c6b555545ce65fb8f606021363aeb99/8150.png",
- "storage": "legacy_store",
- "metadata": {
- "size": 897534,
- "filename": "8150.png",
- "mime_type": "image/png"
- },
- "url": "http://localhost:3000/storage/11db0cdf44a294fa74b7a7ee10fe64a15c6b555545ce65fb8f606021363aeb99/8150.png"
- },
- "thumb_with_watermark": {
- "id": "storage/11db0cdf44a294fa74b7a7ee10fe64a15c6b555545ce65fb8f606021363aeb99/8150.png",
- "storage": "legacy_store",
- "metadata": {
- "size": 897534,
- "filename": "8150.png",
- "mime_type": "image/png"
- },
- "url": "http://localhost:3000/storage/11db0cdf44a294fa74b7a7ee10fe64a15c6b555545ce65fb8f606021363aeb99/8150.png"
- }
- },
- "published_year": 2015,
- "category": {
- "id": 1,
- "title": "Учебники",
- "external_id": 1,
- "slug": "efu",
- "is_public": true
- },
- "subject": {
- "id": 25,
- "title": "Изобразительное искусство",
- "is_public": 1
- },
- "publisher": {
- "id": 2,
- "title": "Вентана-Граф",
- "is_public": true
- },
- "authors": [{
- "id": 88,
- "title": "Савенкова Л.Г.",
- "last_name": "Савенкова",
- "first_name": "Л",
- "middle_name": "Г",
- "is_public": true,
- "position": 0
- }, {
- "id": 89,
- "title": "Ермолинская Е.А.",
- "last_name": "Ермолинская",
- "first_name": "Е",
- "middle_name": "А",
- "is_public": true,
- "position": 1
- }]
- },
- "activated_at": "2017-07-11T11:02:35.000+03:00",
- "user": {
- "id": 2626,
- "email": "lytkov@lecta.ru",
- "first_name": "firstName",
- "last_name": "lastName",
- "middle_name": "middleName",
- "phone": "123",
- "roles": ["admin", "owner", "lecta_admin", "partner_manager"],
- "registration_role": "teacher",
- "registration_role_id": 3,
- "full_name": "lastName firstName middleName",
- "short_full_name": "lastName F.M."
- }
- }],
- "total_count": 5
- }
- Пример ответа после создания:
- {
- "id": 7276,
- "title": "2709-2596",
- "created_at": "2017-09-27T16:43:45.987+03:00",
- "motions_count": 3,
- "license_type": "open",
- "comment": "тест",
- "unit_id_constraint": null,
- "expires_at": "2017-10-11T16:43:45.973+03:00",
- "issuer": {
- "id": 2626,
- "email": "lytkov@lecta.ru",
- "first_name": "firstName",
- "last_name": "lastName",
- "middle_name": "middleName",
- "phone": "123",
- "roles": ["admin", "owner", "lecta_admin", "partner_manager"],
- "registration_role": "teacher",
- "registration_role_id": 3,
- "full_name": "lastName firstName middleName",
- "short_full_name": "lastName F.M."
- },
- "provider": null,
- "used_products_count": 0,
- "total_products_count": 30,
- "licenses_statistics": {
- "statuses": {
- "available": 3,
- "activated": 0,
- "deactivated": 0,
- "expired": 0
- }
- },
- "motions": [{
- "id": 119758,
- "created_at": "2017-09-27T16:43:45.992+03:00",
- "comment": "тест",
- "license_type": "open",
- "certificate": {
- "id": 109918,
- "code": "Au9Y3A",
- "status": "available",
- "expires_at": "2017-10-11T16:43:45.973+03:00",
- "activation_limit": 1,
- "is_unlimited": false,
- "activation_link": "http://localhost:3000/activation?code=Au9Y3A"
- }
- },
- {
- "id": 119759,
- "created_at": "2017-09-27T16:43:46.005+03:00",
- "comment": "тест",
- "license_type": "open",
- "certificate": {
- "id": 109919,
- "code": "BJWySQ",
- "status": "available",
- "expires_at": "2017-10-11T16:43:45.978+03:00",
- "activation_limit": 1,
- "is_unlimited": false,
- "activation_link": "http://localhost:3000/activation?code= BJWySQ "
- }
- }, {
- "
- id ":119760,"
- created_at ":"
- 2017 - 09 - 27 T16: 43: 46.016 + 03: 00 ","
- comment ":"
- тест ","
- license_type ":"
- open ","
- certificate ":{"
- id ":109920,"
- code ":"
- kz2tYw ","
- status ":"
- available ","
- expires_at ":"
- 2017 - 10 - 11 T16: 43: 45.980 + 03: 00 ","
- activation_limit ":1,"
- is_unlimited ":false,"
- activation_link ":"
- http: //localhost:3000/activation?code=kz2tYw"}}]}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement