Firebase User Data Setup and Endpoint Configuration
Issue: Firebase User Data Setup and Endpoint Configuration
Description
Setup user data structure in Firebase and configure necessary endpoints for data retrieval. The following tasks need to be completed:
Tasks
-
Firebase User Data Setup
-
Configure the user data schema to store the following information:
-
Name:
VARCHAR
(Optional, can beNULL
) -
Age:
INTEGER
-
Gender:
VARCHAR/ENUM
(Options: "männlich", "weiblich", "divers") -
Educational Level:
VARCHAR/ENUM
(Options: "Hauptschulabschluss", "Realschulabschluss", "Fachhochschulreife/Abitur", "Fachhoch-/Hochschulabschluss") -
Professional Role/Position:
VARCHAR
-
Own Industry/Sector:
VARCHAR/ENUM
-
Client Industries/Sectors:
ARRAY OF VARCHAR/ENUM
(Maximum 3 entries)
-
Name:
-
Allowed values for
Own Industry/Sector
andClient Industries/Sectors
:- Agriculture, Forestry, and Fisheries
- Mining and Quarrying
- Manufacturing
- Utilities (Energy/Water/Waste Management)
- Construction
- Transportation and Storage
- Information and Communication
- Health and Social Work
- Financial and Insurance Services
-
-
API Endpoint Configuration
- Configure the following endpoints:
- Get All Users: Retrieve a list of all existing users.
- Get Specific User by Full Name: Retrieve user data based on the full name.
- Get Specific User by Unique ID: Retrieve user data based on a unique identifier.
- Add a new User: Add a new User to the data base, if the given information are valid
- Configure the following endpoints:
Notes
- Ensure the data structure aligns with Firebase best practices.
- Validate ENUM fields to restrict data to allowed values.
- Provide error handling for endpoints to manage cases like "user not found" or invalid input.