This project is a work in progress and not complete.
This project provides an API endpoint to retrieve detailed information about users in our system.
- Retrieves comprehensive user information including:
- Personal details (name, title, affiliation)
- Academic background and interests
- Publications and projects
- Social media handles and website URLs
- Commons activity and memberships
- And more...
-
Clone this repository: git clone https://github.com/yourusername/user-profile-api.git
-
Navigate to the project directory: cd user-profile-api
-
Install the required dependencies: pip install -r requirements.txt
The main function get_about_user(request, user)
can be used as follows:
from user_profile import get_about_user
# Assuming you have a request object and a user object
user_info = get_about_user(request, user)
This will return a dictionary containing all available information about the user.
The API endpoint can be accessed at:
GET /api/user/<user_id>/about
Replace <user_id> with the ID of the user you want to retrieve information for.
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE.md file for details.