Changes for page API V2.0
Last modified by Treyfane Dingo on 2024/03/10 02:07
From version 9.1
edited by Treyfane Dingo
on 2024/02/11 19:41
on 2024/02/11 19:41
Change comment:
There is no comment for this version
To version 4.3
edited by Treyfane Dingo
on 2023/09/11 22:14
on 2023/09/11 22:14
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,6 +1,6 @@ 1 1 The L.A.S.S.I.E. API V 2.0 can be reached via 2 2 3 -{{{https://api .lassie.online/v2.0}}}3 +{{{https://www.furcom.org/api/lassie/v2.0}}} 4 4 5 5 === Required POST Parameters === 6 6 ... ... @@ -10,7 +10,7 @@ 10 10 * request 11 11 * command (optional) 12 12 13 -The API-Key has to be set in "System Settings" → "API Keys". Preferrably a longer and unique key (like a MD5SUM). An specific API key can only be used for a corresponding request type.13 +The API-Key has to be set in "System Settings". Preferrably a longer and unique key (like a MD5SUM). An specific API key can only be used for a corresponding request type. 14 14 15 15 (% style="width:50%" %) 16 16 |=(% colspan="3" %)Requests and Commands ... ... @@ -25,23 +25,14 @@ 25 25 26 26 === Example (CURL) === 27 27 28 -{{{curl -X POST -d "apikey=ae629a834729fd3aac6d1f827b1793b0" -d "request=lostandfounddb" https://api .lassie.online/v2.0}}}28 +{{{curl -X POST -d "apikey=ae629a834729fd3aac6d1f827b1793b0" -d "request=lostandfounddb" https://www.furcom.org/api/lassie/v2.0}}} 29 29 30 30 This example will display the entire Lost & Found Database of FTC. 31 31 32 -{{{curl -X POST -d "apikey=ae629a834729fd3aac6d1f827b1793b0" -d "request=lostandfounddb" -d "command=lost" https://api .lassie.online/v2.0}}}32 +{{{curl -X POST -d "apikey=ae629a834729fd3aac6d1f827b1793b0" -d "request=lostandfounddb" -d "command=lost" https://www.furcom.org/api/lassie/v2.0}}} 33 33 34 34 This example will display only the lost items of the Lost & Found Database of FTC. 35 35 36 -=== Test API Keys === 37 - 38 -The API Keys for FurtherTestCon (FTC) are: 39 - 40 -{{{ae629a834729fd3aac6d1f827b1793b2 Attendee Database 41 -ae629a834729fd3aac6d1f827b1793b1 Operatives Database 42 -ae629a834729fd3aac6d1f827b1793b0 Lost & Found Database 43 -ae629a834729fd3aac6d1f827b1793b3 Briefings Database}}} 44 - 45 45 === Output === 46 46 47 47 The output of an valid request to the API will be a JSON-Object like the following examples: ... ... @@ -49,7 +49,7 @@ 49 49 ==== Lost & Found Database ==== 50 50 51 51 {{box}} 52 -{"data":[{"id": 1925,"image":null,"thumb":null,"title":"Image","description":"invisible, watercolour, found in Schroedinger's box","status":"F","lost_timestamp":null,"found_timestamp":"2023-11-24 00:27:24","return_timestamp":null},{"id":1921,"image":"https:\/\/api.lassie.furcom.org\/images\/lostandfound_db\/fe3c6670a33d8f4199ffa95a5c23b622.png","thumb":"https:\/\/api.lassie.furcom.org\/images\/lostandfound_db\/thumbnail\/fe3c6670a33d8f4199ffa95a5c23b622.png","title":"Sense ofTaste","description":"lost in Hotel Restaurant","status":"L","lost_timestamp":"2023-11-0116:13:02","found_timestamp":null,"return_timestamp":null},{"id":1920,"image":"https:\/\/api.lassie.furcom.org\/images\/lostandfound_db\/bc7c343fb3807d4d41b7e04fa909aad5.png","thumb":"https:\/\/api.lassie.furcom.org\/images\/lostandfound_db\/thumbnail\/bc7c343fb3807d4d41b7e04fa909aad5.png","title":"Vape","description":"black\/ rainbow, \"GEEKVAPE\",foundat Open Stage","status":"F","lost_timestamp":null,"found_timestamp":"2023-09-3023:52:38","return_timestamp":null}]}43 +{"data":[{"id":"1","image":"https:\/\/www.furcom.org\/lassie\/images\/lostandfound_db\/9a7a1039bcbe887ed2f57a5b64c56c51.png","title":"A Piece of Cake","description":"Just another piece of cake","status":"F","lost_timestamp":"","found_timestamp":"2021-06-22 19:08:16","return_timestamp":""}]} 53 53 {{/box}} 54 54 55 55 (% style="width:50%" %) ... ... @@ -68,7 +68,7 @@ 68 68 ==== Briefings Database ==== 69 69 70 70 {{box}} 71 -{"data":[{"id":"17","class":"P","topic":"UPDATE - Security News 21.12.2021","content":"<div id=\"briefing_content_content\"><div><b>Germany cancelled New Years Eve<\/b><\/div><div>Although it might calendar wise be unwise, Germany just cancelled New Years Eve. Further information can be obtained elsewhere.<\/div><div><br><\/div><div><b>Some things found<\/b><\/div><div>Security\r\n wants to remind all attendees that information about lost or found \r\nitems can be obtained via the APP or the Website of the convention. Lost\r\n & Found is maintained by security and located in the security \r\noffice.<\/div><div><br><\/div><div><b>Quote of the day<\/b><\/div><div>\"Where is your neighbo ur?\"<\/div><div>\"He's in the garden ...\"<\/div><div>\"I can't see him ...\"<\/div><div>\"Oh, you'd have to dig quite a bit ...\"<br><\/div><div><br><\/div><\/div>","ops_id":"112","datetime_creation":"2021-12-21 22:19:45","datetime_lastchange":"","datetime":"2021-12-21 22:19:45"}]}62 +{"data":[{"id":"17","class":"P","topic":"UPDATE - Security News 21.12.2021","content":"<div id=\"briefing_content_content\"><div><b>Germany cancelled New Years Eve<\/b><\/div><div>Although it might calendar wise be unwise, Germany just cancelled New Years Eve. Further information can be obtained elsewhere.<\/div><div><br><\/div><div><b>Some things found<\/b><\/div><div>Security\r\n wants to remind all attendees that information about lost or found \r\nitems can be obtained via the APP or the Website of the convention. Lost\r\n & Found is maintained by security and located in the security \r\noffice.<\/div><div><br><\/div><div><b>Quote of the day<\/b><\/div><div>\"Where is your neighbor?\"<\/div><div>\"He's in the garden ...\"<\/div><div>\"I can't see him ...\"<\/div><div>\"Oh, you'd have to dig quite a bit ...\"<br><\/div><div><br><\/div><\/div>","ops_id":"112","datetime_creation":"2021-12-21 22:19:45","datetime_lastchange":"","datetime":"2021-12-21 22:19:45"}]} 72 72 {{/box}} 73 73 74 74 (% style="width:50%" %)