Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pkg/appStore/bean/bean.go
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,7 @@ type AppStoreWithVersion struct {
UpdatedOn time.Time `json:"updated_on"`
Version string `json:"version"`
Deprecated bool `json:"deprecated"`
Description string `json:"description"`
}

type AppStoreFilter struct {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ func (impl *AppStoreApplicationVersionRepositoryImpl) FindAll() ([]appStoreBean.

func (impl *AppStoreApplicationVersionRepositoryImpl) FindWithFilter(filter *appStoreBean.AppStoreFilter) ([]appStoreBean.AppStoreWithVersion, error) {
var appStoreWithVersion []appStoreBean.AppStoreWithVersion
query := "SELECT asv.version, asv.icon,asv.deprecated ,asv.id as app_store_application_version_id, aps.*, ch.name as chart_name" +
query := "SELECT asv.version, asv.icon,asv.deprecated,asv.id as app_store_application_version_id," +
" asv.description, aps.*, ch.name as chart_name" +
" FROM app_store_application_version asv" +
" INNER JOIN app_store aps ON asv.app_store_id = aps.id" +
" INNER JOIN chart_repo ch ON aps.chart_repo_id = ch.id" +
Expand Down
126 changes: 126 additions & 0 deletions specs/app-store.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
openapi: "3.0.0"
info:
version: 1.0.0
title: Devtron Labs
paths:
/orchestrator/app-store/discover/:
get:
description: this api will return all the charts from charts repos.
parameters: [ ]
responses:
'200':
description: list response
content:
application/json:
schema:
properties:
code:
type: integer
description: status code
status:
type: string
description: status
result:
allOf:
- type: object
properties:
appId:
type: integer
description: unique application id
required:
- appId
- $ref: '#/components/schemas/AppStore'
default:
description: unexpected error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'






# components mentioned below
components:
schemas:
AppStore:
type: object
required:
- id
- name
properties:
id:
type: integer
description: app store id
name:
type: string
description: app store name
appStoreApplicationVersionId:
type: integer
description: app store version id
chart_git_location:
type: string
description: chart git repo location
chart_name:
type: string
description: chart name
chart_repo_id:
type: integer
description: app store and chart repo link id
deprecated:
type: boolean
description: deprecated app store flag
description:
type: string
description: app store description, short summary
icon:
type: string
description: app store icon link
created_on:
type: string
description: created on
updated_on:
type: string
description: modification date
version:
type: string
description: app store version
active:
type: boolean
description: active app store

ErrorResponse:
required:
- code
- status
properties:
code:
type: integer
format: int32
description: Error code
status:
type: string
description: Error message
errors:
type: array
description: errors
items:
$ref: '#/components/schemas/Error'

Error:
required:
- code
- status
properties:
code:
type: integer
format: int32
description: Error internal code
internalMessage:
type: string
description: Error internal message
userMessage:
type: string
description: Error user message