techlore / plexus

Remove the fear of Android app compatibility on de-Googled devices.
https://plexus.techlore.tech
GNU General Public License v3.0
507 stars 154 forks source link

Use application's package as unique identifier #331

Closed tomkonidas closed 1 year ago

tomkonidas commented 1 year ago

We have decided to use the package instead of generating a uniq id. The package is always uniq.

We would now use the api as such: Method Route
GET /api/v1/applications/:package
POST /api/v1/applications
GET /api/v1/applications/:package/ratings
GET /api/v1/applications/:package/ratings/:id
POST /api/v1/applications/:package/ratings

When submitting POST requests for a rating, you would now provide the application_package instead of the application_id.

Screenshots:

Get an application

Screenshot 2023-02-24 at 5 45 42 PM

Get an application's ratings

Screenshot 2023-02-24 at 5 46 46 PM

Get an application's particular rating

Screenshot 2023-02-24 at 5 47 41 PM

Create an application

Screenshot 2023-02-24 at 5 50 13 PM

Rate an application

Screenshot 2023-02-24 at 5 51 35 PM