Skip to content

SystemFiles/gitbuilder-templates-api

Repository files navigation

GitBuilder Templates API

This project is designed to assist the gitbuilder-io project in listing approved provided templates for projects as well as providing data stream for each project to be downloaded to the client PC after call is made to the template endpoint. The API also allows some authenticated users to upload approved project templates via the API or Gitbuilder-io CLI providing their valid OAuth2.0 token.

Usage

Uploading a template

note: maxiumum upload size through API is 50MB

curl --location --request POST 'https://gb.sykesdev.ca/api/template?lang=<LANGUAGE>' \
--header 'Authorization: Bearer <YOUR_API_TOKEN>' \
--form 'files=@path/to/project/template/template.zip'

Get list of available templates

curl --location --request GET 'https://gb.sykesdev.ca/api/template?lang=<LANGUAGE>'

Get template filestream

curl --location --request GET 'https://gb.sykesdev.ca/api/template?name=<TEMPLATE_NAME>&lang=<LANGUAGE>'

About

Get build-in (approved) templates from blob storage. This is to fix current storage of templates on Gitbuilder.io package which causes excess space to be wasted.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published