Fake API

Fixed mock endpoints that serve Console development and demo data.

Description

The Console service exposes only the fake API routes listed below. These endpoints allow the UI to run without the real backend services. Paths not listed here are not part of the Console fake API.

Sub-routes

Method Path Description
GET /fakeapi/authapi/auth/me Returns the current mock user
GET /fakeapi/inceptionapi/v1/databases Lists mock databases
GET /fakeapi/inceptionapi/v1/databases/{databaseid}/collections Lists mock collections for a database
GET /fakeapi/lambdasapi/api/v0/lambdas Lists mock lambdas
GET /fakeapi/projectsapi/v0/projects Lists mock projects
GET /fakeapi/projectsapi/v0/projects/{projectid} Returns one mock project
GET /fakeapi/filesapi/v1/buckets Lists mock buckets

Authentication

None. These mock endpoints are unauthenticated.

Example

1curl -X GET "https://api.hola.cloud/fakeapi/authapi/auth/me"
1{
2  "email": "fulanez@gmail.com",
3  "id": "user-1234",
4  "nick": "fulanez",
5  "picture": "https://lh3.googleusercontent.com/a-/ACNPEu8h8e8wfcL1Hsk4JbFsROFXIBNIllOFLLPnWEDWV2s=s96-c"
6}
1curl -X GET "https://api.hola.cloud/fakeapi/projectsapi/v0/projects"
1[
2  {
3    "id": "project-00000000-0000-0000-0000-000000000001",
4    "name": "Hello",
5    "host": "red-pepper.holacloud.app",
6    "owners": ["user1"]
7  }
8]
1curl -X GET "https://api.hola.cloud/fakeapi/lambdasapi/api/v0/lambdas"
1[
2  {
3    "id": "a663e1f1-e5cb-4fc2-b846-53f2cc7574c9",
4    "method": "GET",
5    "name": "Index",
6    "path": "/"
7  }
8]

Error Codes

Code Description
200 Mock data returned successfully
404 Path under /fakeapi/ not recognized

Comments

Leave a comment