Skip to main content

Week 4

(June, 23, 2023)

Attendees

Update

  • Created Handler for invalid user.
  • Created endpoints to update and create license.
    • Create License:
      • to create an open-source license and add it to the database
      • to make a license we need some required field
    • Update License:
      • to update an open-source license and modify it to database
      • License to be updated using shortname
    POST METHOD:  /api/licenses      // Create license 
PATCH METHOD: /api/license/:shortname // Update licenses by shortname

Discussions

  • What should be the data components of a user required for authenticattion: They should be same as in fossology
  • Search should be done using both fuzzy and fulltext search.
  • For now we have to add basic Authentication.

Conclusion and future plan

  • Add basic Authentication and create user table for migration.
  • Create, Get all user and get user by id as basic endpoints.
    GET METHOD: /api/users       // get all users
GET METHOD: /api/user/:id // get a user by id
POST METHOD: /api/user // create a user