coder / coder/internal

Spec out API response for get modules endpoint

Aperta
#413 0 commenti 0 reazioni 2 assegnatari Rivendicata da @bcpeinhardt Vedi su GitHub
Lingua principale
Nessun dato sulla lingua
Stelle
3
Fork
0
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.