thevahidal / soul

🕉 A SQLite REST and realtime server
https://thevahidal.github.io/soul/
MIT License
1.45k stars 49 forks source link

180 allow optional fields users table #181

Closed AbegaM closed 2 months ago

AbegaM commented 2 months ago

Fixes #180

Modifications

  1. Modify the registerUser controller to pass optional fields for the POST /api/tables/_users/rows endpoint

Testing Results

  1. A success message when we create a user with an optional field

    • Screen Shot 2024-04-23 at 4 57 48 PM
  2. List of users that are returned when we send a request to the GET /api/tables/_users/rows endpoint

    • Screen Shot 2024-04-23 at 4 59 24 PM
  3. List of users in the database

    • Screen Shot 2024-04-23 at 4 59 48 PM
  4. A success message when we create a user without optional fields

    • Screen Shot 2024-04-23 at 5 21 31 PM
    • Note that this shows the feature is not breaking when we don't pass optional fields