SystemFiles / gitbuilder-templates-api

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.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.


Languages

Language:JavaScript 90.0%Language:Dockerfile 5.0%Language:Shell 5.0%