Add more Kafelki endpoints (#50)
This commit is contained in:
parent
37e21710ca
commit
1fb12b8163
7 changed files with 221 additions and 14 deletions
36
data/uonetplus/GetKidsLessonPlan.json
Normal file
36
data/uonetplus/GetKidsLessonPlan.json
Normal file
|
@ -0,0 +1,36 @@
|
|||
[
|
||||
{
|
||||
"IkonkaNazwa": null,
|
||||
"Num": null,
|
||||
"Zawartosc": [
|
||||
{
|
||||
"IkonkaNazwa": null,
|
||||
"Num": null,
|
||||
"Zawartosc": [],
|
||||
"Rozszerzenie": false,
|
||||
"Nazwa": "<span class=\"dayHeader subDiv\">23.06.2022 - DZIŚ</span><br>",
|
||||
"Url": null,
|
||||
"Dane": null,
|
||||
"Symbol": null,
|
||||
"Nieaktywny": false
|
||||
},
|
||||
{
|
||||
"IkonkaNazwa": null,
|
||||
"Num": null,
|
||||
"Zawartosc": [],
|
||||
"Rozszerzenie": false,
|
||||
"Nazwa": "<span class=\"num\" style=\"\">2.</span> <span '>zaj. wych. klasa</span>",
|
||||
"Url": null,
|
||||
"Dane": null,
|
||||
"Symbol": null,
|
||||
"Nieaktywny": false
|
||||
}
|
||||
],
|
||||
"Rozszerzenie": false,
|
||||
"Nazwa": "",
|
||||
"Url": null,
|
||||
"Dane": null,
|
||||
"Symbol": null,
|
||||
"Nieaktywny": false
|
||||
}
|
||||
]
|
25
data/uonetplus/GetLastHomeworks.json
Normal file
25
data/uonetplus/GetLastHomeworks.json
Normal file
|
@ -0,0 +1,25 @@
|
|||
[
|
||||
{
|
||||
"IkonkaNazwa": null,
|
||||
"Num": null,
|
||||
"Zawartosc": [
|
||||
{
|
||||
"IkonkaNazwa": null,
|
||||
"Num": 64253,
|
||||
"Zawartosc": [],
|
||||
"Rozszerzenie": false,
|
||||
"Nazwa": "j. polski 12.11.2019 Napisz krótki tekst (7 zdań) n...",
|
||||
"Url": "12.11.2019",
|
||||
"Dane": null,
|
||||
"Symbol": null,
|
||||
"Nieaktywny": false
|
||||
}
|
||||
],
|
||||
"Rozszerzenie": false,
|
||||
"Nazwa": null,
|
||||
"Url": "https://uonetplus-uczen.fakelog.cf/powiatwulkanowy/123456",
|
||||
"Dane": null,
|
||||
"Symbol": null,
|
||||
"Nieaktywny": false
|
||||
}
|
||||
]
|
47
data/uonetplus/GetLastStudentLessons.json
Normal file
47
data/uonetplus/GetLastStudentLessons.json
Normal file
|
@ -0,0 +1,47 @@
|
|||
[
|
||||
{
|
||||
"IkonkaNazwa": null,
|
||||
"Num": null,
|
||||
"Zawartosc": [
|
||||
{
|
||||
"IkonkaNazwa": null,
|
||||
"Num": null,
|
||||
"Zawartosc": [],
|
||||
"Rozszerzenie": false,
|
||||
"Nazwa": "<span class=\"white\">Biologia klasa,</span> Podsumowanie wiadomości z kl. III.",
|
||||
"Url": null,
|
||||
"Dane": null,
|
||||
"Symbol": null,
|
||||
"Nieaktywny": false
|
||||
},
|
||||
{
|
||||
"IkonkaNazwa": null,
|
||||
"Num": null,
|
||||
"Zawartosc": [],
|
||||
"Rozszerzenie": false,
|
||||
"Nazwa": "<span class=\"white\">Chemia klasa,</span> Podsumowanie wiadomości z chemii.",
|
||||
"Url": null,
|
||||
"Dane": null,
|
||||
"Symbol": null,
|
||||
"Nieaktywny": false
|
||||
},
|
||||
{
|
||||
"IkonkaNazwa": null,
|
||||
"Num": null,
|
||||
"Zawartosc": [],
|
||||
"Rozszerzenie": false,
|
||||
"Nazwa": "<span class=\"white\">Edukacja dla bezpieczeństwa klasa,</span> Podsumowanie pracy na zajęciach edb.",
|
||||
"Url": null,
|
||||
"Dane": null,
|
||||
"Symbol": null,
|
||||
"Nieaktywny": false
|
||||
}
|
||||
],
|
||||
"Rozszerzenie": false,
|
||||
"Nazwa": "",
|
||||
"Url": null,
|
||||
"Dane": null,
|
||||
"Symbol": null,
|
||||
"Nieaktywny": false
|
||||
}
|
||||
]
|
25
data/uonetplus/GetLastTests.json
Normal file
25
data/uonetplus/GetLastTests.json
Normal file
|
@ -0,0 +1,25 @@
|
|||
[
|
||||
{
|
||||
"IkonkaNazwa": null,
|
||||
"Num": null,
|
||||
"Zawartosc": [
|
||||
{
|
||||
"IkonkaNazwa": null,
|
||||
"Num": 64253,
|
||||
"Zawartosc": [],
|
||||
"Rozszerzenie": false,
|
||||
"Nazwa": "Język polski 10.10.2019 sprawdzian: Sprawdzian aktu komunikacji j...",
|
||||
"Url": "10.10.2019",
|
||||
"Dane": null,
|
||||
"Symbol": null,
|
||||
"Nieaktywny": false
|
||||
}
|
||||
],
|
||||
"Rozszerzenie": false,
|
||||
"Nazwa": null,
|
||||
"Url": "https://uonetplus-uczen.fakelog.cf/powiatwulkanowy/123456",
|
||||
"Dane": null,
|
||||
"Symbol": null,
|
||||
"Nieaktywny": false
|
||||
}
|
||||
]
|
31
data/uonetplus/GetSelfGovernments.json
Normal file
31
data/uonetplus/GetSelfGovernments.json
Normal file
|
@ -0,0 +1,31 @@
|
|||
[
|
||||
{
|
||||
"UnitName": "ZST-I",
|
||||
"People": [
|
||||
{
|
||||
"Name": "Jan Kowalski",
|
||||
"Position": "Przewodniczący Samorządu Uczniowskiego",
|
||||
"Division": "2tim (T 17)",
|
||||
"Id": 0
|
||||
},
|
||||
{
|
||||
"Name": "Jan Kowalski",
|
||||
"Position": "Z-ca przewodniczącego Samorządu Uczniowskiego",
|
||||
"Division": "2tm (T 17)",
|
||||
"Id": 0
|
||||
},
|
||||
{
|
||||
"Name": "Jan Kowalski",
|
||||
"Position": "Skarbnik",
|
||||
"Division": "1tm (T 17)",
|
||||
"Id": 0
|
||||
},
|
||||
{
|
||||
"Name": "Jan Kowalski",
|
||||
"Position": "Sekretarz",
|
||||
"Division": "2pma (T 17)",
|
||||
"Id": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
23
data/uonetplus/GetStudentTrips.json
Normal file
23
data/uonetplus/GetStudentTrips.json
Normal file
|
@ -0,0 +1,23 @@
|
|||
[
|
||||
{
|
||||
"IkonkaNazwa": null,
|
||||
"Num": null,
|
||||
"Zawartosc": [
|
||||
{
|
||||
"IkonkaNazwa": null,
|
||||
"Num": null,
|
||||
"Zawartosc": [],
|
||||
"Nazwa": "07.06.2021 Informacje o wycieczce: od 10:45 - 11:30 do 13:40 - 14:25; Wycieczka do sortowni odpadów w Łodzi.",
|
||||
"Url": null,
|
||||
"Dane": null,
|
||||
"Symbol": null,
|
||||
"Nieaktywny": false
|
||||
}
|
||||
],
|
||||
"Nazwa": "Jan Kowalski ",
|
||||
"Url": null,
|
||||
"Dane": null,
|
||||
"Symbol": null,
|
||||
"Nieaktywny": false
|
||||
}
|
||||
]
|
|
@ -5,12 +5,14 @@ const protocol = require('../utils/connection');
|
|||
router.get("/powiatwulkanowy/Start.mvc/Endpoints", (req, res) => {
|
||||
const base = protocol(req) + "://" + req.get('host') + "/powiatwulkanowy/Start.mvc";
|
||||
res.json({
|
||||
status: "sucess",
|
||||
status: "success",
|
||||
data: {
|
||||
endpoints: [
|
||||
"/GetSelfGovernments",
|
||||
"/GetStudentTrips",
|
||||
"/GetStudentConferences",
|
||||
"/GetLastNotes",
|
||||
"/GetNumberOfUnreadMessages",
|
||||
"/GetFreeDays",
|
||||
"/GetKidsLuckyNumbers",
|
||||
"/GetKidsLessonPlan",
|
||||
|
@ -27,18 +29,18 @@ router.get("/powiatwulkanowy/Start.mvc/Endpoints", (req, res) => {
|
|||
|
||||
router.all("/powiatwulkanowy/Start.mvc/GetSelfGovernments", (req, res) => {
|
||||
res.json({
|
||||
"data": [],
|
||||
"success": false,
|
||||
"errorMessage": "Not implemented yet",
|
||||
"data": require("../../data/uonetplus/GetSelfGovernments"),
|
||||
"success": true,
|
||||
"errorMessage": null,
|
||||
"feedback": null
|
||||
});
|
||||
});
|
||||
|
||||
router.all("/powiatwulkanowy/Start.mvc/GetStudentTrips", (req, res) => {
|
||||
res.json({
|
||||
"data": [],
|
||||
"success": false,
|
||||
"errorMessage": "Not implemented yet",
|
||||
"data": require("../../data/uonetplus/GetStudentTrips"),
|
||||
"success": true,
|
||||
"errorMessage": null,
|
||||
"feedback": null
|
||||
});
|
||||
});
|
||||
|
@ -56,6 +58,15 @@ router.all("/powiatwulkanowy/Start.mvc/GetKidsLuckyNumbers", (req, res) => {
|
|||
});
|
||||
|
||||
router.all("/powiatwulkanowy/Start.mvc/GetKidsLessonPlan", (req, res) => {
|
||||
res.json({
|
||||
"data": require("../../data/uonetplus/GetKidsLessonPlan"),
|
||||
"success": true,
|
||||
"errorMessage": null,
|
||||
"feedback": null
|
||||
});
|
||||
});
|
||||
|
||||
router.all("/powiatwulkanowy/Start.mvc/GetNumberOfUnreadMessages", (req, res) => {
|
||||
res.json({
|
||||
"data": [],
|
||||
"success": false,
|
||||
|
@ -66,14 +77,23 @@ router.all("/powiatwulkanowy/Start.mvc/GetKidsLessonPlan", (req, res) => {
|
|||
|
||||
router.all("/powiatwulkanowy/Start.mvc/GetLastHomeworks", (req, res) => {
|
||||
res.json({
|
||||
"data": [],
|
||||
"success": false,
|
||||
"errorMessage": "Not implemented yet",
|
||||
"data": require("../../data/uonetplus/GetLastHomeworks"),
|
||||
"success": true,
|
||||
"errorMessage": null,
|
||||
"feedback": null
|
||||
});
|
||||
});
|
||||
|
||||
router.all("/powiatwulkanowy/Start.mvc/GetLastTests", (req, res) => {
|
||||
res.json({
|
||||
"data": require("../../data/uonetplus/GetLastTests"),
|
||||
"success": true,
|
||||
"errorMessage": null,
|
||||
"feedback": null
|
||||
});
|
||||
});
|
||||
|
||||
router.all("/powiatwulkanowy/Start.mvc/GetStudentConferences", (req, res) => {
|
||||
res.json({
|
||||
"data": [],
|
||||
"success": false,
|
||||
|
@ -84,9 +104,9 @@ router.all("/powiatwulkanowy/Start.mvc/GetLastTests", (req, res) => {
|
|||
|
||||
router.all("/powiatwulkanowy/Start.mvc/GetLastStudentLessons", (req, res) => {
|
||||
res.json({
|
||||
"data": [],
|
||||
"success": false,
|
||||
"errorMessage": "Not implemented yet",
|
||||
"data": require("../../data/uonetplus/GetLastStudentLessons"),
|
||||
"success": true,
|
||||
"errorMessage": null,
|
||||
"feedback": null
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue