Event: TELIT HACKATHON 2023
Team: Mrkva
Members:
- Tomáš Kormaník
- Marek Horváth
- Daniel Fedič
- Michaela Vaľovská
- Diana Oršolyová
All required packages are listed in requirements.txt file. To install them, run:
pip install -r requirements.txtWe are using docker to deploy our database and api. To deploy them, simply run:
docker-compose up- PostgreSQL is available at port
5432 - FastAPI is available at port
80 - StreamLit at port
8501
- Method:
GET - Path:
/ - Description: Get a basic message.
- None
- 200 OK
- Body:
{"message": "Please make requests using provided API documentation !"}
- Body:
- Method:
POST - Path:
/fandom_wikis/add - Description: Add a Fandom Wiki to the database.
- Body:
{ "url": "string" }
-
200 OK
- Body:
{"message": "Table {table_name} created and rows inserted successfully"}
- Body:
-
500 Internal Server Error
- Body:
{"detail": "Error inserting rows: {error_message}"}
- Body:
- Method:
GET - Path:
/fandom_wikis/{table_name} - Description: Get information about a specific Fandom Wiki.
- None
-
200 OK
- Body:
{ "id": "integer", "human_readable_name": "string", "database_table_name": "string", "description": "string", "is_template": "boolean" }
- Body:
-
404 Not Found
- Body:
{"detail": "Table not found"}
- Body:
- Method:
GET - Path:
/fandom_wikis - Description: Get a list of all Fandom Wikis.
- None
- 200 OK
- Body:
[{"id": "integer", "human_readable_name": "string", "database_table_name": "string", "description": "string", "is_template": "boolean"}]
- Body:
- Method:
GET - Path:
/fandom_wikis/{table_name}/contents - Description: Get all contents of a specific Fandom Wiki.
- None
-
200 OK
- Body:
[{"id": "integer", "html_tag": "string", "contents": "string", "link": "string"}]
- Body:
-
404 Not Found
- Body:
{"detail": "Table not found"}
- Body:
- Method:
GET - Path:
/fandom_wikis/{table_name}/contents/{searched_keyword} - Description: Get contents of a specific Fandom Wiki filtered by a keyword.
- None
-
200 OK
- Body:
[{"id": "integer", "html_tag": "string", "contents": "string", "link": "string"}]
- Body:
-
404 Not Found
- Body:
{"detail": "Table not found"}
- Body:
- Method:
GET - Path:
/fandom_wikis/{table_name}/contents/{searched_keyword}/{tag} - Description: Get contents of a specific Fandom Wiki filtered by a keyword and tag.
- None
-
200 OK
- Body:
[{"id": "integer", "html_tag": "string", "contents": "string", "link": "string"}]
- Body:
-
404 Not Found
- Body:
{"detail": "Table not found"}
- Body: