coder / coder/internal

Spec out API response for get modules endpoint

未关闭
#413 0 条评论 0 个 reaction 已指派 2 人 已被 @bcpeinhardt 认领 在 GitHub 查看
主要语言
没有语言数据
星标
3
派生
0
PR 合并指标
30 天内没有已合并 PR

描述

Example:
```
display_name: code-server
description: VS Code in the browser
icon: ../.icons/code.svg
maintainer_github: coder
verified: true
tags: [helper, ide, web]
```

```
// generated source code
type ModuleData struct {
Name string
CodeSnippet string
}

var APIResponses = []ModuleData{
{
Name: "hey",
CodeSnippet: "my code",
},
}

// normal source code
func (s Server) listModules() {
api.Write(APIResponses)
}
```

Plus the code snippet data from https://github.com/coder/internal/issues/412

This should be a shared struct that will both be used when parsing readmes and will be served from the API.

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。