MatthiWare / UpdateLib

A .Net auto update library made in C#
GNU Affero General Public License v3.0
6 stars 3 forks source link

ASP.Net Core Web API + Dashboard #32

Open Matthiee opened 6 years ago

Matthiee commented 6 years ago

Note: This might be put into its own repo to not bloat the UpdateLib Package.

History

Up until now we used a CLI to create new updates. We used files to communicate between the server and the client.

Future

We should use an Web API that our users can set-up to use to make and manage updates. This API should expose some Endpoints to allow that

Endpoints

GET /api/updates

Gets a list of all available updates

GET /api/updates/{id}

Gets an update info that contains all the versions that can update to this version with patches

POST /api/updates/{id}

Used to manage the specified update

GET /api/updates/from/{version}

Gets an list with all available version from the specified version

GET /api/updates/from/{version}/{latest or stable}

Gets the latest stable or unstable version from the specified version

GET /api/updates/patch/{id}

Downloads the patch file

POST /api/updates/patch/create

Creates a new patch based on the specified info. This will probably return a task id that can be checked to see if it is completed.

Dashboard