fossology / fossology

FOSSology is an open source license compliance software system and toolkit. As a toolkit you can run license, copyright and export control scans from the command line. As a system, a database and web ui are provided to give you a compliance workflow. License, copyright and export scanners are tools used in the workflow.
https://fossology.github.io/
GNU General Public License v2.0
802 stars 420 forks source link

Create Admin-License via REST-API #2318

Closed dushimsam closed 1 year ago

dushimsam commented 2 years ago

Description

There's a need for the API to create Admin License.

Steps to be followed

  1. Create a new route on the main page (index.php) as a part of the License routes.
  2. Add a new function in LicenseController to handle the functionality.
  3. Test the API.
  4. Add the new API's documentation in https://github.com/fossology/fossology/blob/master/src/www/ui/api/documentation/openapi.yaml
  5. Open a pull request.

Expected Results

  1. A POST endpoint to be accessed at ''/license/admin".
  2. The API should return a success message if the INSERTION operation was successful with the respective status code.

cc: @shaheemazmalmmd @GMishx

GMishx commented 1 year ago

Endpoint already exists POST /license : https://github.com/fossology/fossology/blob/1308485f8e8622bd539e64b9457b8eb7034fbf33/src/www/ui/api/documentation/openapi.yaml#L2176

Closing the issue, please reopen if required.