Applications REST API
Problem to solve
We want mini-apps to integrate to StackGres (see #464). To be able to provide such functionality without all the required abstraction we will just implement a REST API endpoint that returns the list of available applications.
Further details
The endpoint will return a list of application names.
Proposal
Create a REST API endpoint /stackgres/application
that will return a list of applications (initially empty) with the syntax [a-z0-9]+(-[a-z0-9]+)*
.
The REST API will return the following JSON object with a 200 HTTP code:
- name: <string> # application name
publisher: <string> # application publisher
On error operation the REST API will return the following JSON object with a 500 HTTP code:
type: <string>
title: <string>
detail: <string>
status: <integer>
fields:
- <string>
Links / references
https://github.com/babelfish-for-postgresql/babelfish_compass
Edited by Matteo Melli