Add the templates for npm
All checks were successful
Build and Deploy on Tag / build-crosslang-shell-and-cpkg (push) Successful in 37s
All checks were successful
Build and Deploy on Tag / build-crosslang-shell-and-cpkg (push) Successful in 37s
This commit is contained in:
@@ -3,9 +3,13 @@
|
||||
"info": {
|
||||
"type": "console",
|
||||
"short_name": "packageserver",
|
||||
"short_name_pretty": "Package Server"
|
||||
"short_name_pretty": "Package Server",
|
||||
"description": "This webapp allows you to serve packages",
|
||||
"repo": "https://git.tesses.org/tesses50/crosslangextras",
|
||||
"homepage": "https://cpkg.tesseslanguage.com/",
|
||||
"license": "AGPLv3"
|
||||
},
|
||||
"version": "1.0.0.0-prod",
|
||||
"version": "1.0.0.0-dev",
|
||||
"name": "Tesses.CrossLang.PackageServer",
|
||||
"compTime": "secure"
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@ func main(args)
|
||||
PUT /api/v1/upload Authorization Bearer
|
||||
POST /api/v1/login Json object with email and password returns json object with either 200 for success {"token": "TOKEN_VAL"} or non 2XX if fails {"reason": "SOME ERROR"}
|
||||
POST /api/v1/logout use Authorization Bearer
|
||||
GET /api/v1/latest?name=PackageName returns 200 OK with json {"version": "1.0.0.0-prod"} if it succeeds if it fails returns a failing status code with {"reason": "SOME ERROR"}
|
||||
GET /api/v1/latest?name=PackageName returns 200 OK with json {"version":"1.0.0.0-dev"} if it succeeds if it fails returns a failing status code with {"reason": "SOME ERROR"}
|
||||
GET /api/v1/download?name=PackageName&version=1.0.0.0-prod returns 200 OK with package bytes or 404 if doesn't exist
|
||||
GET /api/v1/search?q=SomeQuery&offset=&limit= returns 200 OK with json of packages {"packages": [{"name": "pkgName","version": "latestVersion", ...}]} or non success status code
|
||||
|
||||
|
||||
Reference in New Issue
Block a user