This repo contains PPKWU task's solutions, where we are building REST API services.
These documentation will show you how to use created REST API services.
Flask:
pip install Flask
Applictaion provides simple REV service
python3 server.py
Output:
* Running on http://127:0.0.1:25000/
curl http://127:0.0.1:25000/rev/SimpleString
Response:
{
"data": "gnirtSelpmiS"
}
Applictaion check if provided string contains:
- lower letter
- upper letter
- special sign
- digit
curl http://127:0.0.1:25000/api/check/SimpleString
Response:
{
"digit": false,
"lowerCase": true,
"specialSign": false,
"upperCase": true
}
curl http://127:0.0.1:25000/api/check/Simple123String%
Response:
{
"digit": true,
"lowerCase": true,
"specialSign": true,
"upperCase": true
}
Application is designed for creating 'ics' files, that could be imported to different calendar apps. Events are parsed from: http://www.weeia.p.lodz.pl/
curl http://127:0.0.1:25000/api/calendar/<year>/<month>
year format: YYYY, example: 2020
month format: MM, example: 10
month format: M, example: 1
curl http://127:0.0.1:25000/api/calendar/2020/3
Response:
BEGIN:VCALENDAR
VERSION:2.0
PRODID:ics.py - http://git.io/lLljaA
BEGIN:VEVENT
DTSTART;VALUE=DATE:20200309
SUMMARY:First Step to Fields Medal
.
.
.
END:VCALENDAR
Via browser, server will produce file named: "<year><month>.ics";
This project is licensed under the MIT License.