coder / coder/internal

Spec out API response for get modules endpoint

Đang mở
#413 0 bình luận 0 reaction 2 người được giao Được @bcpeinhardt nhận Xem trên GitHub
Ngôn ngữ chính
Không có dữ liệu ngôn ngữ
Star
3
Fork
0
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.