Skip to content

Commit

Permalink
linting: added docs and removed trailing whitespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
AronBuzogany committed Feb 23, 2024
1 parent 80f3454 commit 98995ed
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions backend/project/endpoints/index.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,22 @@
"""
This is the index endpoint file. It contains the index endpoint of the API as specified by OpenAPI.
"""

from flask import Blueprint
from flask_restful import Resource

index_bp = Blueprint("index", __name__)

class Index(Resource):
"""
Subclass of restfull Resource, used to define the index endpoint of the API.
"""

def get(self):
"""
Implementation of the GET method for the index endpoint. Returns the OpenAPI object.
"""

return {"Message": "Hello World!"}
index_bp.add_url_rule("/", view_func=Index.as_view("index"))

index_bp.add_url_rule("/", view_func=Index.as_view("index"))

0 comments on commit 98995ed

Please sign in to comment.