package
0.0.0-20230915114229-ab52134927bd
Repository: https://github.com/boughris-abdelmalek/taskmaster_v1.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

GetID is a helper function that returns the id from the url.
HandleCreateTodo handles the POST request for creating new todos.
No description provided by the author
HandleDeleteTodo handles the DELETE request for deleting todos.
HandleGetTodo handles the GET request for fetching todos.
HandleGetTodoByID handles the GET request for getting all the todos.
No description provided by the author
No description provided by the author
HandleUpdateTodo handles the PATCH request for updating the todos.
No description provided by the author
NewAPIServer creates a new instance of APIServer.
WriteJSON is a Helper function to return JSON response to ui.

# Structs

ApiError represents an error response in JSON format.
APIServer represents the API server structure.