coder / coder/internal

Spec out API response for get modules endpoint

Open
#413 0 comments 0 reactions 2 assignees Claimed by @bcpeinhardt View on GitHub
Dominant language
No language data
Stars
3
Forks
0
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.