Welcome to the multi-tool! This API enables users to manage recipes, authenticate, and interact with various other features, such as fetching information about clans and accessing NASA data. Below you’ll find detailed information on how to use the API endpoints effectively.
All API endpoints are prefixed with the base URL:
https://mb-multi-tool-api.vercel.app
- GET
/api/
- Description: Retrieve all available recipes.
- GET
/api/details/{id}
- Description: Retrieve detailed information about a specific recipe.
- Parameters:
id
(Path): Unique identifier for the recipe.
- PUT
/api/edit/{id}
- Description: Update an existing recipe.
- Authentication: Required
- Authorization: Required
- Parameters:
id
(Path): Unique identifier for the recipe.
- DELETE
/api/{id}
- Description: Remove a recipe from the database.
- Authentication: Required
- Authorization: Required
- Parameters:
id
(Path): Unique identifier for the recipe.
- POST
/api/auth/register
- Description: Register a new user.
- POST
/api/auth/login
- Description: Authenticate and log in an existing user.
- GET
/api/auth/logout
- Description: Log out the current user.
- GET
/api/recipe/browse
- Description: Retrieve all recipes in the database.
- GET
/api/recipe/myRecipes
- Description: Retrieve recipes of the currently logged-in user.
- Authentication: Required
- POST
/api/recipe/add
- Description: Add a new recipe.
- Authentication: Required
- GET
/api/clanInfo
- Description: Retrieve information about the specific clan the app focuses on.
- GET
/api/getClanMembers
- Description: Retrieve information about all clan members in the current clan.
- GET
/api/getUser/{id}
- Description: Retrieve information about a specific Destiny 2 user.
- Parameters:
id
(Path): Unique identifier for the user.
- GET
/api/getCharacter/{membershipType}/{destinyMembershipId}
- Description: Retrieve character information for a specific Destiny 2 user.
- Parameters:
membershipType
(Path): Type of membership (e.g., Xbox, PlayStation, Steam).destinyMembershipId
(Path): Destiny 2 membership ID.
- GET
/api/nasa/pod
- Description: Retrieve NASA's picture of the day.
- GET
/api/nasa/articles/?query={string}
- Description: Retrieve articles related to a specific topic in astronomy.
- Parameters:
query
(Query): The topic to search articles for.
- GET
/api/nasa/planets/?query={string}
- Description: Retrieve information about a specific planet.
- Parameters:
query
(Query): The name of the planet to search for.
- Authentication & Authorization: Endpoints requiring authentication typically need an access token, which should be included in the request headers.
- Error Handling: Ensure proper error handling and validation in your requests to avoid issues.
Feel free to explore the endpoints and integrate the multi-tool
API into your applications. If you have any questions or encounter issues, please open an issue or contact us.
Happy coding!