{"openapi":"3.1.0","info":{"title":"Foundation API","version":"1.0.0","description":"Read-only API of foundationnw.dev: releases, builds, marketplace catalog, public profiles and, with a personal access token, the member's own data."},"servers":[{"url":"https://foundationnw.dev"}],"tags":[{"name":"releases","description":"Releases and builds"},{"name":"marketplace","description":"Marketplace"},{"name":"profiles","description":"Profiles"},{"name":"account","description":"Your account"},{"name":"reference","description":"Reference"}],"paths":{"/api/v1/releases":{"get":{"operationId":"releasesIndex","tags":["releases"],"summary":"Latest build on each channel of a product.","parameters":[{"name":"product","in":"query","required":false,"schema":{"type":"string"},"description":"foundation (default) or buildkit."}],"responses":{"200":{"description":"Success."},"429":{"description":"Too many requests."}}}},"/api/v1/releases/{channel}/latest":{"get":{"operationId":"releasesLatest","tags":["releases"],"summary":"Latest build on one channel.","parameters":[{"name":"channel","in":"path","required":true,"schema":{"type":"string"},"description":"stable, rc, beta or nightly."},{"name":"product","in":"query","required":false,"schema":{"type":"string"},"description":"foundation (default) or buildkit."}],"responses":{"200":{"description":"Success."},"404":{"description":"Not found."},"429":{"description":"Too many requests."}}}},"/api/v1/builds/{product}/{buildNumber}":{"get":{"operationId":"buildsShow","tags":["releases"],"summary":"One build, with its files, checksums and provenance.","parameters":[{"name":"product","in":"path","required":true,"schema":{"type":"string"},"description":"foundation (default) or buildkit."},{"name":"buildNumber","in":"path","required":true,"schema":{"type":"integer"},"description":"Build number."}],"responses":{"200":{"description":"Success."},"404":{"description":"Not found."},"429":{"description":"Too many requests."}}}},"/api/v1/builds/{product}/{buildNumber}/manifest":{"get":{"operationId":"buildsManifest","tags":["releases"],"summary":"BuildKit manifest attached to a Foundation build.","parameters":[{"name":"product","in":"path","required":true,"schema":{"type":"string"},"description":"foundation (default) or buildkit."},{"name":"buildNumber","in":"path","required":true,"schema":{"type":"integer"},"description":"Build number."}],"responses":{"200":{"description":"Success."},"404":{"description":"Not found."},"429":{"description":"Too many requests."}}}},"/api/v1/builds/{product}/{buildNumber}/sha256sums":{"get":{"operationId":"buildsChecksums","tags":["releases"],"summary":"SHA-256 checksums of a build, in the sha256sum format.","parameters":[{"name":"product","in":"path","required":true,"schema":{"type":"string"},"description":"foundation (default) or buildkit."},{"name":"buildNumber","in":"path","required":true,"schema":{"type":"integer"},"description":"Build number."}],"responses":{"200":{"description":"Success."},"404":{"description":"Not found."},"429":{"description":"Too many requests."}}}},"/api/v1/compatibility":{"get":{"operationId":"compatibility","tags":["releases"],"summary":"Which Foundation builds work with which nanos world and BuildKit versions.","parameters":[],"responses":{"200":{"description":"Success."},"429":{"description":"Too many requests."}}}},"/api/v1/resources":{"get":{"operationId":"resourcesIndex","tags":["marketplace"],"summary":"Published marketplace resources, 24 per page.","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string"},"description":"Words to search for, in English or French."},{"name":"type","in":"query","required":false,"schema":{"type":"string"},"description":"Resource type."},{"name":"tag","in":"query","required":false,"schema":{"type":"string"},"description":"Tag slug."},{"name":"foundation","in":"query","required":false,"schema":{"type":"string"},"description":"Foundation release line such as 1.5: resources whose latest version supports it."},{"name":"price","in":"query","required":false,"schema":{"type":"string"},"description":"free or paid."},{"name":"rating","in":"query","required":false,"schema":{"type":"string"},"description":"Minimum average rating: 4, 3 or 2."},{"name":"sort","in":"query","required":false,"schema":{"type":"string"},"description":"updated (default), featured, newest, downloads, trending, rating or title."},{"name":"page","in":"query","required":false,"schema":{"type":"integer"},"description":"Page number, from 1."}],"responses":{"200":{"description":"Success."},"422":{"description":"Invalid query parameters."},"429":{"description":"Too many requests."}}}},"/api/v1/resources/{resource}":{"get":{"operationId":"resourcesShow","tags":["marketplace"],"summary":"One resource, with its description and the compatibility of its latest version.","parameters":[{"name":"resource","in":"path","required":true,"schema":{"type":"string"},"description":"Resource slug."}],"responses":{"200":{"description":"Success."},"404":{"description":"Not found."},"429":{"description":"Too many requests."}}}},"/api/v1/resources/{resource}/versions":{"get":{"operationId":"resourcesVersions","tags":["marketplace"],"summary":"Published and withdrawn versions of a resource, newest first.","parameters":[{"name":"resource","in":"path","required":true,"schema":{"type":"string"},"description":"Resource slug."}],"responses":{"200":{"description":"Success."},"404":{"description":"Not found."},"429":{"description":"Too many requests."}}}},"/api/v1/resources/{resource}/versions/{version}/download":{"get":{"operationId":"resourcesDownload","tags":["marketplace"],"summary":"Redirects to a short-lived address for the file of a version.","parameters":[{"name":"resource","in":"path","required":true,"schema":{"type":"string"},"description":"Resource slug."},{"name":"version","in":"path","required":true,"schema":{"type":"string"},"description":"Version number."}],"responses":{"302":{"description":"Redirect to the file."},"401":{"description":"No valid token."},"403":{"description":"Missing scope, suspended account or purchase required."},"404":{"description":"Not found."},"410":{"description":"Version withdrawn."},"429":{"description":"Too many requests."}},"security":[[],{"personalToken":["library:download"]}]}},"/api/v1/users/{username}":{"get":{"operationId":"usersShow","tags":["profiles"],"summary":"A member's public profile, organizations and published resources.","parameters":[{"name":"username","in":"path","required":true,"schema":{"type":"string"},"description":"Member username."}],"responses":{"200":{"description":"Success."},"404":{"description":"Not found."},"429":{"description":"Too many requests."}}}},"/api/v1/organizations/{organization}":{"get":{"operationId":"organizationsShow","tags":["profiles"],"summary":"An organization, its members with a public profile and its published resources.","parameters":[{"name":"organization","in":"path","required":true,"schema":{"type":"string"},"description":"Organization slug."}],"responses":{"200":{"description":"Success."},"404":{"description":"Not found."},"429":{"description":"Too many requests."}}}},"/api/v1/me":{"get":{"operationId":"meShow","tags":["account"],"summary":"Your account and the token in use.","parameters":[],"responses":{"200":{"description":"Success."},"401":{"description":"No valid token."},"403":{"description":"Missing scope, suspended account or purchase required."},"429":{"description":"Too many requests."}},"security":[{"personalToken":["profile:read"]}]}},"/api/v1/me/library":{"get":{"operationId":"meLibrary","tags":["account"],"summary":"The paid resources you own.","parameters":[],"responses":{"200":{"description":"Success."},"401":{"description":"No valid token."},"403":{"description":"Missing scope, suspended account or purchase required."},"429":{"description":"Too many requests."}},"security":[{"personalToken":["library:read"]}]}},"/api/v1/me/resources":{"get":{"operationId":"meResources","tags":["account"],"summary":"The resources you publish, whatever their status.","parameters":[],"responses":{"200":{"description":"Success."},"401":{"description":"No valid token."},"403":{"description":"Missing scope, suspended account or purchase required."},"429":{"description":"Too many requests."}},"security":[{"personalToken":["resources:read"]}]}},"/api/v1/openapi.json":{"get":{"operationId":"openapi","tags":["reference"],"summary":"This reference as an OpenAPI 3.1 document.","parameters":[],"responses":{"200":{"description":"Success."},"429":{"description":"Too many requests."}}}}},"components":{"securitySchemes":{"personalToken":{"type":"http","scheme":"bearer","description":"Personal access token created in Account > Access tokens, sent as \"Authorization: Bearer fpt_...\"."}}}}