{"info":{"_postman_id":"b565b990-c096-44db-858b-1cbafa0ee8e8","name":"WebToLearn API","description":"<html><head></head><body><h1 id=\"przeglad\">Przegląd</h1>\n<p>Api zostało napisane zgodnie z architekturą REST i pozwala na komunikację z systemem WebToLearn.pl. \nDostęp do API jest możliwy poprzez użycie <code>API Token</code> dostępnego w ustawieniach administracyjnych portalu (<code>Panel administracyjny -&gt; Konfiguracja Platformy -&gt; API</code>). \nWszystkie żądania API wykonywane są przez adres Twojej platformy w adresie *.elms.pl lub w Twojej własnej (jeśli masz podpiętą pod nasz system np. kursy.twojadomena.pl): \n<code>{platforma}.elms.pl/api/v1/</code> lub <code>{twojadomena}/api/v1/</code>. \nAPI zwraca odpowiedzi w postaci <code>application/json</code></p>\n<h1 id=\"autoryzacja\">Autoryzacja</h1>\n<p>Autoryzacją objęte są wszystkie endpointy opisane w niniejszej dokumentacji. Uwierzytelnianie wymaga użycia nagłówka <code>X-Auth-Token</code> oraz <code>API Token</code> jako wartości, który jest dostępny w <code>Panel administracyjny -&gt; Konfiguracja Platformy -&gt; API</code> w danej platformie. </p>\n<h1 id=\"kody-bledow\">Kody błędów</h1>\n<p>API obsługuje standardowe kody błędów:</p>\n<p><code>402</code> - wymagana płatność. Błąd pokazywany przy wygaśnięciu abonamentu (WebToLearn) oraz przy przekroczeniu limitu użytkowników platformy w tymże abonamencie</p>\n<p><code>403</code> - brak dostępu - błędny <code>API Token</code></p>\n<p><code>404</code> - nie znaleziono zasobu</p>\n<p><code>400</code> - błędne żądanie</p>\n<p><code>429</code> - wykorzystany limit API.</p>\n<p><code>201</code> - OK. Brak treści</p>\n<p><code>200</code> - OK</p>\n<p>Przy większości błędów dodatkowo dostaniesz szczegółową odpowiedź w postaci obiektu ze statusem oraz kodem odpowiedzi:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n  \"Status\": [ \"message\": \"You have reached your API call limit\"],\n  \"Code\" 429\n}\n</code></pre><h1 id=\"rate-limit\">Rate limit</h1>\n<p>W celu zabezpieczenia API wykorzystujemy system API Rate Limiter w celu zapobiegania przeciążenia systemu. Domyślne wartości limitów to:</p>\n<ul>\n<li><strong>3600</strong> w ciągu godziny</li>\n<li><strong>360</strong> w ciągu minuty.</li>\n</ul>\n<p>Faktycznie przyznane limity oraz ilość pozostałych do wykorzystania requestów znajdziesz w nagłówkach odpowiedzi:\n<code>X-RateLimit-Remaining-Hour</code>,\n<code>X-RateLimit-Remaining-Minute</code>,\n<code>X-RateLimit-Limit-Hour</code>,\n<code>X-RateLimit-Limit-Minute</code>.</p>\n<p>Jeśli potrzebujesz wyższych limitów skontaktuj się&nbsp;z obsługą klienta.</p>\n<h1 id=\"zasada-budowania-adresow-do-pobierania-list-get\">Zasada budowania adresów do pobierania list [GET]</h1>\n<p>Każda lista posiada możliwość paginacji, sortowania oraz filtrowania. Wszystko odbywa się poprzez ustawienie odpowiedniego parametru w adresie. </p>\n<h2 id=\"paginacja\">Paginacja</h2>\n<p>Do sortowania jest wykorzystywany parametr <code>range</code>, który jako wartość przyjmuje tablicę <code>limit,offset</code></p>\n<p>W nagłówkach odpowiedzi znajdziesz <code>Content-Range</code>, który w wartości zwróci: <code>nazwę zasobu offset-limit/całkowita ilość</code> przykładowo:</p>\n<p><code>Content-Range: trainings 0-11/2</code></p>\n<h2 id=\"sortowanie\">Sortowanie</h2>\n<p>Do filtrowania wykorzystywany jest parametr <code>sort</code>, który przyjmuje tablicę:<code>[field, direction]</code>. Pola po których można sortować są opisane w poszczególnych endpointach. Możliwe są następujące sortowania: <code>ASC</code> oraz <code>DESC</code></p>\n<p>Przykład użycia:</p>\n<p><code>sort=[\"id\", \"DESC\"]</code></p>\n<h2 id=\"filtrowanie\">Filtrowanie</h2>\n<p>Do filtrowania wykorzystywany jest parametr <code>filter</code>, który przyjmuje tablicę obiektów:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>[\n  {\n    \"field\": \"nazwapola\",\n    \"type\": \"typ filtrowania\",\n    \"value\": \"wartość filtra\"\n  }\n]\n</code></pre><p>Wszystkie dostępne pola filtrowania są opisywane w poszczególnych endpointach. </p>\n<h3 id=\"typy-filtrów\">Typy filtrów</h3>\n<p>Wyróżniamy następujące typy filtrów, które według nazwy odpowiadają składni SQL:</p>\n<ul>\n<li><code>equals</code> </li>\n<li><code>in</code> </li>\n<li><code>not in</code></li>\n<li><code>exists</code></li>\n<li><code>contains</code></li>\n<li><code>less</code></li>\n<li><code>more</code></li>\n<li><code>more_equals</code></li>\n<li><code>less_equals</code></li>\n<li><code>is</code></li>\n</ul>\n<h3 id=\"przykład\">Przykład:</h3>\n<p><code>filter=[{\"field\": \"name\", \"type\": \"contains\", \"value\": \"drugie\"}]</code></p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Przegląd","slug":"przeglad"},{"content":"Autoryzacja","slug":"autoryzacja"},{"content":"Kody błędów","slug":"kody-bledow"},{"content":"Rate limit","slug":"rate-limit"},{"content":"Zasada budowania adresów do pobierania list [GET]","slug":"zasada-budowania-adresow-do-pobierania-list-get"}],"owner":"17141869","collectionId":"b565b990-c096-44db-858b-1cbafa0ee8e8","publishedId":"TzzDLb4k","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2021-08-23T13:42:42.000Z"},"item":[{"name":"Training","item":[{"name":"Get training list","id":"8a408265-915c-4523-a8f7-fdb68f07df08","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/v1/training/list?range=[0,10]&sort=[\"name\", \"ASC\"]&filter=[{\"field\": \"name\", \"value\": \"test\", \"type\": \"contains\"}]","auth":{"type":"apikey","apikey":{"value":"a1443f5d2a5892023a3bdbca304e7287","key":"<key>"},"isInherited":true,"source":{"_postman_id":"b565b990-c096-44db-858b-1cbafa0ee8e8","id":"b565b990-c096-44db-858b-1cbafa0ee8e8","name":"WebToLearn API","type":"collection"}},"urlObject":{"path":["training","list"],"host":["http://localhost:8080/api/v1"],"query":[{"description":{"content":"<p>[offset,limit]</p>\n","type":"text/plain"},"key":"range","value":"[0,10]"},{"description":{"content":"<p>Sortable: id, name</p>\n","type":"text/plain"},"key":"sort","value":"[\"name\", \"ASC\"]"},{"description":{"content":"<p>Filterable: name</p>\n","type":"text/plain"},"key":"filter","value":"[{\"field\": \"name\", \"value\": \"test\", \"type\": \"contains\"}]"}],"variable":[]}},"response":[{"id":"7e6fb177-6a8b-478e-a95e-b9ba99b3fe86","name":"200 OK","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:8080/api/v1/training/list?range=[0,10]&sort=[title.DESC]","host":["http://localhost:8080/api/v1"],"path":["training","list"],"query":[{"key":"range","value":"[0,10]","description":"[offset,limit]"},{"key":"sort","value":"[title.DESC]"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 13 Aug 2021 16:06:53 GMT"},{"key":"Server","value":"Apache/2.4.33 (Unix)"},{"key":"X-Powered-By","value":"PHP/7.3.27"},{"key":"X-RateLimit-Remaining-Hour","value":"3599"},{"key":"X-RateLimit-Remaining-Minute","value":"359"},{"key":"X-RateLimit-Limit-Hour","value":"3600"},{"key":"X-RateLimit-Limit-Minute","value":"360"},{"key":"Content-Range","value":"trainings 0-11/2"},{"key":"Content-Length","value":"90"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": \"1\",\n        \"name\": \"Przykładowe Szkolenie\"\n    },\n    {\n        \"id\": \"2\",\n        \"name\": \"Moje drugie szkolenie\"\n    }\n]"},{"id":"bf57ed3f-0823-4942-b3f5-30080757ac4d","name":"403 Not authenticated","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:8080/api/v1/training/list?range=[0,10]&sort=[title.DESC]","host":["http://localhost:8080/api/v1"],"path":["training","list"],"query":[{"key":"range","value":"[0,10]","description":"[offset,limit]"},{"key":"sort","value":"[title.DESC]","description":"[field.direction]"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 14 Aug 2021 08:19:17 GMT"},{"key":"Server","value":"Apache/2.4.33 (Unix)"},{"key":"X-Powered-By","value":"PHP/7.2.7"},{"key":"X-RateLimit-Remaining-Hour","value":"3598"},{"key":"X-RateLimit-Remaining-Minute","value":"358"},{"key":"X-RateLimit-Limit-Hour","value":"3600"},{"key":"X-RateLimit-Limit-Minute","value":"360"},{"key":"Content-Length","value":"53"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"Status\": {\n        \"message\": \"Not authenticated\"\n    },\n    \"Code\": 403\n}"}],"_postman_id":"8a408265-915c-4523-a8f7-fdb68f07df08"},{"name":"Get training users list","id":"00b5d30d-f91c-4140-b615-ec965b43810a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/v1/training/:trainingId/user/list","auth":{"type":"apikey","apikey":{"value":"a1443f5d2a5892023a3bdbca304e7287","key":"<key>"},"isInherited":true,"source":{"_postman_id":"b565b990-c096-44db-858b-1cbafa0ee8e8","id":"b565b990-c096-44db-858b-1cbafa0ee8e8","name":"WebToLearn API","type":"collection"}},"urlObject":{"path":["training",":trainingId","user","list"],"host":["http://localhost:8080/api/v1"],"query":[{"disabled":true,"description":{"content":"<p>[offset,limit]</p>\n","type":"text/plain"},"key":"range","value":"[0,10]"},{"disabled":true,"description":{"content":"<p>Filterable: email</p>\n","type":"text/plain"},"key":"filter","value":"[{\"field\": \"email\", \"type\": \"equals\", \"value\": \"yes\"}]"},{"disabled":true,"description":{"content":"<p>Sortable: id</p>\n","type":"text/plain"},"key":"sort","value":"[\"id\", \"DESC\"]"}],"variable":[{"id":"b4e27730-1c62-4533-af8d-cc22b0802736","description":{"content":"<p>Id of training</p>\n","type":"text/plain"},"type":"any","value":"1","key":"trainingId"}]}},"response":[{"id":"ea5da708-9865-4be2-9b34-e1b3d64d2dea","name":"200 OK","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:8080/api/v1/training/:trainingId/user/list?range=[0,10]","host":["http://localhost:8080/api/v1"],"path":["training",":trainingId","user","list"],"query":[{"key":"range","value":"[0,10]","description":"[offset,limit]"},{"key":"filter","value":"[{\"field\": \"rescue_email\", \"type\": \"equals\", \"value\": \"yes\"}]","disabled":true}],"variable":[{"key":"trainingId","value":"2","description":"Id of training"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 17 Aug 2021 08:45:13 GMT"},{"key":"Server","value":"Apache/2.4.33 (Unix)"},{"key":"X-Powered-By","value":"PHP/7.2.7"},{"key":"X-RateLimit-Remaining-Hour","value":"3586"},{"key":"X-RateLimit-Remaining-Minute","value":"359"},{"key":"X-RateLimit-Limit-Hour","value":"3600"},{"key":"X-RateLimit-Limit-Minute","value":"360"},{"key":"Content-Range","value":"users 0-11/3"},{"key":"Content-Length","value":"230"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": \"1\",\n        \"email\": \"test@gmail.com\",\n        \"expired_at\": \"2021-06-05UTC10:55:16.06\"\n    },\n    {\n        \"id\": \"1\",\n        \"email\": \"test@gmail.com\",\n        \"expired_at\": \"Forever\"\n    },\n    {\n        \"id\": \"1\",\n        \"email\": \"test2@gmail.com\",\n        \"expired_at\": \"2021-06-10UTC11:14:20.06\"\n    }\n]"},{"id":"edbda347-0250-47b1-807c-594d716658e0","name":"403 Not authenticated","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:8080/api/v1/training/:trainingId/user/list?range=[0,10]","host":["http://localhost:8080/api/v1"],"path":["training",":trainingId","user","list"],"query":[{"key":"range","value":"[0,10]","description":"[offset,limit]"},{"key":"filter","value":"[{\"field\": \"rescue_email\", \"type\": \"equals\", \"value\": \"yes\"}]","disabled":true}],"variable":[{"key":"trainingId","value":"2","description":"Id of training"}]}},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"Status\": {\n        \"message\": \"Not authenticated\"\n    },\n    \"Code\": 403\n}"},{"id":"a73ab034-5d10-42f4-9fd2-c4a4f3027f38","name":"404 Not Found","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:8080/api/v1/training/:trainingId/user/list?range=[0,10]&filter=[{\"field\": \"rescue_email\", \"type\": \"equals\", \"value\": \"yes\"}]&sort=[\"id\", \"DESC\"]","host":["http://localhost:8080/api/v1"],"path":["training",":trainingId","user","list"],"query":[{"key":"range","value":"[0,10]","description":"[offset,limit]"},{"key":"filter","value":"[{\"field\": \"rescue_email\", \"type\": \"equals\", \"value\": \"yes\"}]","description":"Filterable: email"},{"key":"sort","value":"[\"id\", \"DESC\"]","description":"Sortable: id"}],"variable":[{"key":"trainingId","value":"2999","description":"Id of training"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 17 Aug 2021 13:48:15 GMT"},{"key":"Server","value":"Apache/2.4.33 (Unix)"},{"key":"X-Powered-By","value":"PHP/7.2.7"},{"key":"X-RateLimit-Remaining-Hour","value":"3581"},{"key":"X-RateLimit-Remaining-Minute","value":"358"},{"key":"X-RateLimit-Limit-Hour","value":"3600"},{"key":"X-RateLimit-Limit-Minute","value":"360"},{"key":"Content-Length","value":"68"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": false,\n    \"message\": \"Entity training with id 2999 not found\"\n}"}],"_postman_id":"00b5d30d-f91c-4140-b615-ec965b43810a"},{"name":"Create training access for user by day","id":"2e23f83f-a1cf-4223-9f62-2ae51f3e25aa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"user_id\": 1,\n    \"expiry_days\": 15\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/v1/training/:trainingId/user-by-day","auth":{"type":"apikey","apikey":{"value":"a1443f5d2a5892023a3bdbca304e7287","key":"<key>"},"isInherited":true,"source":{"_postman_id":"b565b990-c096-44db-858b-1cbafa0ee8e8","id":"b565b990-c096-44db-858b-1cbafa0ee8e8","name":"WebToLearn API","type":"collection"}},"urlObject":{"path":["training",":trainingId","user-by-day"],"host":["http://localhost:8080/api/v1"],"query":[],"variable":[{"id":"4ea5d825-6ca3-42ee-8f04-e3d73f462f43","description":{"content":"<p>Id of course</p>\n","type":"text/plain"},"type":"any","value":"1","key":"trainingId"}]}},"response":[{"id":"bcddc766-d403-44a6-bd1b-b64396ee036d","name":"201 Created","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"user_id\": 1,\n    \"expiry_days\": 15\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:8080/api/v1/training/:trainingId/user-by-day","host":["http://localhost:8080/api/v1"],"path":["training",":trainingId","user-by-day"],"variable":[{"key":"trainingId","value":"2","description":"Id of course"}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 17 Aug 2021 13:39:31 GMT"},{"key":"Server","value":"Apache/2.4.33 (Unix)"},{"key":"X-Powered-By","value":"PHP/7.2.7"},{"key":"X-RateLimit-Remaining-Hour","value":"3597"},{"key":"X-RateLimit-Remaining-Minute","value":"359"},{"key":"X-RateLimit-Limit-Hour","value":"3600"},{"key":"X-RateLimit-Limit-Minute","value":"360"},{"key":"Content-Length","value":"56"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"expired_at\": \"2021-09-01UTC01:39:31.09\"\n}"},{"id":"238c303b-3d9d-4d7e-a4f7-8ad5840ffb55","name":"404 Not Found","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"user_id\": 199,\n    \"expiry_days\": 15\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:8080/api/v1/training/:trainingId/user-by-day","host":["http://localhost:8080/api/v1"],"path":["training",":trainingId","user-by-day"],"variable":[{"key":"trainingId","value":"2","description":"Id of course"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 17 Aug 2021 13:47:48 GMT"},{"key":"Server","value":"Apache/2.4.33 (Unix)"},{"key":"X-Powered-By","value":"PHP/7.2.7"},{"key":"X-RateLimit-Remaining-Hour","value":"3582"},{"key":"X-RateLimit-Remaining-Minute","value":"359"},{"key":"X-RateLimit-Limit-Hour","value":"3600"},{"key":"X-RateLimit-Limit-Minute","value":"360"},{"key":"Content-Length","value":"63"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": false,\n    \"message\": \"Entity user with id 199 not found\"\n}"}],"_postman_id":"2e23f83f-a1cf-4223-9f62-2ae51f3e25aa"},{"name":"Create training access for user by date","id":"8de03cc3-7870-44e7-b71c-6994e26c52c0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"user_id\": 1,\n    \"expiry_date\": \"2022-05-05\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/v1/training/:trainingId/user-by-date","auth":{"type":"apikey","apikey":{"value":"a1443f5d2a5892023a3bdbca304e7287","key":"<key>"},"isInherited":true,"source":{"_postman_id":"b565b990-c096-44db-858b-1cbafa0ee8e8","id":"b565b990-c096-44db-858b-1cbafa0ee8e8","name":"WebToLearn API","type":"collection"}},"urlObject":{"path":["training",":trainingId","user-by-date"],"host":["http://localhost:8080/api/v1"],"query":[],"variable":[{"id":"2a2336e9-1a31-4042-b403-eb75891e22d1","description":{"content":"<p>Id of course</p>\n","type":"text/plain"},"type":"any","value":"1","key":"trainingId"}]}},"response":[{"id":"47610413-06ca-48be-bd8e-88f17e6d46f7","name":"201 Created","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"user_id\": 1,\n    \"expiry_date\": \"2022-05-05\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:8080/api/v1/training/:trainingId/user-by-date","host":["http://localhost:8080/api/v1"],"path":["training",":trainingId","user-by-date"],"variable":[{"key":"trainingId","value":"2","description":"Id of course"}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 17 Aug 2021 13:39:31 GMT"},{"key":"Server","value":"Apache/2.4.33 (Unix)"},{"key":"X-Powered-By","value":"PHP/7.2.7"},{"key":"X-RateLimit-Remaining-Hour","value":"3597"},{"key":"X-RateLimit-Remaining-Minute","value":"359"},{"key":"X-RateLimit-Limit-Hour","value":"3600"},{"key":"X-RateLimit-Limit-Minute","value":"360"},{"key":"Content-Length","value":"56"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"expired_at\": \"2021-09-01UTC01:39:31.09\"\n}"},{"id":"05a764cf-2950-4590-82fe-a6b9e1afab2a","name":"404 Not Found","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"user_id\": 199,\n    \"expiry_date\": \"2022-05-05\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:8080/api/v1/training/:trainingId/user-by-date","host":["http://localhost:8080/api/v1"],"path":["training",":trainingId","user-by-date"],"variable":[{"key":"trainingId","value":"2","description":"Id of course"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 17 Aug 2021 13:47:48 GMT"},{"key":"Server","value":"Apache/2.4.33 (Unix)"},{"key":"X-Powered-By","value":"PHP/7.2.7"},{"key":"X-RateLimit-Remaining-Hour","value":"3582"},{"key":"X-RateLimit-Remaining-Minute","value":"359"},{"key":"X-RateLimit-Limit-Hour","value":"3600"},{"key":"X-RateLimit-Limit-Minute","value":"360"},{"key":"Content-Length","value":"63"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": false,\n    \"message\": \"Entity user with id 199 not found\"\n}"}],"_postman_id":"8de03cc3-7870-44e7-b71c-6994e26c52c0"},{"name":"Delete training access for user","id":"3e084484-9c2f-4af4-ba36-01cf6320be84","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:8080/api/v1/training/:trainingId/user/:userId","auth":{"type":"apikey","apikey":{"value":"a1443f5d2a5892023a3bdbca304e7287","key":"<key>"},"isInherited":true,"source":{"_postman_id":"b565b990-c096-44db-858b-1cbafa0ee8e8","id":"b565b990-c096-44db-858b-1cbafa0ee8e8","name":"WebToLearn API","type":"collection"}},"urlObject":{"path":["training",":trainingId","user",":userId"],"host":["http://localhost:8080/api/v1"],"query":[],"variable":[{"id":"2ef35adf-2f17-4f0d-93e7-3c04264b5336","description":{"content":"<p>Id of the course</p>\n","type":"text/plain"},"type":"any","value":"2","key":"trainingId"},{"id":"4b89f211-921a-4c47-9a8b-d5297440989d","description":{"content":"<p>Id of user</p>\n","type":"text/plain"},"type":"any","value":"1","key":"userId"}]}},"response":[{"id":"e045f9ce-4f19-42c9-a356-9d756faa0f78","name":"200 OK","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"http://localhost:8080/api/v1/training/:trainingId/user/:userId","host":["http://localhost:8080/api/v1"],"path":["training",":trainingId","user",":userId"],"variable":[{"key":"trainingId","value":"2","description":"Id of the course"},{"key":"userId","value":"1","description":"Id of user"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 17 Aug 2021 13:40:54 GMT"},{"key":"Server","value":"Apache/2.4.33 (Unix)"},{"key":"X-Powered-By","value":"PHP/7.2.7"},{"key":"X-RateLimit-Remaining-Hour","value":"3596"},{"key":"X-RateLimit-Remaining-Minute","value":"359"},{"key":"X-RateLimit-Limit-Hour","value":"3600"},{"key":"X-RateLimit-Limit-Minute","value":"360"},{"key":"Content-Length","value":"16"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true\n}"},{"id":"b9e05741-ff0a-4139-bce6-a1973160ffe1","name":"404 Not Found","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"http://localhost:8080/api/v1/training/:trainingId/user/:userId","host":["http://localhost:8080/api/v1"],"path":["training",":trainingId","user",":userId"],"variable":[{"key":"trainingId","value":"2","description":"Id of the course"},{"key":"userId","value":"199","description":"Id of user"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 17 Aug 2021 13:47:21 GMT"},{"key":"Server","value":"Apache/2.4.33 (Unix)"},{"key":"X-Powered-By","value":"PHP/7.2.7"},{"key":"X-RateLimit-Remaining-Hour","value":"3583"},{"key":"X-RateLimit-Remaining-Minute","value":"358"},{"key":"X-RateLimit-Limit-Hour","value":"3600"},{"key":"X-RateLimit-Limit-Minute","value":"360"},{"key":"Content-Length","value":"63"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": false,\n    \"message\": \"Entity user with id 199 not found\"\n}"}],"_postman_id":"3e084484-9c2f-4af4-ba36-01cf6320be84"}],"id":"6ee2f01e-b857-4f84-9f6a-ff15dd04afd5","description":"<p>Lista zasobów treningów</p>\n","_postman_id":"6ee2f01e-b857-4f84-9f6a-ff15dd04afd5","auth":{"type":"apikey","apikey":{"value":"a1443f5d2a5892023a3bdbca304e7287","key":"<key>"},"isInherited":true,"source":{"_postman_id":"b565b990-c096-44db-858b-1cbafa0ee8e8","id":"b565b990-c096-44db-858b-1cbafa0ee8e8","name":"WebToLearn API","type":"collection"}}},{"name":"Abonament","item":[{"name":"Get abonament list","id":"24fe87ac-9711-4a66-af30-ec8bef1d3cbc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/v1/abonament/list?range=[0,10]&sort=[\"name\", \"ASC\"]&filter=[{\"field\": \"email\", \"type\": \"equals\", \"value\": \"yes\"}]","auth":{"type":"apikey","apikey":{"value":"a1443f5d2a5892023a3bdbca304e7287","key":"<key>"},"isInherited":true,"source":{"_postman_id":"b565b990-c096-44db-858b-1cbafa0ee8e8","id":"b565b990-c096-44db-858b-1cbafa0ee8e8","name":"WebToLearn API","type":"collection"}},"urlObject":{"path":["abonament","list"],"host":["http://localhost:8080/api/v1"],"query":[{"description":{"content":"<p>[offset,limit]</p>\n","type":"text/plain"},"key":"range","value":"[0,10]"},{"description":{"content":"<p>Sortable: id, name</p>\n","type":"text/plain"},"key":"sort","value":"[\"name\", \"ASC\"]"},{"description":{"content":"<p>Filterable:  name,  rescue_email</p>\n","type":"text/plain"},"key":"filter","value":"[{\"field\": \"email\", \"type\": \"equals\", \"value\": \"yes\"}]"}],"variable":[]}},"response":[{"id":"388ff64d-253b-4936-9257-5cf39b98e640","name":"200 OK","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:8080/api/v1/abonament/list?range=[0,10]&filter=[{\"field\": \"rescue_email\", \"type\": \"equals\", \"value\": \"yes\"}]","host":["http://localhost:8080/api/v1"],"path":["abonament","list"],"query":[{"key":"range","value":"[0,10]","description":"[offset,limit]"},{"key":"filter","value":"[{\"field\": \"rescue_email\", \"type\": \"equals\", \"value\": \"yes\"}]"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 17 Aug 2021 08:47:05 GMT"},{"key":"Server","value":"Apache/2.4.33 (Unix)"},{"key":"X-Powered-By","value":"PHP/7.2.7"},{"key":"X-RateLimit-Remaining-Hour","value":"3585"},{"key":"X-RateLimit-Remaining-Minute","value":"359"},{"key":"X-RateLimit-Limit-Hour","value":"3600"},{"key":"X-RateLimit-Limit-Minute","value":"360"},{"key":"Content-Range","value":"abonaments 0-11/1"},{"key":"Content-Length","value":"48"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": \"2\",\n        \"name\": \"Abonament nowy płatny\"\n    }\n]"},{"id":"a513ca11-e890-485c-b032-e0e11764875a","name":"403 Not authenticated","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:8080/api/v1/training/:trainingId/user/list?range=[0,10]","host":["http://localhost:8080/api/v1"],"path":["training",":trainingId","user","list"],"query":[{"key":"range","value":"[0,10]","description":"[offset,limit]"},{"key":"filter","value":"[{\"field\": \"rescue_email\", \"type\": \"equals\", \"value\": \"yes\"}]","disabled":true}],"variable":[{"key":"trainingId","value":"2","description":"Id of training"}]}},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"Status\": {\n        \"message\": \"Not authenticated\"\n    },\n    \"Code\": 403\n}"}],"_postman_id":"24fe87ac-9711-4a66-af30-ec8bef1d3cbc"},{"name":"Get abonament users list","id":"fc6d9e0a-cca2-4c9f-8b02-09beeae99978","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/v1/abonament/:abonamentId/user/list?range=[0,10]&filter=[{\"field\": \"email\", \"type\": \"equals\", \"value\": \"1\"}]&sort=[\"id\": \"DESC\"]","auth":{"type":"apikey","apikey":{"value":"a1443f5d2a5892023a3bdbca304e7287","key":"<key>"},"isInherited":true,"source":{"_postman_id":"b565b990-c096-44db-858b-1cbafa0ee8e8","id":"b565b990-c096-44db-858b-1cbafa0ee8e8","name":"WebToLearn API","type":"collection"}},"urlObject":{"path":["abonament",":abonamentId","user","list"],"host":["http://localhost:8080/api/v1"],"query":[{"description":{"content":"<p>[offset,limit]</p>\n","type":"text/plain"},"key":"range","value":"[0,10]"},{"description":{"content":"<p>Filterable: email</p>\n","type":"text/plain"},"key":"filter","value":"[{\"field\": \"email\", \"type\": \"equals\", \"value\": \"1\"}]"},{"description":{"content":"<p>Sortable: id</p>\n","type":"text/plain"},"key":"sort","value":"[\"id\": \"DESC\"]"}],"variable":[{"id":"41fd4aa9-3bd1-4211-b1be-d20957236500","type":"any","value":null,"key":"abonamentId"}]}},"response":[{"id":"f0ebd66b-fd89-4cdc-90c3-6de2ed280887","name":"200 OK","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:8080/api/v1/abonament/:abonamentId/user/list?range=[0,10]","host":["http://localhost:8080/api/v1"],"path":["abonament",":abonamentId","user","list"],"query":[{"key":"range","value":"[0,10]","description":"[offset,limit]"},{"key":"filter","value":"[{\"field\": \"rescue_email\", \"type\": \"equals\", \"value\": \"yes\"}]","disabled":true}],"variable":[{"key":"abonamentId","value":"2","description":"Id of abonament"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 17 Aug 2021 08:47:19 GMT"},{"key":"Server","value":"Apache/2.4.33 (Unix)"},{"key":"X-Powered-By","value":"PHP/7.2.7"},{"key":"X-RateLimit-Remaining-Hour","value":"3584"},{"key":"X-RateLimit-Remaining-Minute","value":"358"},{"key":"X-RateLimit-Limit-Hour","value":"3600"},{"key":"X-RateLimit-Limit-Minute","value":"360"},{"key":"Content-Range","value":"users 0-11/1"},{"key":"Content-Length","value":"83"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": \"1\",\n        \"email\": \"test@gmail.com\",\n        \"expired_at\": \"2021-06-10UTC01:49:51.06\"\n    }\n]"},{"id":"f45743b2-36bc-4945-bc04-06984bad3fdd","name":"403 Not authenticated","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:8080/api/v1/training/:trainingId/user/list?range=[0,10]","host":["http://localhost:8080/api/v1"],"path":["training",":trainingId","user","list"],"query":[{"key":"range","value":"[0,10]","description":"[offset,limit]"},{"key":"filter","value":"[{\"field\": \"rescue_email\", \"type\": \"equals\", \"value\": \"yes\"}]","disabled":true}],"variable":[{"key":"trainingId","value":"2","description":"Id of training"}]}},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"Status\": {\n        \"message\": \"Not authenticated\"\n    },\n    \"Code\": 403\n}"},{"id":"04f7ab7a-69af-4487-ad02-f7a3f3a3e19a","name":"404 Not Found","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:8080/api/v1/abonament/:abonamentId/user/list?range=[0,10]&filter=[{\"field\": \"rescue_email\", \"type\": \"equals\", \"value\": \"yes\"}]&sort=[\"id\": \"DESC\"]","host":["http://localhost:8080/api/v1"],"path":["abonament",":abonamentId","user","list"],"query":[{"key":"range","value":"[0,10]","description":"[offset,limit]"},{"key":"filter","value":"[{\"field\": \"rescue_email\", \"type\": \"equals\", \"value\": \"yes\"}]","description":"Filterable: email"},{"key":"sort","value":"[\"id\": \"DESC\"]","description":"Sortable: id"}],"variable":[{"key":"abonamentId","value":"299","description":"Id of abonament"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 17 Aug 2021 13:50:05 GMT"},{"key":"Server","value":"Apache/2.4.33 (Unix)"},{"key":"X-Powered-By","value":"PHP/7.2.7"},{"key":"X-RateLimit-Remaining-Hour","value":"3578"},{"key":"X-RateLimit-Remaining-Minute","value":"359"},{"key":"X-RateLimit-Limit-Hour","value":"3600"},{"key":"X-RateLimit-Limit-Minute","value":"360"},{"key":"Content-Length","value":"68"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": false,\n    \"message\": \"Entity abonament with id 299 not found\"\n}"}],"_postman_id":"fc6d9e0a-cca2-4c9f-8b02-09beeae99978"},{"name":"Create user abonament by day","id":"550e048e-d22e-4736-bbe4-bc4c92235e82","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"user_id\": 1,\n    \"expiry_days\": 15\n}\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/v1/abonament/:abonamentId/user-by-day","auth":{"type":"apikey","apikey":{"value":"a1443f5d2a5892023a3bdbca304e7287","key":"<key>"},"isInherited":true,"source":{"_postman_id":"b565b990-c096-44db-858b-1cbafa0ee8e8","id":"b565b990-c096-44db-858b-1cbafa0ee8e8","name":"WebToLearn API","type":"collection"}},"urlObject":{"path":["abonament",":abonamentId","user-by-day"],"host":["http://localhost:8080/api/v1"],"query":[],"variable":[{"id":"371bf27d-0e76-49ae-b695-443a97edc097","description":{"content":"<p>Id of abonament</p>\n","type":"text/plain"},"type":"any","value":"2","key":"abonamentId"}]}},"response":[{"id":"fe52846b-07de-4718-bed6-f04b88c3c361","name":"201 Created","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"user_id\": 1,\n    \"expiry_days\": 15\n}\n","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:8080/api/v1/abonament/:abonamentId/user-by-day","host":["http://localhost:8080/api/v1"],"path":["abonament",":abonamentId","user-by-day"],"variable":[{"key":"abonamentId","value":"2","description":"Id of abonament"}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 17 Aug 2021 13:41:08 GMT"},{"key":"Server","value":"Apache/2.4.33 (Unix)"},{"key":"X-Powered-By","value":"PHP/7.2.7"},{"key":"X-RateLimit-Remaining-Hour","value":"3595"},{"key":"X-RateLimit-Remaining-Minute","value":"358"},{"key":"X-RateLimit-Limit-Hour","value":"3600"},{"key":"X-RateLimit-Limit-Minute","value":"360"},{"key":"Content-Length","value":"56"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"expired_at\": \"2021-09-01UTC01:41:08.09\"\n}"},{"id":"7627e59a-384e-421c-98f2-5a648fea84e5","name":"404 Not Found","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"user_id\": 1,\n    \"expiry_days\": 15\n}\n","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:8080/api/v1/abonament/:abonamentId/user-by-day","host":["http://localhost:8080/api/v1"],"path":["abonament",":abonamentId","user-by-day"],"variable":[{"key":"abonamentId","value":"99","description":"Id of abonament"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 17 Aug 2021 13:46:48 GMT"},{"key":"Server","value":"Apache/2.4.33 (Unix)"},{"key":"X-Powered-By","value":"PHP/7.2.7"},{"key":"X-RateLimit-Remaining-Hour","value":"3584"},{"key":"X-RateLimit-Remaining-Minute","value":"359"},{"key":"X-RateLimit-Limit-Hour","value":"3600"},{"key":"X-RateLimit-Limit-Minute","value":"360"},{"key":"Content-Length","value":"67"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": false,\n    \"message\": \"Entity abonament with id 99 not found\"\n}"}],"_postman_id":"550e048e-d22e-4736-bbe4-bc4c92235e82"},{"name":"Create user abonament by date","id":"7af7cb26-40ee-4678-821d-7a23f193b4cf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"user_id\": 1,\n    \"expiry_date\": \"2022-05-10\"\n}\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/v1/abonament/:abonamentId/user-by-date","auth":{"type":"apikey","apikey":{"value":"a1443f5d2a5892023a3bdbca304e7287","key":"<key>"},"isInherited":true,"source":{"_postman_id":"b565b990-c096-44db-858b-1cbafa0ee8e8","id":"b565b990-c096-44db-858b-1cbafa0ee8e8","name":"WebToLearn API","type":"collection"}},"urlObject":{"path":["abonament",":abonamentId","user-by-date"],"host":["http://localhost:8080/api/v1"],"query":[],"variable":[{"id":"9ab163ae-1906-4537-996c-f912364ecec2","description":{"content":"<p>Id of abonament</p>\n","type":"text/plain"},"type":"any","value":"2","key":"abonamentId"}]}},"response":[{"id":"157b3e8a-3d8c-4963-a3c1-2a4537062836","name":"201 Created","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"user_id\": 1,\n    \"expiry_date\": \"2022-05-10\"\n}\n","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:8080/api/v1/abonament/:abonamentId/user-by-date","host":["http://localhost:8080/api/v1"],"path":["abonament",":abonamentId","user-by-date"],"variable":[{"key":"abonamentId","value":"2","description":"Id of abonament"}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 17 Aug 2021 13:41:08 GMT"},{"key":"Server","value":"Apache/2.4.33 (Unix)"},{"key":"X-Powered-By","value":"PHP/7.2.7"},{"key":"X-RateLimit-Remaining-Hour","value":"3595"},{"key":"X-RateLimit-Remaining-Minute","value":"358"},{"key":"X-RateLimit-Limit-Hour","value":"3600"},{"key":"X-RateLimit-Limit-Minute","value":"360"},{"key":"Content-Length","value":"56"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"expired_at\": \"2022-05-10UTC23:59:59.09\"\n}"},{"id":"87b447f6-e83b-4646-bd1f-ddf29210e64e","name":"404 Not Found","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"user_id\": 1,\n    \"expiry_days\": 15\n}\n","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:8080/api/v1/abonament/:abonamentId/user-by-date","host":["http://localhost:8080/api/v1"],"path":["abonament",":abonamentId","user-by-date"],"variable":[{"key":"abonamentId","value":"99","description":"Id of abonament"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 17 Aug 2021 13:46:48 GMT"},{"key":"Server","value":"Apache/2.4.33 (Unix)"},{"key":"X-Powered-By","value":"PHP/7.2.7"},{"key":"X-RateLimit-Remaining-Hour","value":"3584"},{"key":"X-RateLimit-Remaining-Minute","value":"359"},{"key":"X-RateLimit-Limit-Hour","value":"3600"},{"key":"X-RateLimit-Limit-Minute","value":"360"},{"key":"Content-Length","value":"67"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": false,\n    \"message\": \"Entity abonament with id 99 not found\"\n}"},{"id":"cde857a5-94b8-404b-a3ae-716a3043c691","name":"400 Bad Request","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"user_id\": 1,\n    \"expiry_date\": \"2020-05-10\"\n}\n","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:8080/api/v1/abonament/:abonamentId/user-by-date","host":["http://localhost:8080/api/v1"],"path":["abonament",":abonamentId","user-by-date"],"variable":[{"key":"abonamentId","value":"2","description":"Id of abonament"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 18 Aug 2021 10:09:31 GMT"},{"key":"Server","value":"Apache/2.4.33 (Unix)"},{"key":"X-Powered-By","value":"PHP/7.3.27"},{"key":"X-RateLimit-Remaining-Hour","value":"3597"},{"key":"X-RateLimit-Remaining-Minute","value":"359"},{"key":"X-RateLimit-Limit-Hour","value":"3600"},{"key":"X-RateLimit-Limit-Minute","value":"360"},{"key":"Content-Length","value":"67"},{"key":"Connection","value":"close"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": false,\n    \"message\": \"Błędna data w expiry_date\\n\"\n}"}],"_postman_id":"7af7cb26-40ee-4678-821d-7a23f193b4cf"},{"name":"Delete user abonament","id":"9a428ea6-ed44-4cca-9d73-d28ee132b5e0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:8080/api/v1/abonament/:abonamentId/user/:userId","auth":{"type":"apikey","apikey":{"value":"a1443f5d2a5892023a3bdbca304e7287","key":"<key>"},"isInherited":true,"source":{"_postman_id":"b565b990-c096-44db-858b-1cbafa0ee8e8","id":"b565b990-c096-44db-858b-1cbafa0ee8e8","name":"WebToLearn API","type":"collection"}},"urlObject":{"path":["abonament",":abonamentId","user",":userId"],"host":["http://localhost:8080/api/v1"],"query":[],"variable":[{"id":"cac656fa-eada-4e76-96dc-fc30851c0035","description":{"content":"<p>Id of abonament</p>\n","type":"text/plain"},"type":"any","value":"2","key":"abonamentId"},{"id":"868077a9-a8f0-4f32-b52d-4dee72d34916","description":{"content":"<p>Id of user</p>\n","type":"text/plain"},"type":"any","value":"1","key":"userId"}]}},"response":[{"id":"a58051aa-dba3-4393-9785-8d18f8c4f072","name":"200 OK","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"http://localhost:8080/api/v1/abonament/:abonamentId/user/:userId","host":["http://localhost:8080/api/v1"],"path":["abonament",":abonamentId","user",":userId"],"variable":[{"key":"abonamentId","value":"2","description":"Id of abonament"},{"key":"userId","value":"1","description":"Id of user"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 17 Aug 2021 13:41:31 GMT"},{"key":"Server","value":"Apache/2.4.33 (Unix)"},{"key":"X-Powered-By","value":"PHP/7.2.7"},{"key":"X-RateLimit-Remaining-Hour","value":"3594"},{"key":"X-RateLimit-Remaining-Minute","value":"357"},{"key":"X-RateLimit-Limit-Hour","value":"3600"},{"key":"X-RateLimit-Limit-Minute","value":"360"},{"key":"Content-Length","value":"16"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true\n}"},{"id":"0f749794-77ed-4b71-b8db-b43e67ac154c","name":"404 Not Found","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"http://localhost:8080/api/v1/abonament/:abonamentId/user/:userId","host":["http://localhost:8080/api/v1"],"path":["abonament",":abonamentId","user",":userId"],"variable":[{"key":"abonamentId","value":"99","description":"Id of abonament"},{"key":"userId","value":"1","description":"Id of user"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 17 Aug 2021 13:45:04 GMT"},{"key":"Server","value":"Apache/2.4.33 (Unix)"},{"key":"X-Powered-By","value":"PHP/7.2.7"},{"key":"X-RateLimit-Remaining-Hour","value":"3585"},{"key":"X-RateLimit-Remaining-Minute","value":"359"},{"key":"X-RateLimit-Limit-Hour","value":"3600"},{"key":"X-RateLimit-Limit-Minute","value":"360"},{"key":"Content-Length","value":"75"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": false,\n    \"message\": \"Entity abonamentUser with id (99,1) not found\"\n}"}],"_postman_id":"9a428ea6-ed44-4cca-9d73-d28ee132b5e0"}],"id":"b993e979-f6ae-4530-8043-7215a6b3d0b9","description":"<p>Lista zasobów dotycząca abonamentu</p>\n","_postman_id":"b993e979-f6ae-4530-8043-7215a6b3d0b9","auth":{"type":"apikey","apikey":{"value":"a1443f5d2a5892023a3bdbca304e7287","key":"<key>"},"isInherited":true,"source":{"_postman_id":"b565b990-c096-44db-858b-1cbafa0ee8e8","id":"b565b990-c096-44db-858b-1cbafa0ee8e8","name":"WebToLearn API","type":"collection"}}},{"name":"Lesson","item":[{"name":"Get lesson list","id":"73cafbb8-a6a1-422c-b443-96ebcbed8cdc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/v1/lesson/list?range=[0,10]&sort=[\"name\", \"ASC\"]&filter=[{\"field\": \"name\", \"value\": \"lekcja\", \"type\": \"contains\"}]","auth":{"type":"apikey","apikey":{"value":"a1443f5d2a5892023a3bdbca304e7287","key":"<key>"},"isInherited":true,"source":{"_postman_id":"b565b990-c096-44db-858b-1cbafa0ee8e8","id":"b565b990-c096-44db-858b-1cbafa0ee8e8","name":"WebToLearn API","type":"collection"}},"urlObject":{"path":["lesson","list"],"host":["http://localhost:8080/api/v1"],"query":[{"description":{"content":"<p>[offset,limit]</p>\n","type":"text/plain"},"key":"range","value":"[0,10]"},{"description":{"content":"<p>Sortable: id, name</p>\n","type":"text/plain"},"key":"sort","value":"[\"name\", \"ASC\"]"},{"description":{"content":"<p>Filterable: name</p>\n","type":"text/plain"},"key":"filter","value":"[{\"field\": \"name\", \"value\": \"lekcja\", \"type\": \"contains\"}]"}],"variable":[]}},"response":[{"id":"8f5ebc6e-66bb-4fce-a1e7-79abf306280b","name":"200 OK","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:8080/api/v1/lesson/list?range=[0,10]","host":["http://localhost:8080/api/v1"],"path":["lesson","list"],"query":[{"key":"range","value":"[0,10]","description":"[offset,limit]"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 17 Aug 2021 08:47:29 GMT"},{"key":"Server","value":"Apache/2.4.33 (Unix)"},{"key":"X-Powered-By","value":"PHP/7.2.7"},{"key":"X-RateLimit-Remaining-Hour","value":"3583"},{"key":"X-RateLimit-Remaining-Minute","value":"357"},{"key":"X-RateLimit-Limit-Hour","value":"3600"},{"key":"X-RateLimit-Limit-Minute","value":"360"},{"key":"Content-Range","value":"lessons 0-11/2"},{"key":"Content-Length","value":"86"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": \"1\",\n        \"name\": \"Przykładowa lekcja\"\n    },\n    {\n        \"id\": \"2\",\n        \"name\": \"Nowa lekcja - fajnie\"\n    }\n]"},{"id":"de8b5828-0b7b-4da0-9dff-9a7fd14af632","name":"403 Not authenticated","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:8080/api/v1/training/:trainingId/user/list?range=[0,10]","host":["http://localhost:8080/api/v1"],"path":["training",":trainingId","user","list"],"query":[{"key":"range","value":"[0,10]","description":"[offset,limit]"},{"key":"filter","value":"[{\"field\": \"rescue_email\", \"type\": \"equals\", \"value\": \"yes\"}]","disabled":true}],"variable":[{"key":"trainingId","value":"2","description":"Id of training"}]}},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"Status\": {\n        \"message\": \"Not authenticated\"\n    },\n    \"Code\": 403\n}"}],"_postman_id":"73cafbb8-a6a1-422c-b443-96ebcbed8cdc"},{"name":"Get lesson users list","id":"38dbfd9b-324e-4bd1-8e22-8706c99543f6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/v1/lesson/:lessonId/user/list?range=[0,10]&filter=[{\"field\": \"email\", \"type\": \"equals\", \"value\": \"yes\"}]&sort=[\"name\", \"ASC\"]","auth":{"type":"apikey","apikey":{"value":"a1443f5d2a5892023a3bdbca304e7287","key":"<key>"},"isInherited":true,"source":{"_postman_id":"b565b990-c096-44db-858b-1cbafa0ee8e8","id":"b565b990-c096-44db-858b-1cbafa0ee8e8","name":"WebToLearn API","type":"collection"}},"urlObject":{"path":["lesson",":lessonId","user","list"],"host":["http://localhost:8080/api/v1"],"query":[{"description":{"content":"<p>[offset,limit]</p>\n","type":"text/plain"},"key":"range","value":"[0,10]"},{"description":{"content":"<p>Filterable: email</p>\n","type":"text/plain"},"key":"filter","value":"[{\"field\": \"email\", \"type\": \"equals\", \"value\": \"yes\"}]"},{"description":{"content":"<p>Sortable: id</p>\n","type":"text/plain"},"key":"sort","value":"[\"name\", \"ASC\"]"}],"variable":[{"id":"59674cf4-a368-4452-9a78-f07a21d1d70d","description":{"content":"<p>Id of lesson</p>\n","type":"text/plain"},"type":"any","value":"2","key":"lessonId"}]}},"response":[{"id":"6e896cd6-ff55-4f54-b264-a7deaf533dcd","name":"200 OK","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:8080/api/v1/lesson/:lessonId/user/list?range=[0,10]","host":["http://localhost:8080/api/v1"],"path":["lesson",":lessonId","user","list"],"query":[{"key":"range","value":"[0,10]","description":"[offset,limit]"},{"key":"filter","value":"[{\"field\": \"rescue_email\", \"type\": \"equals\", \"value\": \"yes\"}]","disabled":true}],"variable":[{"key":"lessonId","value":"2","description":"Id of lesson"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 17 Aug 2021 08:47:40 GMT"},{"key":"Server","value":"Apache/2.4.33 (Unix)"},{"key":"X-Powered-By","value":"PHP/7.2.7"},{"key":"X-RateLimit-Remaining-Hour","value":"3582"},{"key":"X-RateLimit-Remaining-Minute","value":"356"},{"key":"X-RateLimit-Limit-Hour","value":"3600"},{"key":"X-RateLimit-Limit-Minute","value":"360"},{"key":"Content-Range","value":"users 0-11/1"},{"key":"Content-Length","value":"83"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": \"1\",\n        \"email\": \"test@gmail.com\",\n        \"expired_at\": \"2021-06-10UTC11:56:33.06\"\n    }\n]"},{"id":"aba429a4-6a1e-46ed-8c75-15c2e4996ca7","name":"403 Not authenticated","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:8080/api/v1/training/:trainingId/user/list?range=[0,10]","host":["http://localhost:8080/api/v1"],"path":["training",":trainingId","user","list"],"query":[{"key":"range","value":"[0,10]","description":"[offset,limit]"},{"key":"filter","value":"[{\"field\": \"rescue_email\", \"type\": \"equals\", \"value\": \"yes\"}]","disabled":true}],"variable":[{"key":"trainingId","value":"2","description":"Id of training"}]}},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"Status\": {\n        \"message\": \"Not authenticated\"\n    },\n    \"Code\": 403\n}"},{"id":"702912d9-f570-4847-8098-5d8ac53d1e06","name":"404 Not Found","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:8080/api/v1/lesson/:lessonId/user/list?range=[0,10]&filter=[{\"field\": \"rescue_email\", \"type\": \"equals\", \"value\": \"yes\"}]&sort=[\"name\", \"ASC\"]","host":["http://localhost:8080/api/v1"],"path":["lesson",":lessonId","user","list"],"query":[{"key":"range","value":"[0,10]","description":"[offset,limit]"},{"key":"filter","value":"[{\"field\": \"rescue_email\", \"type\": \"equals\", \"value\": \"yes\"}]","description":"Filterable: email"},{"key":"sort","value":"[\"name\", \"ASC\"]","description":"Sortable: id"}],"variable":[{"key":"lessonId","value":"299","description":"Id of lesson"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 17 Aug 2021 13:50:30 GMT"},{"key":"Server","value":"Apache/2.4.33 (Unix)"},{"key":"X-Powered-By","value":"PHP/7.2.7"},{"key":"X-RateLimit-Remaining-Hour","value":"3577"},{"key":"X-RateLimit-Remaining-Minute","value":"358"},{"key":"X-RateLimit-Limit-Hour","value":"3600"},{"key":"X-RateLimit-Limit-Minute","value":"360"},{"key":"Content-Length","value":"65"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": false,\n    \"message\": \"Entity lesson with id 299 not found\"\n}"}],"_postman_id":"38dbfd9b-324e-4bd1-8e22-8706c99543f6"},{"name":"Create lesson access for user by days","id":"93295f8f-03f6-42f3-95a8-59025128b89f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"user_id\": 1,\n    \"expiry_days\": 15\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/v1/lesson/:lessonId/user-by-day","auth":{"type":"apikey","apikey":{"value":"a1443f5d2a5892023a3bdbca304e7287","key":"<key>"},"isInherited":true,"source":{"_postman_id":"b565b990-c096-44db-858b-1cbafa0ee8e8","id":"b565b990-c096-44db-858b-1cbafa0ee8e8","name":"WebToLearn API","type":"collection"}},"urlObject":{"path":["lesson",":lessonId","user-by-day"],"host":["http://localhost:8080/api/v1"],"query":[],"variable":[{"id":"a0b41e12-b27a-482c-b060-01c3ef0d79cb","description":{"content":"<p>Id of lesson where user is added</p>\n","type":"text/plain"},"type":"any","value":"1","key":"lessonId"}]}},"response":[{"id":"d23b6abd-df83-4d7b-80c0-e5f088558d6b","name":"201 Created","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"user_id\": 1,\n    \"expiry_days\": 15\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:8080/api/v1/lesson/:lessonId/user-by-day","host":["http://localhost:8080/api/v1"],"path":["lesson",":lessonId","user-by-day"],"variable":[{"key":"lessonId","value":"2","description":"Id of lesson where user is added"}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 17 Aug 2021 13:42:05 GMT"},{"key":"Server","value":"Apache/2.4.33 (Unix)"},{"key":"X-Powered-By","value":"PHP/7.2.7"},{"key":"X-RateLimit-Remaining-Hour","value":"3593"},{"key":"X-RateLimit-Remaining-Minute","value":"359"},{"key":"X-RateLimit-Limit-Hour","value":"3600"},{"key":"X-RateLimit-Limit-Minute","value":"360"},{"key":"Content-Length","value":"56"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"expired_at\": \"2021-09-01UTC01:42:05.09\"\n}"},{"id":"d329d004-a904-41b0-ad4a-d1557cb23af0","name":"404 Not Found","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"user_id\": 99,\n    \"expiry_days\": 15\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:8080/api/v1/lesson/:lessonId/user-by-day","host":["http://localhost:8080/api/v1"],"path":["lesson",":lessonId","user-by-day"],"variable":[{"key":"lessonId","value":"2222","description":"Id of lesson where user is added"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 17 Aug 2021 13:43:42 GMT"},{"key":"Server","value":"Apache/2.4.33 (Unix)"},{"key":"X-Powered-By","value":"PHP/7.2.7"},{"key":"X-RateLimit-Remaining-Hour","value":"3587"},{"key":"X-RateLimit-Remaining-Minute","value":"357"},{"key":"X-RateLimit-Limit-Hour","value":"3600"},{"key":"X-RateLimit-Limit-Minute","value":"360"},{"key":"Content-Length","value":"62"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": false,\n    \"message\": \"Entity user with id 99 not found\"\n}"}],"_postman_id":"93295f8f-03f6-42f3-95a8-59025128b89f"},{"name":"Create lesson access for user by date","id":"20fafea3-5eb7-4383-a77b-83bec0d85ad3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"user_id\": 1,\n    \"expiry_date\": \"2022-05-05\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/v1/lesson/:lessonId/user-by-date","auth":{"type":"apikey","apikey":{"value":"a1443f5d2a5892023a3bdbca304e7287","key":"<key>"},"isInherited":true,"source":{"_postman_id":"b565b990-c096-44db-858b-1cbafa0ee8e8","id":"b565b990-c096-44db-858b-1cbafa0ee8e8","name":"WebToLearn API","type":"collection"}},"urlObject":{"path":["lesson",":lessonId","user-by-date"],"host":["http://localhost:8080/api/v1"],"query":[],"variable":[{"id":"71ec578e-625a-4825-b84e-44eba084cc2c","description":{"content":"<p>Id of lesson where user is added</p>\n","type":"text/plain"},"type":"any","value":"1","key":"lessonId"}]}},"response":[{"id":"62d4a518-3028-4c2f-802e-fef10fd07f7e","name":"201 Created","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"user_id\": 1,\n    \"expiry_date\": \"2022-05-05\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:8080/api/v1/lesson/:lessonId/user-by-date","host":["http://localhost:8080/api/v1"],"path":["lesson",":lessonId","user-by-date"],"variable":[{"key":"lessonId","value":"2","description":"Id of lesson where user is added"}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 17 Aug 2021 13:42:05 GMT"},{"key":"Server","value":"Apache/2.4.33 (Unix)"},{"key":"X-Powered-By","value":"PHP/7.2.7"},{"key":"X-RateLimit-Remaining-Hour","value":"3593"},{"key":"X-RateLimit-Remaining-Minute","value":"359"},{"key":"X-RateLimit-Limit-Hour","value":"3600"},{"key":"X-RateLimit-Limit-Minute","value":"360"},{"key":"Content-Length","value":"56"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"expired_at\": \"2021-09-01UTC01:42:05.09\"\n}"},{"id":"11299328-1db7-45b0-959e-48931e895a9d","name":"404 Not Found","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"user_id\": 1,\n    \"expiry_date\": \"2022-05-05\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:8080/api/v1/lesson/:lessonId/user-by-day","host":["http://localhost:8080/api/v1"],"path":["lesson",":lessonId","user-by-day"],"variable":[{"key":"lessonId","value":"2222","description":"Id of lesson where user is added"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 17 Aug 2021 13:43:42 GMT"},{"key":"Server","value":"Apache/2.4.33 (Unix)"},{"key":"X-Powered-By","value":"PHP/7.2.7"},{"key":"X-RateLimit-Remaining-Hour","value":"3587"},{"key":"X-RateLimit-Remaining-Minute","value":"357"},{"key":"X-RateLimit-Limit-Hour","value":"3600"},{"key":"X-RateLimit-Limit-Minute","value":"360"},{"key":"Content-Length","value":"62"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": false,\n    \"message\": \"Entity user with id 99 not found\"\n}"}],"_postman_id":"20fafea3-5eb7-4383-a77b-83bec0d85ad3"},{"name":"Delete lesson access for user","id":"d1fbf120-276c-43f6-83d8-6f1395b442b8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:8080/api/v1/lesson/:lessonId/user/:userId","auth":{"type":"apikey","apikey":{"value":"a1443f5d2a5892023a3bdbca304e7287","key":"<key>"},"isInherited":true,"source":{"_postman_id":"b565b990-c096-44db-858b-1cbafa0ee8e8","id":"b565b990-c096-44db-858b-1cbafa0ee8e8","name":"WebToLearn API","type":"collection"}},"urlObject":{"path":["lesson",":lessonId","user",":userId"],"host":["http://localhost:8080/api/v1"],"query":[],"variable":[{"id":"58ed5d1a-f5ff-416e-b396-5c1e6ce08628","description":{"content":"<p>Lesson id</p>\n","type":"text/plain"},"type":"any","value":"2","key":"lessonId"},{"id":"0cf029f8-ed8a-4ce0-bee6-cdbd4339965a","description":{"content":"<p>Id of user</p>\n","type":"text/plain"},"type":"any","value":"1","key":"userId"}]}},"response":[{"id":"487fbdb1-12dc-4f9e-93d4-76a07e6ce93d","name":"200 OK","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"http://localhost:8080/api/v1/lesson/:lessonId/user/:userId","host":["http://localhost:8080/api/v1"],"path":["lesson",":lessonId","user",":userId"],"variable":[{"key":"lessonId","value":"2","description":"Lesson id"},{"key":"userId","value":"1","description":"Id of user"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 17 Aug 2021 13:42:19 GMT"},{"key":"Server","value":"Apache/2.4.33 (Unix)"},{"key":"X-Powered-By","value":"PHP/7.2.7"},{"key":"X-RateLimit-Remaining-Hour","value":"3592"},{"key":"X-RateLimit-Remaining-Minute","value":"358"},{"key":"X-RateLimit-Limit-Hour","value":"3600"},{"key":"X-RateLimit-Limit-Minute","value":"360"},{"key":"Content-Length","value":"16"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true\n}"},{"id":"07d32602-fdaf-43ff-be92-c2cf229262dc","name":"404 Not Found","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"http://localhost:8080/api/v1/lesson/:lessonId/user/:userId","host":["http://localhost:8080/api/v1"],"path":["lesson",":lessonId","user",":userId"],"variable":[{"key":"lessonId","value":"2","description":"Lesson id"},{"key":"userId","value":"99","description":"Id of user"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 17 Aug 2021 13:44:18 GMT"},{"key":"Server","value":"Apache/2.4.33 (Unix)"},{"key":"X-Powered-By","value":"PHP/7.2.7"},{"key":"X-RateLimit-Remaining-Hour","value":"3586"},{"key":"X-RateLimit-Remaining-Minute","value":"356"},{"key":"X-RateLimit-Limit-Hour","value":"3600"},{"key":"X-RateLimit-Limit-Minute","value":"360"},{"key":"Content-Length","value":"62"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": false,\n    \"message\": \"Entity user with id 99 not found\"\n}"}],"_postman_id":"d1fbf120-276c-43f6-83d8-6f1395b442b8"}],"id":"3de0fb7d-332f-4cf8-89ec-4235fb0117a0","description":"<p>Lista zasobów dotycząca lekcji</p>\n","_postman_id":"3de0fb7d-332f-4cf8-89ec-4235fb0117a0","auth":{"type":"apikey","apikey":{"value":"a1443f5d2a5892023a3bdbca304e7287","key":"<key>"},"isInherited":true,"source":{"_postman_id":"b565b990-c096-44db-858b-1cbafa0ee8e8","id":"b565b990-c096-44db-858b-1cbafa0ee8e8","name":"WebToLearn API","type":"collection"}}},{"name":"User","item":[{"name":"Get user list","id":"67c09229-12e6-4720-895e-064ac9d43e1e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/v1/user/list?range=[0,10]&sort=[\"id\", \"DESC\"]&filter=[{\"field\": \"email\", \"value\": \"test\", \"type\": \"contains\"}]","auth":{"type":"apikey","apikey":{"value":"a1443f5d2a5892023a3bdbca304e7287","key":"<key>"},"isInherited":true,"source":{"_postman_id":"b565b990-c096-44db-858b-1cbafa0ee8e8","id":"b565b990-c096-44db-858b-1cbafa0ee8e8","name":"WebToLearn API","type":"collection"}},"urlObject":{"path":["user","list"],"host":["http://localhost:8080/api/v1"],"query":[{"description":{"content":"<p>[offset,limit]</p>\n","type":"text/plain"},"key":"range","value":"[0,10]"},{"description":{"content":"<p>Sortable: id, email</p>\n","type":"text/plain"},"key":"sort","value":"[\"id\", \"DESC\"]"},{"description":{"content":"<p>Filterable:  email</p>\n","type":"text/plain"},"key":"filter","value":"[{\"field\": \"email\", \"value\": \"test\", \"type\": \"contains\"}]"}],"variable":[]}},"response":[{"id":"8297872f-1a6e-4e9d-803e-81f90eab3bb8","name":"200 OK","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:8080/api/v1/user/list?range=[0,10]","host":["http://localhost:8080/api/v1"],"path":["user","list"],"query":[{"key":"range","value":"[0,10]","description":"[offset,limit]"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 17 Aug 2021 08:47:53 GMT"},{"key":"Server","value":"Apache/2.4.33 (Unix)"},{"key":"X-Powered-By","value":"PHP/7.2.7"},{"key":"X-RateLimit-Remaining-Hour","value":"3581"},{"key":"X-RateLimit-Remaining-Minute","value":"355"},{"key":"X-RateLimit-Limit-Hour","value":"3600"},{"key":"X-RateLimit-Limit-Minute","value":"360"},{"key":"Content-Range","value":"users 0-11/5"},{"key":"Content-Length","value":"184"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": \"1\",\n        \"email\": \"ziemniaki@gmail.com\"\n    },\n    {\n        \"id\": \"2\",\n        \"email\": \"test@test.pl\"\n    },\n    {\n        \"id\": \"3\",\n        \"email\": \"test3@test.pl\"\n    },\n    {\n        \"id\": \"4\",\n        \"email\": \"test4@test.pl\"\n    },\n    {\n        \"id\": \"5\",\n        \"email\": \"test5@gmail.com\"\n    }\n]"},{"id":"0772e3b4-1a47-4f97-8c3d-63037de654ac","name":"403 Not authenticated","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:8080/api/v1/training/:trainingId/user/list?range=[0,10]","host":["http://localhost:8080/api/v1"],"path":["training",":trainingId","user","list"],"query":[{"key":"range","value":"[0,10]","description":"[offset,limit]"},{"key":"filter","value":"[{\"field\": \"rescue_email\", \"type\": \"equals\", \"value\": \"yes\"}]","disabled":true}],"variable":[{"key":"trainingId","value":"2","description":"Id of training"}]}},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"Status\": {\n        \"message\": \"Not authenticated\"\n    },\n    \"Code\": 403\n}"}],"_postman_id":"67c09229-12e6-4720-895e-064ac9d43e1e"},{"name":"Get limit users","id":"c2aa92bd-42e2-4046-b7c7-a4e112ea4cd2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/v1/user/limits","auth":{"type":"apikey","apikey":{"value":"a1443f5d2a5892023a3bdbca304e7287","key":"<key>"},"isInherited":true,"source":{"_postman_id":"b565b990-c096-44db-858b-1cbafa0ee8e8","id":"b565b990-c096-44db-858b-1cbafa0ee8e8","name":"WebToLearn API","type":"collection"}},"urlObject":{"path":["user","limits"],"host":["http://localhost:8080/api/v1"],"query":[],"variable":[]}},"response":[{"id":"62073430-8bc0-4e7a-9f29-036b7efcf1d4","name":"200 OK","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/api/v1/user/limits"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 20 Aug 2021 14:23:52 GMT"},{"key":"Server","value":"Apache/2.4.33 (Unix)"},{"key":"X-Powered-By","value":"PHP/7.3.27"},{"key":"X-RateLimit-Remaining-Hour","value":"3584"},{"key":"X-RateLimit-Remaining-Minute","value":"358"},{"key":"X-RateLimit-Limit-Hour","value":"3600"},{"key":"X-RateLimit-Limit-Minute","value":"360"},{"key":"Content-Length","value":"22"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"used\": 4,\n    \"limit\": 300\n}"}],"_postman_id":"c2aa92bd-42e2-4046-b7c7-a4e112ea4cd2"},{"name":"Get user by e-mail","id":"58085cc4-dae9-4606-bc3d-cfdcd520bdd7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/v1/user/by-email/:email?range=[0,10]&filter=[{\"field\": \"email\", \"type\": \"equals\", \"value\": \"yes\"}]&sort=[\"name\", \"ASC\"]","auth":{"type":"apikey","apikey":{"value":"a1443f5d2a5892023a3bdbca304e7287","key":"<key>"},"isInherited":true,"source":{"_postman_id":"b565b990-c096-44db-858b-1cbafa0ee8e8","id":"b565b990-c096-44db-858b-1cbafa0ee8e8","name":"WebToLearn API","type":"collection"}},"urlObject":{"path":["user","by-email",":email"],"host":["http://localhost:8080/api/v1"],"query":[{"description":{"content":"<p>[offset,limit]</p>\n","type":"text/plain"},"key":"range","value":"[0,10]"},{"description":{"content":"<p>Filterable: emailc</p>\n","type":"text/plain"},"key":"filter","value":"[{\"field\": \"email\", \"type\": \"equals\", \"value\": \"yes\"}]"},{"description":{"content":"<p>Sortable: id</p>\n","type":"text/plain"},"key":"sort","value":"[\"name\", \"ASC\"]"}],"variable":[{"id":"9d6ef84b-a7aa-4643-a7ea-70883f44e420","description":{"content":"<p>Email of user to find</p>\n","type":"text/plain"},"type":"any","value":"botzbotowa%40gmail.com","key":"email"}]}},"response":[{"id":"cebd4c5f-afe2-4b1e-85bd-77d4595c8411","name":"200 OK","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:8080/api/v1/user/by-email/:email","host":["http://localhost:8080/api/v1"],"path":["user","by-email",":email"],"variable":[{"key":"email","value":"testy%40gmail.com","description":"Email of user to find"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 17 Aug 2021 08:48:03 GMT"},{"key":"Server","value":"Apache/2.4.33 (Unix)"},{"key":"X-Powered-By","value":"PHP/7.2.7"},{"key":"X-RateLimit-Remaining-Hour","value":"3580"},{"key":"X-RateLimit-Remaining-Minute","value":"354"},{"key":"X-RateLimit-Limit-Hour","value":"3600"},{"key":"X-RateLimit-Limit-Minute","value":"360"},{"key":"Content-Length","value":"41"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"1\",\n    \"email\": \"testy@gmail.com\"\n}"},{"id":"26159f24-1f77-4b53-b8ec-ef12a607cf14","name":"403 Not authenticated","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:8080/api/v1/training/:trainingId/user/list?range=[0,10]","host":["http://localhost:8080/api/v1"],"path":["training",":trainingId","user","list"],"query":[{"key":"range","value":"[0,10]","description":"[offset,limit]"},{"key":"filter","value":"[{\"field\": \"rescue_email\", \"type\": \"equals\", \"value\": \"yes\"}]","disabled":true}],"variable":[{"key":"trainingId","value":"2","description":"Id of training"}]}},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"Status\": {\n        \"message\": \"Not authenticated\"\n    },\n    \"Code\": 403\n}"},{"id":"eacbd1e3-77d6-4fe6-a95e-d588a644d3d7","name":"404 Not Found","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:8080/api/v1/user/by-email/:email?range=[0,10]&filter=[{\"field\": \"rescue_email\", \"type\": \"equals\", \"value\": \"yes\"}]&sort=[\"name\", \"ASC\"]","host":["http://localhost:8080/api/v1"],"path":["user","by-email",":email"],"query":[{"key":"range","value":"[0,10]","description":"[offset,limit]"},{"key":"filter","value":"[{\"field\": \"rescue_email\", \"type\": \"equals\", \"value\": \"yes\"}]","description":"Filterable: emailc"},{"key":"sort","value":"[\"name\", \"ASC\"]","description":"Sortable: id"}],"variable":[{"key":"email","value":"testy77777%40gmail.com","description":"Email of user to find"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 17 Aug 2021 13:50:58 GMT"},{"key":"Server","value":"Apache/2.4.33 (Unix)"},{"key":"X-Powered-By","value":"PHP/7.2.7"},{"key":"X-RateLimit-Remaining-Hour","value":"3576"},{"key":"X-RateLimit-Remaining-Minute","value":"357"},{"key":"X-RateLimit-Limit-Hour","value":"3600"},{"key":"X-RateLimit-Limit-Minute","value":"360"},{"key":"Content-Length","value":"83"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": false,\n    \"message\": \"There is no user with e-mail testy77777@gmail.com\"\n}"}],"_postman_id":"58085cc4-dae9-4606-bc3d-cfdcd520bdd7"},{"name":"Create new user","id":"551863f8-c5a9-436e-badd-12bfd8f3638d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"testy@gmail.com\",\n    \"username\": \"kolejny_test-emaila\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/v1/user","auth":{"type":"apikey","apikey":{"value":"a1443f5d2a5892023a3bdbca304e7287","key":"<key>"},"isInherited":true,"source":{"_postman_id":"b565b990-c096-44db-858b-1cbafa0ee8e8","id":"b565b990-c096-44db-858b-1cbafa0ee8e8","name":"WebToLearn API","type":"collection"}},"urlObject":{"path":["user"],"host":["http://localhost:8080/api/v1"],"query":[],"variable":[]}},"response":[{"id":"80e05d69-81ca-4406-81d5-dc1b669969d9","name":"201 Created","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"boteusz.mailertest1@gmail.com\",\n    \"username\": \"boteusz_drugi\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/v1/user"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 17 Aug 2021 13:42:40 GMT"},{"key":"Server","value":"Apache/2.4.33 (Unix)"},{"key":"X-Powered-By","value":"PHP/7.2.7"},{"key":"X-RateLimit-Remaining-Hour","value":"3591"},{"key":"X-RateLimit-Remaining-Minute","value":"357"},{"key":"X-RateLimit-Limit-Hour","value":"3600"},{"key":"X-RateLimit-Limit-Minute","value":"360"},{"key":"Content-Length","value":"28"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"user_id\": 6\n}"},{"id":"ae9c5e06-0078-40df-8b7e-29d1ec33d336","name":"400 Bad request","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"ziemniaki.mailertest1@gmail.com\",\n    \"username\": \"testy_drugi\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/v1/user"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 17 Aug 2021 13:43:00 GMT"},{"key":"Server","value":"Apache/2.4.33 (Unix)"},{"key":"X-Powered-By","value":"PHP/7.2.7"},{"key":"X-RateLimit-Remaining-Hour","value":"3590"},{"key":"X-RateLimit-Remaining-Minute","value":"356"},{"key":"X-RateLimit-Limit-Hour","value":"3600"},{"key":"X-RateLimit-Limit-Minute","value":"360"},{"key":"Content-Length","value":"125"},{"key":"Connection","value":"close"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": false,\n    \"message\": \"The email field must contain a unique value.\\nThe username field must contain a unique value.\\n\"\n}"},{"id":"fb21148c-f2e4-49ec-96ee-d24cff96e8da","name":"402 Limit reached","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"ziemniaki.mailertest1@gmail.com\",\n    \"username\": \"testy_drugi\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/v1/user"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 17 Aug 2021 13:43:00 GMT"},{"key":"Server","value":"Apache/2.4.33 (Unix)"},{"key":"X-Powered-By","value":"PHP/7.2.7"},{"key":"X-RateLimit-Remaining-Hour","value":"3590"},{"key":"X-RateLimit-Remaining-Minute","value":"356"},{"key":"X-RateLimit-Limit-Hour","value":"3600"},{"key":"X-RateLimit-Limit-Minute","value":"360"},{"key":"Content-Length","value":"125"},{"key":"Connection","value":"close"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"Status\": [{\"message\":\"The user limit has been reached\"}]\n    \"Code\": 402\n}"}],"_postman_id":"551863f8-c5a9-436e-badd-12bfd8f3638d"}],"id":"7a91555e-fa9b-4b1b-8021-69fa69882f09","description":"<p>Lista zasobów dotycząca użytkowników</p>\n","_postman_id":"7a91555e-fa9b-4b1b-8021-69fa69882f09","auth":{"type":"apikey","apikey":{"value":"a1443f5d2a5892023a3bdbca304e7287","key":"<key>"},"isInherited":true,"source":{"_postman_id":"b565b990-c096-44db-858b-1cbafa0ee8e8","id":"b565b990-c096-44db-858b-1cbafa0ee8e8","name":"WebToLearn API","type":"collection"}}},{"name":"Fast Selling","item":[{"name":"Get fast selling list","id":"2ed2d78a-977d-4498-a0e7-434faaad1d65","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/v1/fast-selling/list?range=[0,10]&sort=[\"title\", \"DESC\"]&filter=[{\"field\": \"title\", \"value\": \"a\", \"type\": \"contains\"}]","auth":{"type":"apikey","apikey":{"value":"a1443f5d2a5892023a3bdbca304e7287","key":"<key>"},"isInherited":true,"source":{"_postman_id":"b565b990-c096-44db-858b-1cbafa0ee8e8","id":"b565b990-c096-44db-858b-1cbafa0ee8e8","name":"WebToLearn API","type":"collection"}},"urlObject":{"path":["fast-selling","list"],"host":["http://localhost:8080/api/v1"],"query":[{"description":{"content":"<p>[offset,limit]</p>\n","type":"text/plain"},"key":"range","value":"[0,10]"},{"description":{"content":"<p>Sortable: id, name, title, price</p>\n","type":"text/plain"},"key":"sort","value":"[\"title\", \"DESC\"]"},{"description":{"content":"<p>Filterable:  name, title, seo,  active</p>\n","type":"text/plain"},"key":"filter","value":"[{\"field\": \"title\", \"value\": \"a\", \"type\": \"contains\"}]"}],"variable":[]}},"response":[{"id":"b8b2ee8d-bb37-49a1-961c-d4bb0255c333","name":"200ok","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:8080/api/v1/fast-selling/list?range=[0,10]","host":["http://localhost:8080/api/v1"],"path":["fast-selling","list"],"query":[{"key":"range","value":"[0,10]","description":"[offset,limit]"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 13 Aug 2021 09:22:01 GMT"},{"key":"Server","value":"Apache/2.4.33 (Unix)"},{"key":"X-Powered-By","value":"PHP/7.2.7"},{"key":"X-RateLimit-Remaining-Hour","value":"3598"},{"key":"X-RateLimit-Remaining-Minute","value":"359"},{"key":"X-RateLimit-Limit-Hour","value":"3600"},{"key":"X-RateLimit-Limit-Minute","value":"360"},{"key":"Content-Range","value":"fastSellings 0-11/1"},{"key":"Content-Length","value":"187"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": \"1\",\n        \"name\": \"Przykładowa Szybka Sprzedaż\",\n        \"title\": \"Przykładowa Szybka Sprzedaż\",\n        \"seo\": \"przykladowa-sprzedaz\",\n        \"price\": \"8.00\",\n        \"price_trial\": \"5.00\",\n        \"active\": \"yes\",\n        \"abonaments\": [],\n        \"trainings\": [],\n        \"lessons\": [\n            {\n                \"id\": \"1\",\n                \"name\": \"Przykładowa lekcja\"\n            }\n        ]\n    },\n    {\n        \"id\": \"2\",\n        \"name\": \"aaaaaa\",\n        \"title\": \"aaaaaa\",\n        \"seo\": \"601\",\n        \"price\": \"0.00\",\n        \"price_trial\": \"0.00\",\n        \"active\": \"yes\",\n        \"abonaments\": [\n            {\n                \"id\": \"1\",\n                \"name\": \"Abonament Podstawowy\"\n            }\n        ],\n        \"trainings\": [],\n        \"lessons\": []\n    }\n]"},{"id":"7aa22abe-b7bb-47f1-b7fc-c2b53835f473","name":"403 Not authenticated","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:8080/api/v1/training/:trainingId/user/list?range=[0,10]","host":["http://localhost:8080/api/v1"],"path":["training",":trainingId","user","list"],"query":[{"key":"range","value":"[0,10]","description":"[offset,limit]"},{"key":"filter","value":"[{\"field\": \"rescue_email\", \"type\": \"equals\", \"value\": \"yes\"}]","disabled":true}],"variable":[{"key":"trainingId","value":"2","description":"Id of training"}]}},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"Status\": {\n        \"message\": \"Not authenticated\"\n    },\n    \"Code\": 403\n}"}],"_postman_id":"2ed2d78a-977d-4498-a0e7-434faaad1d65"}],"id":"c8206534-c1f6-473a-90ce-4526019c7e49","_postman_id":"c8206534-c1f6-473a-90ce-4526019c7e49","description":"","auth":{"type":"apikey","apikey":{"value":"a1443f5d2a5892023a3bdbca304e7287","key":"<key>"},"isInherited":true,"source":{"_postman_id":"b565b990-c096-44db-858b-1cbafa0ee8e8","id":"b565b990-c096-44db-858b-1cbafa0ee8e8","name":"WebToLearn API","type":"collection"}}},{"name":"Exam","item":[{"name":"Get exam list","id":"82593de1-a023-42e5-8161-f1b59533fcf4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/v1/exam/list","auth":{"type":"apikey","apikey":{"value":"a1443f5d2a5892023a3bdbca304e7287","key":"<key>"},"isInherited":true,"source":{"_postman_id":"b565b990-c096-44db-858b-1cbafa0ee8e8","id":"b565b990-c096-44db-858b-1cbafa0ee8e8","name":"WebToLearn API","type":"collection"}},"urlObject":{"path":["exam","list"],"host":["http://localhost:8080/api/v1"],"query":[],"variable":[]}},"response":[{"id":"bdecf544-5006-466a-ba49-323cd753d6ef","name":"200 OK","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:8080/api/v1/user/list?range=[0,10]","host":["http://localhost:8080/api/v1"],"path":["user","list"],"query":[{"key":"range","value":"[0,10]","description":"[offset,limit]"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 17 Aug 2021 08:47:53 GMT"},{"key":"Server","value":"Apache/2.4.33 (Unix)"},{"key":"X-Powered-By","value":"PHP/7.2.7"},{"key":"X-RateLimit-Remaining-Hour","value":"3581"},{"key":"X-RateLimit-Remaining-Minute","value":"355"},{"key":"X-RateLimit-Limit-Hour","value":"3600"},{"key":"X-RateLimit-Limit-Minute","value":"360"},{"key":"Content-Range","value":"users 0-11/5"},{"key":"Content-Length","value":"184"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n  {\n    \"id\": \"13\",\n    \"name\": \"EGZAMIN DO NOWEJ LEKCJI\"\n  }\n]"},{"id":"9688da31-942d-4d5d-a33e-ba958a6b9122","name":"403 Not authenticated","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:8080/api/v1/exam/list","host":["http://localhost:8080/api/v1"],"path":["exam","list"],"query":[{"key":"filter","value":"[{\"field\": \"rescue_email\", \"type\": \"equals\", \"value\": \"yes\"}]","disabled":true}]}},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"Status\": {\n        \"message\": \"Not authenticated\"\n    },\n    \"Code\": 403\n}"}],"_postman_id":"82593de1-a023-42e5-8161-f1b59533fcf4"},{"name":"Get exam users list","id":"278ff4e6-9ba5-4579-a1ea-719749667337","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/v1/exam/:examID/user/list","auth":{"type":"apikey","apikey":{"value":"a1443f5d2a5892023a3bdbca304e7287","key":"<key>"},"isInherited":true,"source":{"_postman_id":"b565b990-c096-44db-858b-1cbafa0ee8e8","id":"b565b990-c096-44db-858b-1cbafa0ee8e8","name":"WebToLearn API","type":"collection"}},"urlObject":{"path":["exam",":examID","user","list"],"host":["http://localhost:8080/api/v1"],"query":[],"variable":[{"type":"any","value":"","key":"examID"}]}},"response":[{"id":"f7bfd2ea-e088-41e9-878e-f80ace4758f3","name":"200 OK","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:8080/api/v1/exam/:examID/user/list","host":["http://localhost:8080/api/v1"],"path":["exam",":examID","user","list"],"query":[{"key":"filter","value":"","disabled":true}],"variable":[{"key":"examID","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 17 Aug 2021 08:47:40 GMT"},{"key":"Server","value":"Apache/2.4.33 (Unix)"},{"key":"X-Powered-By","value":"PHP/7.2.7"},{"key":"X-RateLimit-Remaining-Hour","value":"3582"},{"key":"X-RateLimit-Remaining-Minute","value":"356"},{"key":"X-RateLimit-Limit-Hour","value":"3600"},{"key":"X-RateLimit-Limit-Minute","value":"360"},{"key":"Content-Range","value":"users 0-11/1"},{"key":"Content-Length","value":"83"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n  {\n    \"id\": \"1\",\n    \"user_id\": \"9\",\n    \"exam_id\": \"4\",\n    \"status\": \"passed\",\n    \"start_time\": \"1731583732\"\n  },\n  {\n    \"id\": \"2\",\n    \"user_id\": \"9\",\n    \"exam_id\": \"4\",\n    \"status\": \"notpassed\",\n    \"start_time\": \"1731591405\"\n  }\n]"},{"id":"326e0d5f-b209-4301-bb2b-5c0dc004e413","name":"403 Not authenticated","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:8080/api/v1/exam/:examID/user/list","host":["http://localhost:8080/api/v1"],"path":["exam",":examID","user","list"],"variable":[{"key":"examID","value":""}]}},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"Status\": {\n        \"message\": \"Not authenticated\"\n    },\n    \"Code\": 403\n}"},{"id":"b3b7b832-4ac5-49bc-b48e-12f3f3dc50a0","name":"404 Not Found","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:8080/api/v1/exam/:examID/user/list","host":["http://localhost:8080/api/v1"],"path":["exam",":examID","user","list"],"variable":[{"key":"examID","value":""}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 17 Aug 2021 13:50:30 GMT"},{"key":"Server","value":"Apache/2.4.33 (Unix)"},{"key":"X-Powered-By","value":"PHP/7.2.7"},{"key":"X-RateLimit-Remaining-Hour","value":"3577"},{"key":"X-RateLimit-Remaining-Minute","value":"358"},{"key":"X-RateLimit-Limit-Hour","value":"3600"},{"key":"X-RateLimit-Limit-Minute","value":"360"},{"key":"Content-Length","value":"65"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": false,\n    \"message\": \"Entity exam with id 299 not found\"\n}"}],"_postman_id":"278ff4e6-9ba5-4579-a1ea-719749667337"}],"id":"6b61be93-9d8b-4fba-8964-72a5fa9a5bd8","description":"<p>Lista zasobów dotyczące egzaminów</p>\n","_postman_id":"6b61be93-9d8b-4fba-8964-72a5fa9a5bd8","auth":{"type":"apikey","apikey":{"value":"a1443f5d2a5892023a3bdbca304e7287","key":"<key>"},"isInherited":true,"source":{"_postman_id":"b565b990-c096-44db-858b-1cbafa0ee8e8","id":"b565b990-c096-44db-858b-1cbafa0ee8e8","name":"WebToLearn API","type":"collection"}}},{"name":"test 404","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 404\", function () {","    pm.response.to.have.status(404);","});"],"type":"text/javascript","id":"a333727a-9599-42bd-a45a-0c29012c2723"}}],"id":"64ee6e38-b237-426b-9c0b-e76ee570f8f4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/v1/sdsdada","description":"<p>Przykładowe wywołanie błędu 404</p>\n","auth":{"type":"apikey","apikey":{"value":"a1443f5d2a5892023a3bdbca304e7287","key":"<key>"},"isInherited":true,"source":{"_postman_id":"b565b990-c096-44db-858b-1cbafa0ee8e8","id":"b565b990-c096-44db-858b-1cbafa0ee8e8","name":"WebToLearn API","type":"collection"}},"urlObject":{"path":["sdsdada"],"host":["http://localhost:8080/api/v1"],"query":[],"variable":[]}},"response":[{"id":"c7a55b85-d691-4549-ab04-70e463e53b56","name":"200ok","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/api/v1/sdsdada"},"status":"Not Found","code":404,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"64ee6e38-b237-426b-9c0b-e76ee570f8f4"},{"name":"Test Api","id":"48d5c588-5110-4e62-bec3-941139c52b61","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/v1","auth":{"type":"apikey","apikey":{"value":"a1443f5d2a5892023a3bdbca304e7287","key":"<key>"},"isInherited":true,"source":{"_postman_id":"b565b990-c096-44db-858b-1cbafa0ee8e8","id":"b565b990-c096-44db-858b-1cbafa0ee8e8","name":"WebToLearn API","type":"collection"}},"urlObject":{"host":["http://localhost:8080/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"48d5c588-5110-4e62-bec3-941139c52b61"}],"auth":{"type":"apikey","apikey":{"value":"a1443f5d2a5892023a3bdbca304e7287","key":"<key>"}},"event":[{"listen":"prerequest","script":{"id":"d11fa9ad-bfbf-4481-9edc-38cecf686236","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"42d7b1da-f958-4579-ae12-0ba625b80637","type":"text/javascript","exec":[""]}}],"variable":[{"key":"domain","value":"http://localhost:8080/api/v1"},{"key":"key","value":"a1443f5d2a5892023a3bdbca304e7287"}]}