{"info":{"_postman_id":"b5a864f4-f389-4e1a-a138-dd3c7047430b","name":"Apollo","description":"<html><head></head><body><h2 id=\"allgemeine-informationen\">Allgemeine Informationen</h2>\n<h4 id=\"github\">Github</h4>\n<p><a href=\"https://github.com/AlphaSoundZ/apollo\">Link</a></p>\n<h4 id=\"token\">Token</h4>\n<p>Bei dem Autentifizierungtyp handelt es sich um einen Bearer Token, welcher im Authorization Header gesendet wird. Die Berechtigungen der Token lassen sich in der Datenbank unter der Tabelle <code>token</code> nachlesen und befinden sich im Payload unter <code>permissions</code>. Den Token erhält man über \"get token\". Dieser ist nicht Laufzeit beschränkt.</p>\n<p>Wenn der Token nicht registriert ist, entspricht <code>response</code> den Code <code>88</code>. Wenn der Token registriert ist, aber nicht die Berechtigung auf die geforderten Rechte zugewiesen hat ist der <code>response</code> Code <code>99</code>.</p>\n<h4 id=\"input\">Input</h4>\n<p>Es müssen immer alle notwendigen Inputs angegeben werden. Wenn ein oder mehrere Inputs fehlen ist der <code>response</code> Code <code>400</code>. Der <code>http_response_code</code> wird ebenfalls zurückgegeben.</p>\n<h4 id=\"response-noch-nicht-so-umgesetzt\">Response (noch nicht so umgesetzt)</h4>\n<p>Jede Response besteht aus einer <code>message</code> und <code>response</code>. Bei der <code>response</code> handelt es sich um einen Code, der aussagt, ob der Prozess der Anfrage erfolgreich war, oder wenn nicht, um welchen Fehlercode es sich handelt. In <code>message</code> wird der Fehler/Prozess kurz erläutert. Der Fehlercode steht auch immer im <code>http_response_code</code>.</p>\n<p>Codes:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Code</strong></th>\n<th><strong>Beschreibung</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>400</td>\n<td>ein oder mehrere Inputs fehlen, Input falsch</td>\n</tr>\n<tr>\n<td>401</td>\n<td>Token ist nicht autorisiert</td>\n</tr>\n<tr>\n<td>200</td>\n<td>Anfrage wurde erfolgreich bearbeitet</td>\n</tr>\n</tbody>\n</table>\n</div><p>Bei dem Request <code>Book</code> gibt es spezielle Response Codes, welche in dem Kapitel <code>Book</code> erläutert werden.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"20621332","collectionId":"b5a864f4-f389-4e1a-a138-dd3c7047430b","publishedId":"Uz59MyeK","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2022-05-24T21:08:12.000Z"},"item":[{"name":"Search and select table","event":[{"listen":"test","script":{"id":"b6aeced4-4c61-473c-8277-b789d68dd63f","exec":[""],"type":"text/javascript"}}],"id":"fe46d293-1b78-41e1-9883-5355f8629b8a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJwZXJtaXNzaW9ucyI6WzEsMiwzLDQsNSw2LDcsOCw5LDEwXSwic3ViIjoxLCJpYXQiOjE2NjM0MjEyNDJ9.zmFxIbIyuapbDOrLptyuedEP433PaKc9Y4fTCylYokI"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"table\" : [{\"table\" : \"user\"}],\r\n    \"filter\" : {},\r\n    \"column\" : [\"user.user_id\", \"user.user_firstname\", \"user.user_lastname\", \"user.user_class\"],\r\n    \"search\" : {\"value\" : \"Cleven Nils\", \"column\" : [\"user_lastname\"], \"limit\" : 0}\r\n}","options":{"raw":{"language":"json"}}},"url":"10.4.8.100/apollo/api/v5/search.php","description":"<h2 id=\"input\"><strong>Input</strong></h2>\n<h4 id=\"table\"><code>table</code></h4>\n<p>Jede Tabelle in <code>table</code> hat eine eigene <code>table</code> Eigenschaft. In der steht der Name der Tabelle (siehe Datenbank). Alle außer die erste Tabelle müssen einen <code>link</code> besitzen. Mit dem <code>link</code> wird festgelegt, welche Spalten der Tabellen miteinander verknüpft werden sollen. Der <code>link</code> besitzt zwei Werte: die Spalte der eigenen Tabelle und die Spalte der anderen Tabelle, welche verknüpft werden soll. Bei Link gibt man den Namen der Tabelle und den der Spalte an, was man mit einem <code>.</code> voneinander trennt.</p>\n<h4 id=\"filter\"><code>filter</code></h4>\n<p>Mit dem <code>filter</code> kann man u.a. die Anzahl und den Offset der Zeilen einstellen. <code>page</code> ist die Seite und <code>size</code> stellt die Länge da. Wenn <code>page</code> 0 ist und size <code>25</code> , dann erhält man die ersten 25 Einträge. Wenn man <code>page</code> auf 1 setzt, sieht man die darauffolgenden 25 Einträge. Mit <code>orderby</code> und <code>direction</code> kann man die Reihenfolge der Zeilen modifizieren. Bei <code>orderby</code> gibt man die Spalte an, die zur Sortierung verwendet wird. Hier gibt man den Namen der Spalte ohne Tabellennamen an. Mit <code>direction</code> legt man fest, ob die Reihenfolge absteigend oder aufsteigend sein soll. Dazu verwendet man <code>ASC</code> (aufsteigend) oder <code>DESC</code> (absteigend).</p>\n<h4 id=\"column\"><code>column</code></h4>\n<p>Bei <code>column</code> müssen alle Spalten stehen, die sichbar sein sollen. Spalten für Sortierung (<code>orderby</code>) oder das Verlinken (<code>link</code>) müssen dort nicht aufgelistet sein, sofern sie nicht angezeigt werden sollen. Es ist wichtig, dass man immer Tabellen- und Spaltenbezeichnung angibt: <code>TABLE.COLUMN</code>. Diese werden mit einem <code>.</code> voneinander getrennt.</p>\n<h4 id=\"search\"><code>search</code></h4>\n<p>In <code>search</code> wird das Suchwort in <code>value</code> mitgegeben. Außerdem legt man mit <code>column</code> in <code>search</code> die zu durchsuchenden Spalten fest. Die in <code>search -&gt; column</code> angegebenen Spalten müssen in der Tabelle sichtbar sein - sie müssen auch in <code>column</code> angegeben sein.</p>\n<p>Bei der Suche wird Groß- und Kleinschreibung ignoriert. Man kann außerdem eine Tabelle auch eine Suche durchzuführen auslesen, indem man die <code>search</code> Eigenschaft weglässt.</p>\n","urlObject":{"path":["search.php"],"host":["10.4.8.100/apollo/api/v5"],"query":[],"variable":[]}},"response":[{"id":"da0349b0-36dc-43e0-a825-e3a718bf2401","name":"Select one table","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"table\" : [{\"table\" : \"devices\"}],\r\n    \"filter\" : {\"page\" : 0, \"size\" : 5, \"orderby\" : \"device_id\", \"direction\" : \"ASC\"},\r\n    \"column\" : [\"devices.device_id\", \"devices.device_uid\"]\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8080/search.php"},"status":"OK","code":200,"_postman_previewlanguage":"html","header":[{"key":"Host","value":"localhost:8080"},{"key":"Date","value":"Sun, 21 Aug 2022 13:43:30 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.1.4"},{"key":"Content-type","value":"text/html; charset=UTF-8"}],"cookie":[],"responseTime":null,"body":"{\"message\":\"Selection success\",\"response\":2,\"table\":[{\"device_id\":1,\"0\":1,\"device_uid\":\"2e9ab22\",\"1\":\"2e9ab22\"},{\"device_id\":2,\"0\":2,\"device_uid\":\"8846fce\",\"1\":\"8846fce\"},{\"device_id\":3,\"0\":3,\"device_uid\":\"884d6cc\",\"1\":\"884d6cc\"},{\"device_id\":4,\"0\":4,\"device_uid\":\"8849ec9\",\"1\":\"8849ec9\"},{\"device_id\":5,\"0\":5,\"device_uid\":\"884d5cc\",\"1\":\"884d5cc\"}]}"},{"id":"da836f39-22f8-45fa-ae37-c9d8ee152c28","name":"Select multiple tables","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"table\" : [{\"table\" : \"devices\"}, {\"table\" : \"property_device_type\", \"link\" : [\"property_device_type.device_type_id\", \"devices.device_type\"]}],\r\n    \"filter\" : {\"page\" : 0, \"size\" : 5, \"orderby\" : \"device_id\", \"direction\" : \"ASC\"},\r\n    \"column\" : [\"devices.device_id\", \"devices.device_uid\", \"device_type_name\"]\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8080/search.php"},"status":"OK","code":200,"_postman_previewlanguage":"html","header":[{"key":"Host","value":"localhost:8080"},{"key":"Date","value":"Sun, 21 Aug 2022 13:48:19 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.1.4"},{"key":"Content-type","value":"text/html; charset=UTF-8"}],"cookie":[],"responseTime":null,"body":"{\"message\":\"Selection success\",\"response\":2,\"table\":[{\"device_id\":1,\"0\":1,\"device_uid\":\"2e9ab22\",\"1\":\"2e9ab22\",\"device_type_name\":\"UserCard\",\"2\":\"UserCard\"},{\"device_id\":2,\"0\":2,\"device_uid\":\"8846fce\",\"1\":\"8846fce\",\"device_type_name\":\"Surface Book\",\"2\":\"Surface Book\"},{\"device_id\":3,\"0\":3,\"device_uid\":\"884d6cc\",\"1\":\"884d6cc\",\"device_type_name\":\"Surface Book\",\"2\":\"Surface Book\"},{\"device_id\":4,\"0\":4,\"device_uid\":\"8849ec9\",\"1\":\"8849ec9\",\"device_type_name\":\"Surface Book\",\"2\":\"Surface Book\"},{\"device_id\":5,\"0\":5,\"device_uid\":\"884d5cc\",\"1\":\"884d5cc\",\"device_type_name\":\"Surface Book\",\"2\":\"Surface Book\"}]}"},{"id":"4e1226fd-3c4b-48a2-837a-ceaaaee70faa","name":"Search","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"table\" : [{\"table\" : \"user\"}],\r\n    \"filter\" : {\"page\" : 0, \"size\" : 5},\r\n    \"column\" : [\"user.user_id\", \"user.user_firstname\", \"user.user_lastname\", \"user.user_class\"],\r\n    \"search\" : {\"value\" : \"Holst\", \"column\" : [\"user_lastname\"], \"limit\" : 2}\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8080/search.php"},"status":"OK","code":200,"_postman_previewlanguage":"html","header":[{"key":"Host","value":"localhost:8080"},{"key":"Date","value":"Sun, 21 Aug 2022 13:43:30 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.1.4"},{"key":"Content-type","value":"text/html; charset=UTF-8"}],"cookie":[],"responseTime":null,"body":"{\"message\":\"Selection success\",\"response\":2,\"table\":[{\"device_id\":1,\"0\":1,\"device_uid\":\"2e9ab22\",\"1\":\"2e9ab22\"},{\"device_id\":2,\"0\":2,\"device_uid\":\"8846fce\",\"1\":\"8846fce\"},{\"device_id\":3,\"0\":3,\"device_uid\":\"884d6cc\",\"1\":\"884d6cc\"},{\"device_id\":4,\"0\":4,\"device_uid\":\"8849ec9\",\"1\":\"8849ec9\"},{\"device_id\":5,\"0\":5,\"device_uid\":\"884d5cc\",\"1\":\"884d5cc\"}]}"}],"_postman_id":"fe46d293-1b78-41e1-9883-5355f8629b8a"},{"name":"Add a device","id":"6ec1d383-23f7-4401-994e-79378446fff9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJwZXJtaXNzaW9ucyI6WzEsMiwzLDQsNSw2LDcsOCw5LDEwXSwic3ViIjoxLCJpYXQiOjE2NjM0MjEyNDJ9.zmFxIbIyuapbDOrLptyuedEP433PaKc9Y4fTCylYokI"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"rfid_code\": \"65tst3c94\",\r\n    \"type\": \"h3\"\r\n}","options":{"raw":{"language":"json"}}},"url":"10.4.8.100/apollo/api/v5/create_device.php","description":"<h2 id=\"input\">Input</h2>\n<p>In <code>rfid_code</code> steht die UID des Geräts bzw. der Usercard. In <code>type</code> wird der Gerätetyp festgelegt. Alle verfügbaren Gerätetypen sind in der Tabelle <em>property_device_type</em> hinterlegt.</p>\n<h2 id=\"output\">Output</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\"response\":\"1\",\"message\":\"success\"}\n\n</code></pre>\n","urlObject":{"path":["create_device.php"],"host":["10.4.8.100/apollo/api/v5"],"query":[],"variable":[]}},"response":[{"id":"285befe2-f3cd-4e83-ab10-e9014648a7f2","name":"Add a device","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"rfid_code\": \"654\",\r\n    \"type\": \"3\"\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8080/add_device.php"},"status":"OK","code":200,"_postman_previewlanguage":"html","header":[{"key":"Host","value":"localhost:8080"},{"key":"Date","value":"Sat, 20 Aug 2022 18:59:24 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.1.4"},{"key":"Content-type","value":"text/html; charset=UTF-8"}],"cookie":[],"responseTime":null,"body":"{\"response\":\"1\",\"message\":\"success\"}"}],"_postman_id":"6ec1d383-23f7-4401-994e-79378446fff9"},{"name":"Create User","id":"29bcb9b8-ad9b-41a5-a65d-c37e7654d0c8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJwZXJtaXNzaW9ucyI6WzEsMiwzLDQsNSw2LDcsOCw5LDEwXSwic3ViIjoxLCJpYXQiOjE2NjM0MjEyNDJ9.zmFxIbIyuapbDOrLptyuedEP433PaKc9Y4fTCylYokI"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"firstname\": \"ATest4905\",\r\n    \"lastname\": \"ATest4805\",\r\n    \"class\": \"1\",\r\n    \"usercard_uid\": \"7123\",\r\n    \"new_usercard\": \"true\",\r\n    \"new_user\" : \"true\"\r\n}","options":{"raw":{"language":"json"}}},"url":"10.4.8.100/apollo/api/v5/create_lending_package.php","description":"<h2 id=\"input\">Input</h2>\n<p><code>firstname</code> - Vorname des Users</p>\n<p><code>lastname</code> - Nachname des Users</p>\n<p><code>class</code> - Klasse des Users. Wird als Id angegeben. Die Id ist in der Tabelle <em>property_class</em> hinterlegt.</p>\n<p><code>newusercard</code> - Hier legt man fest, ob eine neue Usercard erstellt werden soll, oder die Usercard schon vorhanden ist. Dies legt man mit <code>true</code> oder <code>false</code> fest. Wenn man <code>newusercard</code> auf <code>\"auto\"</code> setzt, wird automatisch ausgewählt, ob eine Usercard erstellt werden muss.</p>\n","urlObject":{"path":["create_lending_package.php"],"host":["10.4.8.100/apollo/api/v5"],"query":[],"variable":[]}},"response":[{"id":"77399b38-546b-48a2-949e-92be63f982ce","name":"Add a user and create a usercard","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"firstname\": \"Test4905\",\r\n    \"lastname\": \"Test4805\",\r\n    \"class\": \"1\",\r\n    \"usercard_uid\": \"123123123\",\r\n    \"new_usercard\": \"auto\"\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8080/add_user.php"},"status":"OK","code":200,"_postman_previewlanguage":"html","header":[{"key":"Host","value":"localhost:8080"},{"key":"Date","value":"Sat, 20 Aug 2022 18:42:11 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.1.4"},{"key":"Content-type","value":"text/html; charset=UTF-8"}],"cookie":[],"responseTime":null,"body":"{\"response\":3,\"message\":\"Usercard wird erstellt und zugewiesen\"}"}],"_postman_id":"29bcb9b8-ad9b-41a5-a65d-c37e7654d0c8"},{"name":"Update","id":"dc6a8ccf-c5dd-4695-8e8a-7ea7d9ba924b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJwZXJtaXNzaW9ucyI6WzEsMiwzLDQsNSw2LDcsOCw5LDEwXSwic3ViIjoxLCJpYXQiOjE2NjM0MjEyNDJ9.zmFxIbIyuapbDOrLptyuedEP433PaKc9Y4fTCylYokI"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"table\": \"user\",\r\n    \"id\": 1,\r\n    \"update\" : {\"user_firstname\" : \"Test Vorname\", \"user_lastname\" : \"Test Nachname\"}\r\n}","options":{"raw":{"language":"json"}}},"url":"10.4.8.100/apollo/api/v5/update.php","description":"<h2 id=\"input\">Input</h2>\n<p>In <code>rfid_code</code> steht die UID des Geräts bzw. der Usercard. In <code>type</code> wird der Gerätetyp festgelegt. Alle verfügbaren Gerätetypen sind in der Tabelle <em>property_device_type</em> hinterlegt.</p>\n","urlObject":{"path":["update.php"],"host":["10.4.8.100/apollo/api/v5"],"query":[],"variable":[]}},"response":[{"id":"f07b6029-10df-4a37-886a-e9fd5fa58663","name":"Update user","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"table\": \"user\",\r\n    \"id\": 1,\r\n    \"update\" : {\"user_firstname\" : \"Test Vorname\", \"user_lastname\" : \"Test Nachname\"}\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8080/update.php"},"status":"OK","code":200,"_postman_previewlanguage":"html","header":[{"key":"Host","value":"localhost:8080"},{"key":"Date","value":"Sun, 21 Aug 2022 19:29:52 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.1.4"},{"key":"Content-type","value":"text/html; charset=UTF-8"}],"cookie":[],"responseTime":null,"body":"{\"message\":\"Update success\",\"response\":1}"}],"_postman_id":"dc6a8ccf-c5dd-4695-8e8a-7ea7d9ba924b"},{"name":"Delete","id":"7246b209-d9f7-4636-847f-d3728fe16b3b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJwZXJtaXNzaW9ucyI6WzEsMiwzLDQsNSw2LDcsOCw5LDEwXSwic3ViIjoxLCJpYXQiOjE2NjM0MjEyNDJ9.zmFxIbIyuapbDOrLptyuedEP433PaKc9Y4fTCylYokI"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"table\": \"event\",\r\n    \"id\": 2\r\n}","options":{"raw":{"language":"json"}}},"url":"10.4.8.100/apollo/api/v5/delete.php","description":"<h2 id=\"input\">Input</h2>\n<p>In <code>rfid_code</code> steht die UID des Geräts bzw. der Usercard. In <code>type</code> wird der Gerätetyp festgelegt. Alle verfügbaren Gerätetypen sind in der Tabelle <em>property_device_type</em> hinterlegt.</p>\n","urlObject":{"path":["delete.php"],"host":["10.4.8.100/apollo/api/v5"],"query":[],"variable":[]}},"response":[{"id":"ea4e0d6d-a077-4da3-8353-6e9bf7394093","name":"Delete","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"table\": \"event\",\r\n    \"id\": 2\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8080/delete.php"},"status":"OK","code":200,"_postman_previewlanguage":"html","header":[{"key":"Host","value":"localhost:8080"},{"key":"Date","value":"Sun, 21 Aug 2022 19:42:06 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.1.4"},{"key":"Content-type","value":"text/html; charset=UTF-8"}],"cookie":[],"responseTime":null,"body":"{\"message\":\"Delete success\",\"response\":1}"}],"_postman_id":"7246b209-d9f7-4636-847f-d3728fe16b3b"},{"name":"Get token","id":"1182ded7-b675-475b-a536-5e9a85c77c65","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"username\": \"test_usr\",\r\n    \"password\": \"22102525428347479606\"\r\n}","options":{"raw":{"language":"json"}}},"url":"10.4.8.100/apollo/api/v5/gettoken.php","description":"<h2 id=\"input\"><strong>Input</strong></h2>\n<p>Bei dem Feld <code>username</code> steht der Benutzername. Bei <code>password</code> steht das Passwort.</p>\n","urlObject":{"path":["gettoken.php"],"host":["10.4.8.100/apollo/api/v5"],"query":[],"variable":[]}},"response":[{"id":"dafc6fe0-1e62-4b5d-b796-d7da723ada10","name":"Get token","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"username\": \"test_usr\",\r\n    \"password\": \"test_pwd\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{[base_path}}/get_token.php"},"status":"OK","code":200,"_postman_previewlanguage":"html","header":[{"key":"Host","value":"localhost:8080"},{"key":"Date","value":"Sat, 20 Aug 2022 18:25:15 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.1.4"},{"key":"Content-type","value":"text/html; charset=UTF-8"}],"cookie":[],"responseTime":null,"body":"{\"response\":0,\"message\":\"success\",\"jwt\":\"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJwZXJtaXNzaW9ucyI6eyIxIjoiYWRkX2RldmljZSIsIjIiOiJhZGRfdXNlciIsIjMiOiJzZWFyY2giLCI0IjoibG9naW4iLCI1IjoicmVzZXQiLCI2IjoicHJlYm9vayJ9fQ.zDtJyKnBv4PKvKqULG61fI8c_J_LIxm2jIpRob-g8SM\"}"}],"_postman_id":"1182ded7-b675-475b-a536-5e9a85c77c65"},{"name":"Check token","id":"b0568e29-e2f2-49ae-9fc9-b17666d86a1e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJwZXJtaXNzaW9ucyI6WzEsMiwzLDQsNSw2LDcsOCw5LDEwXSwic3ViIjoxLCJpYXQiOjE2NjM0MjEyNDJ9.zmFxIbIyuapbDOrLptyuedEP433PaKc9Y4fTCylYokI"}]},"isInherited":false},"method":"POST","header":[],"url":"10.4.8.100/apollo/api/v5/check_token.php","description":"<h2 id=\"input\">Input</h2>\n<p>Der einzige Input ist der Token, welcher in die Authorization kommt. Der Body bleibt leer.</p>\n<h2 id=\"output\">Output</h2>\n<p>Bei <code>permissions</code> sieht man die Rechte, des gegebenen Tokens. Dieser Array besteht aus einem Schlüssel, welcher die <code>permission_id</code> darstellt, und einem Wert, der den <code>permission_text</code> zu der <code>permission_id</code> angibt.</p>\n","urlObject":{"path":["check_token.php"],"host":["10.4.8.100/apollo/api/v5"],"query":[],"variable":[]}},"response":[{"id":"41085ae3-d26b-4c8c-b658-43c06c3c9411","name":"Check token","originalRequest":{"method":"POST","header":[],"url":"10.4.8.100/apollo/api/v5/check_token.php"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8080"},{"key":"Date","value":"Sat, 17 Sep 2022 13:27:46 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.1.4"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"response\": \"SUCCESS\",\n    \"message\": \"Success: Token ist valide\",\n    \"permissions\": [\n        1,\n        2,\n        3,\n        4,\n        5,\n        6,\n        7,\n        8,\n        9,\n        10\n    ]\n}"}],"_postman_id":"b0568e29-e2f2-49ae-9fc9-b17666d86a1e"},{"name":"Reset","id":"5cdd811a-ae20-4541-b56a-03f2bdc95e04","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJwZXJtaXNzaW9ucyI6WzEsMiwzLDQsNSw2LDcsOCw5LDEwXSwic3ViIjoxLCJpYXQiOjE2NjM0MjEyNDJ9.zmFxIbIyuapbDOrLptyuedEP433PaKc9Y4fTCylYokI"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"table\": \"prebook\",\r\n    \"reset_id\": true\r\n}","options":{"raw":{"language":"json"}}},"url":"10.4.8.100/apollo/api/v5/reset.php","description":"<h2 id=\"input\">Input</h2>\n<p><code>table</code> - Tabellenname, der zurückgesetzt werden soll</p>\n<p><code>reset_id</code> - Soll auch die id der Zeilen zurückgesetzt werden?</p>\n<p><code>rows_deleted</code> - Anzahl der Zeilen, die gelöscht wurden</p>\n<h3 id=\"response-codes\">Response Codes</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Code</strong></th>\n<th><strong>Bedeutung</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>3</td>\n<td>Device oder Usercard konnte nicht in der Datenbank gefunden werden.</td>\n</tr>\n<tr>\n<td>4</td>\n<td>Device kann nciht zurückgegeben werden, weil es nicht ausgeliehen ist.</td>\n</tr>\n<tr>\n<td>5</td>\n<td>Device kann nicht ausgeliehen werden, weil man bereits etwas ausleiht. Dies ist der Fall, wenn der User kein Multiuser (i.d.R. Lehrer) ist. Diese sind in der Config festgelegt.</td>\n</tr>\n<tr>\n<td>6</td>\n<td>Device wird bereits ausgeliehen.</td>\n</tr>\n<tr>\n<td>7</td>\n<td>Es handelt sich nicht um ein Device. I.d.R. handelt es sich um eine zweimal hintereinander eingescannte Usercard.</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["reset.php"],"host":["10.4.8.100/apollo/api/v5"],"query":[],"variable":[]}},"response":[{"id":"0c28d0ae-b0c5-4e23-abc4-11691a8dbd06","name":"Reset event table","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"table\": \"event\",\r\n    \"reset_id\": true\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8080/reset.php"},"status":"OK","code":200,"_postman_previewlanguage":"html","header":[{"key":"Host","value":"localhost:8080"},{"key":"Date","value":"Sun, 21 Aug 2022 13:23:35 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.1.4"},{"key":"Content-type","value":"text/html; charset=UTF-8"}],"cookie":[],"responseTime":null,"body":"{\"response\":\"0\",\"message\":\"success\",\"rows_deleted\":1}"}],"_postman_id":"5cdd811a-ae20-4541-b56a-03f2bdc95e04"},{"name":"Book (works)","id":"9d272d4c-8397-4c2e-a28f-bd338c8f2413","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJwZXJtaXNzaW9ucyI6WzEsMiwzLDQsNSw2LDcsOCw5LDEwXSwic3ViIjoxLCJpYXQiOjE2NjM0MjEyNDJ9.zmFxIbIyuapbDOrLptyuedEP433PaKc9Y4fTCylYokI"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"uid_1\" : \"8846fce\"\r\n}","options":{"raw":{"language":"json"}}},"url":"10.4.8.100/apollo/api/v5/booking.php","description":"<h2 id=\"input\">Input</h2>\n<h4 id=\"ausleihen\">Ausleihen</h4>\n<p><code>uid_1</code> - UID der Usercard</p>\n<p><code>uid_2</code> - UID des Geräts</p>\n<h4 id=\"zurückgeben\">Zurückgeben</h4>\n<p><code>uid_1</code> - UID des Geräts</p>\n<h4 id=\"user-info\">User Info</h4>\n<p><code>uid_1</code> - UID der Usercard</p>\n","urlObject":{"path":["booking.php"],"host":["10.4.8.100/apollo/api/v5"],"query":[],"variable":[]}},"response":[{"id":"f856b5bf-4b59-4768-b79b-947bb7cf7026","name":"Userinfo","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"uid_1\" : \"2e9ab22\"\r\n}","options":{"raw":{"language":"json"}}},"url":"10.4.8.100/apollo/api/v5/booking.php"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8080"},{"key":"Date","value":"Sat, 17 Sep 2022 13:43:43 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.1.4"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"response\": \"INFO_SUCCESS\",\n    \"message\": \"Info wird ausgegeben\",\n    \"data\": {\n        \"user\": {\n            \"firstname\": \"Test Vorname\",\n            \"lastname\": \"Test Nachname\",\n            \"user_id\": 1,\n            \"class\": \"Lehrer\",\n            \"status\": [\n                {\n                    \"0\": 3,\n                    \"1\": 3,\n                    \"2\": \"884d6cc\",\n                    \"3\": 1,\n                    \"device_id\": 3,\n                    \"device_type\": 3,\n                    \"device_uid\": \"884d6cc\",\n                    \"device_lend_user_id\": 1\n                },\n                {\n                    \"0\": 4,\n                    \"1\": 3,\n                    \"2\": \"8849ec9\",\n                    \"3\": 1,\n                    \"device_id\": 4,\n                    \"device_type\": 3,\n                    \"device_uid\": \"8849ec9\",\n                    \"device_lend_user_id\": 1\n                }\n            ],\n            \"history\": [\n                {\n                    \"device_id\": 4,\n                    \"begin\": \"2022-09-17 15:40:40\",\n                    \"end\": null,\n                    \"device_type\": \"Surface Book\"\n                },\n                {\n                    \"device_id\": 3,\n                    \"begin\": \"2022-09-17 15:30:21\",\n                    \"end\": null,\n                    \"device_type\": \"Surface Book\"\n                },\n                {\n                    \"device_id\": 3,\n                    \"begin\": \"2022-09-01 23:20:24\",\n                    \"end\": \"2022-09-17 15:29:31\",\n                    \"device_type\": \"Surface Book\"\n                }\n            ]\n        }\n    }\n}"},{"id":"13c48267-21c4-451f-b668-5cdf66f017b8","name":"Return","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"uid_1\" : \"884d6cc\"\r\n}","options":{"raw":{"language":"json"}}},"url":"10.4.8.100/apollo/api/v5/booking.php"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8080"},{"key":"Date","value":"Sat, 17 Sep 2022 13:49:03 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.1.4"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"response\": \"RETURN_SUCCESS\",\n    \"message\": \"Device wurde zurückgegeben\",\n    \"data\": []\n}"},{"id":"1dc4d962-f10f-454e-86a6-0e259f36c018","name":"Lend","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"uid_1\" : \"2e9ab22\",\r\n    \"uid_2\" : \"884d6cc\"\r\n}","options":{"raw":{"language":"json"}}},"url":"10.4.8.100/apollo/api/v5/booking.php"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8080"},{"key":"Date","value":"Sat, 17 Sep 2022 13:49:36 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.1.4"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"response\": \"BOOKING_SUCCESS\",\n    \"message\": \"Ausleihe erfolgreich\",\n    \"data\": []\n}"}],"_postman_id":"9d272d4c-8397-4c2e-a28f-bd338c8f2413"},{"name":"Prebook","id":"e21890f1-c984-4af2-83fd-7259bf258ac0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJwZXJtaXNzaW9ucyI6WzEsMiwzLDQsNSw2LDcsOCw5LDEwXSwic3ViIjoxLCJpYXQiOjE2NjM0MjEyNDJ9.zmFxIbIyuapbDOrLptyuedEP433PaKc9Y4fTCylYokI"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"user_id\" : 1,\r\n    \"amount\" : 10,\r\n    \"begin\" : \"2022-06-08 11:10:00\",\r\n    \"end\" : \"2022-06-08 11:50:00\"\r\n}","options":{"raw":{"language":"json"}}},"url":"10.4.8.100/apollo/api/v5/prebook.php","urlObject":{"path":["prebook.php"],"host":["10.4.8.100/apollo/api/v5"],"query":[],"variable":[]}},"response":[],"_postman_id":"e21890f1-c984-4af2-83fd-7259bf258ac0"},{"name":"Add CSV","id":"08a6cce8-fc4d-47f5-81d7-e7da33dc8fd4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJwZXJtaXNzaW9ucyI6WzEsMiwzLDQsNSw2LDcsOCw5LDEwXSwic3ViIjoxLCJpYXQiOjE2NjM0MjEyNDJ9.zmFxIbIyuapbDOrLptyuedEP433PaKc9Y4fTCylYokI"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"table\" : \"user\",\r\n    \"columns\" : [\"user_id\",\"user_firstname\",\"user_lastname\",\"user_class\",\"user_token_id\",\"user_usercard_id\"],\r\n    \"string\" : \"2,Test Vorname,Test Nachname,1,1,1\",\r\n    \"seperator\" : \",\",\r\n    \"enclosure\" : \"\",\r\n    \"linebreak\" : \";\",\r\n    \"global\" : {}\r\n}","options":{"raw":{"language":"json"}}},"url":"10.4.8.100/apollo/api/v5/csv","urlObject":{"path":["csv"],"host":["10.4.8.100/apollo/api/v5"],"query":[],"variable":[]}},"response":[{"id":"bb8fda9b-009e-4f6c-ac0a-63be21ecf016","name":"Add CSV","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"table\" : \"property_class\",\r\n    \"columns\" : [\"class_name\"],\r\n    \"string\" : \"10a; 10b; 10c; 10d\",\r\n    \"seperator\" : \",\",\r\n    \"enclosure\" : \"\",\r\n    \"linebreak\" : \";\"\r\n}","options":{"raw":{"language":"json"}}},"url":"10.4.8.100/apollo/api/v5/in_work/csv_add.php"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"08a6cce8-fc4d-47f5-81d7-e7da33dc8fd4"},{"name":"V3 Search","id":"07ba2c6a-40df-41e7-a099-3a7ee6dc490a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    column : \"user_firstname\",\r\n    query : \"max\"\r\n}"},"url":"http://localhost:8080/api/v3/user/select","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJwZXJtaXNzaW9ucyI6WzEsMiwzLDQsNSw2LDcsOCw5LDEwXSwic3ViIjoxLCJpYXQiOjE2NjM0MjEyNDJ9.zmFxIbIyuapbDOrLptyuedEP433PaKc9Y4fTCylYokI"}]},"isInherited":true,"source":{"_postman_id":"b5a864f4-f389-4e1a-a138-dd3c7047430b","id":"b5a864f4-f389-4e1a-a138-dd3c7047430b","name":"Apollo","type":"collection"}},"urlObject":{"protocol":"http","port":"8080","path":["api","v3","user","select"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"07ba2c6a-40df-41e7-a099-3a7ee6dc490a"},{"name":"V4 Create User","id":"d0c359e6-52c2-4b4c-9a0a-c163dafeb406","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJwZXJtaXNzaW9ucyI6WzEsMiwzLDQsNSw2LDcsOCw5LDEwXSwic3ViIjoxLCJpYXQiOjE2NjM0MjEyNDJ9.zmFxIbIyuapbDOrLptyuedEP433PaKc9Y4fTCylYokI"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"username\": \"abc\",\r\n    \"password\": \"abc\"\r\n}","options":{"raw":{"language":"json"}}},"url":"10.4.8.100/apollo/api/v5/token/authorize","urlObject":{"path":["token","authorize"],"host":["10.4.8.100/apollo/api/v5"],"query":[],"variable":[]}},"response":[],"_postman_id":"d0c359e6-52c2-4b4c-9a0a-c163dafeb406"},{"name":"V4 Search Users","id":"2fd8ad46-4aad-479b-b1cc-ee397fc37b29","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"firstname\" : \"b\",\r\n    \"lastname\" : \"c\",\r\n    \"class_id\" : 14\r\n}","options":{"raw":{"language":"json"}}},"url":"10.4.8.100/apollo/api/v5/user/create","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJwZXJtaXNzaW9ucyI6WzEsMiwzLDQsNSw2LDcsOCw5LDEwXSwic3ViIjoxLCJpYXQiOjE2NjM0MjEyNDJ9.zmFxIbIyuapbDOrLptyuedEP433PaKc9Y4fTCylYokI"}]},"isInherited":true,"source":{"_postman_id":"b5a864f4-f389-4e1a-a138-dd3c7047430b","id":"b5a864f4-f389-4e1a-a138-dd3c7047430b","name":"Apollo","type":"collection"}},"urlObject":{"path":["user","create"],"host":["10.4.8.100/apollo/api/v5"],"query":[],"variable":[]}},"response":[],"_postman_id":"2fd8ad46-4aad-479b-b1cc-ee397fc37b29"},{"name":"BOOKING (LEND)","id":"05f10f0a-99b6-4e67-8c85-15e37129f513","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"uid_1\" : \"2e9ab22\",\r\n    \"uid_2\" : \"8846fce\"\r\n}","options":{"raw":{"language":"json"}}},"url":"10.4.8.100/apollo/api/v5/booking/","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJwZXJtaXNzaW9ucyI6WzEsMiwzLDQsNSw2LDcsOCw5LDEwXSwic3ViIjoxLCJpYXQiOjE2NjM0MjEyNDJ9.zmFxIbIyuapbDOrLptyuedEP433PaKc9Y4fTCylYokI"}]},"isInherited":true,"source":{"_postman_id":"b5a864f4-f389-4e1a-a138-dd3c7047430b","id":"b5a864f4-f389-4e1a-a138-dd3c7047430b","name":"Apollo","type":"collection"}},"urlObject":{"path":["booking",""],"host":["10.4.8.100/apollo/api/v5"],"query":[],"variable":[]}},"response":[],"_postman_id":"05f10f0a-99b6-4e67-8c85-15e37129f513"},{"name":"BOOKING (RETURN)","id":"495561c7-602b-481b-b6cf-5a38054e192e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"uid_1\" : \"884d5cc\"\r\n}","options":{"raw":{"language":"json"}}},"url":"10.4.8.100/apollo/api/v5/booking/","urlObject":{"path":["booking",""],"host":["10.4.8.100/apollo/api/v5"],"query":[],"variable":[]}},"response":[],"_postman_id":"495561c7-602b-481b-b6cf-5a38054e192e"},{"name":"BOOKING (INFO)","id":"bac312c2-3da4-48e1-b20e-083688b60f80","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"uid_1\": \"2e9ab22\"\r\n}","options":{"raw":{"language":"json"}}},"url":"10.4.8.100/apollo/api/v5/booking/","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJwZXJtaXNzaW9ucyI6WzEsMiwzLDQsNSw2LDcsOCw5LDEwXSwic3ViIjoxLCJpYXQiOjE2NjM0MjEyNDJ9.zmFxIbIyuapbDOrLptyuedEP433PaKc9Y4fTCylYokI"}]},"isInherited":true,"source":{"_postman_id":"b5a864f4-f389-4e1a-a138-dd3c7047430b","id":"b5a864f4-f389-4e1a-a138-dd3c7047430b","name":"Apollo","type":"collection"}},"urlObject":{"path":["booking",""],"host":["10.4.8.100/apollo/api/v5"],"query":[],"variable":[]}},"response":[],"_postman_id":"bac312c2-3da4-48e1-b20e-083688b60f80"},{"name":"Validate","id":"a2693fae-9eba-445c-a36e-1f55f5b98daa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"uid_1\": \"2e9ab22\"\r\n}","options":{"raw":{"language":"json"}}},"url":"10.4.8.100/apollo/api/v5/booking/","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJwZXJtaXNzaW9ucyI6WzEsMiwzLDQsNSw2LDcsOCw5LDEwXSwic3ViIjoxLCJpYXQiOjE2NjM0MjEyNDJ9.zmFxIbIyuapbDOrLptyuedEP433PaKc9Y4fTCylYokI"}]},"isInherited":true,"source":{"_postman_id":"b5a864f4-f389-4e1a-a138-dd3c7047430b","id":"b5a864f4-f389-4e1a-a138-dd3c7047430b","name":"Apollo","type":"collection"}},"urlObject":{"path":["booking",""],"host":["10.4.8.100/apollo/api/v5"],"query":[],"variable":[]}},"response":[],"_postman_id":"a2693fae-9eba-445c-a36e-1f55f5b98daa"},{"name":"Authorize","id":"1ff63f3a-3f25-45f2-b7f1-97c48deebf7f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"username\": \"abc\",\r\n    \"password\": \"abc\"\r\n}","options":{"raw":{"language":"json"}}},"url":"10.4.8.100/apollo/api/v5/token/authorize","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJwZXJtaXNzaW9ucyI6WzEsMiwzLDQsNSw2LDcsOCw5LDEwXSwic3ViIjoxLCJpYXQiOjE2NjM0MjEyNDJ9.zmFxIbIyuapbDOrLptyuedEP433PaKc9Y4fTCylYokI"}]},"isInherited":true,"source":{"_postman_id":"b5a864f4-f389-4e1a-a138-dd3c7047430b","id":"b5a864f4-f389-4e1a-a138-dd3c7047430b","name":"Apollo","type":"collection"}},"urlObject":{"path":["token","authorize"],"host":["10.4.8.100/apollo/api/v5"],"query":[],"variable":[]}},"response":[],"_postman_id":"1ff63f3a-3f25-45f2-b7f1-97c48deebf7f"},{"name":"Validate Copy 2","id":"390ca359-6112-493a-aefe-bf1e834467c2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"{\r\n    \"id\": 100\r\n}","options":{"raw":{"language":"json"}}},"url":"10.4.8.100/apollo/api/v5/user/event/delete","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJwZXJtaXNzaW9ucyI6WzEsMiwzLDQsNSw2LDcsOCw5LDEwXSwic3ViIjoxLCJpYXQiOjE2NjM0MjEyNDJ9.zmFxIbIyuapbDOrLptyuedEP433PaKc9Y4fTCylYokI"}]},"isInherited":true,"source":{"_postman_id":"b5a864f4-f389-4e1a-a138-dd3c7047430b","id":"b5a864f4-f389-4e1a-a138-dd3c7047430b","name":"Apollo","type":"collection"}},"urlObject":{"path":["user","event","delete"],"host":["10.4.8.100/apollo/api/v5"],"query":[],"variable":[]}},"response":[],"_postman_id":"390ca359-6112-493a-aefe-bf1e834467c2"},{"name":"Validate Copy","id":"d6bb940e-c998-40e8-b895-a35401c78d10","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"firstname\" : \"jj\",\r\n    \"lastname\": \"holst\",\r\n    \"class_id\": 1\r\n}","options":{"raw":{"language":"json"}}},"url":"10.4.8.100/apollo/api/v5/user/create","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJwZXJtaXNzaW9ucyI6WzEsMiwzLDQsNSw2LDcsOCw5LDEwXSwic3ViIjoxLCJpYXQiOjE2NjM0MjEyNDJ9.zmFxIbIyuapbDOrLptyuedEP433PaKc9Y4fTCylYokI"}]},"isInherited":true,"source":{"_postman_id":"b5a864f4-f389-4e1a-a138-dd3c7047430b","id":"b5a864f4-f389-4e1a-a138-dd3c7047430b","name":"Apollo","type":"collection"}},"urlObject":{"path":["user","create"],"host":["10.4.8.100/apollo/api/v5"],"query":[],"variable":[]}},"response":[],"_postman_id":"d6bb940e-c998-40e8-b895-a35401c78d10"},{"name":"Change Token","id":"bc78a53d-467e-4193-9f60-70fdb3e146db","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"id\": 7,\r\n    \"values\": {\r\n        \"permissions\": [1,2,3,4,5,6,7,8,9,10,11] // does not work\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"10.4.8.100/apollo/api/v5/token/change","urlObject":{"path":["token","change"],"host":["10.4.8.100/apollo/api/v5"],"query":[],"variable":[]}},"response":[],"_postman_id":"bc78a53d-467e-4193-9f60-70fdb3e146db"},{"name":"Create Token","id":"5f2c0637-707c-4086-ab11-ba877f336b25","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n}","options":{"raw":{"language":"json"}}},"url":"10.4.8.100/apollo/api/v5/token/create","urlObject":{"path":["token","create"],"host":["10.4.8.100/apollo/api/v5"],"query":[],"variable":[]}},"response":[],"_postman_id":"5f2c0637-707c-4086-ab11-ba877f336b25"},{"name":"Get Prebook","id":"9f61b1d8-cbed-4c19-ae15-26a0658a6777","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"firstname\" : \"jj\",\r\n    \"lastname\": \"holst\",\r\n    \"class_id\": 1\r\n}","options":{"raw":{"language":"json"}}},"url":"10.4.8.100/apollo/api/v5/user/create","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJwZXJtaXNzaW9ucyI6WzEsMiwzLDQsNSw2LDcsOCw5LDEwXSwic3ViIjoxLCJpYXQiOjE2NjM0MjEyNDJ9.zmFxIbIyuapbDOrLptyuedEP433PaKc9Y4fTCylYokI"}]},"isInherited":true,"source":{"_postman_id":"b5a864f4-f389-4e1a-a138-dd3c7047430b","id":"b5a864f4-f389-4e1a-a138-dd3c7047430b","name":"Apollo","type":"collection"}},"urlObject":{"path":["user","create"],"host":["10.4.8.100/apollo/api/v5"],"query":[],"variable":[]}},"response":[],"_postman_id":"9f61b1d8-cbed-4c19-ae15-26a0658a6777"},{"name":"Prebook","id":"ba95902d-26f8-491a-9e15-995cb02d2e58","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"amount\": 30,\r\n    \"begin\": \"2023-07-15 10:00:00\",\r\n    \"end\": \"2023-07-15 10:30:00\"\r\n}","options":{"raw":{"language":"json"}}},"url":"10.4.8.100/apollo/api/v5/prebook","urlObject":{"path":["prebook"],"host":["10.4.8.100/apollo/api/v5"],"query":[],"variable":[]}},"response":[],"_postman_id":"ba95902d-26f8-491a-9e15-995cb02d2e58"}],"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJwZXJtaXNzaW9ucyI6WzEsMiwzLDQsNSw2LDcsOCw5LDEwXSwic3ViIjoxLCJpYXQiOjE2NjM0MjEyNDJ9.zmFxIbIyuapbDOrLptyuedEP433PaKc9Y4fTCylYokI"}]}},"event":[{"listen":"prerequest","script":{"id":"fdda6fbf-2407-467c-91d0-ad578519688d","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"c44a2873-f49e-47fd-81b0-a24a30c089b1","type":"text/javascript","exec":[""]}}],"variable":[{"key":"bearer_token","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJwZXJtaXNzaW9ucyI6WzEsMiwzLDQsNSw2LDcsOCw5LDEwXSwic3ViIjoxLCJpYXQiOjE2NjM0MjEyNDJ9.zmFxIbIyuapbDOrLptyuedEP433PaKc9Y4fTCylYokI","type":"string"},{"key":"base_path","value":"10.4.8.100/apollo/api/v5","type":"string"}]}