data

this endpoint is for getting various simple data.

get a language by name

GET

/data/language?name={language}

get the language information for a specific language, returns a 404 status if the language couldn't be found.

field type description optional?
name string language name no
mode string language mode to be used in the editor no
mimes string array list of mimes used by the language no
ext string array list of extensions used by the language no
color string color representing the language yes
{
  "ext": [
    "d"
  ],
  "name": "D",
  "color": "#ba595e",
  "mode": "d",
  "mimes": [
    "text/x-d"
  ]
}

get a language by extension

GET

/data/languageExt?extension={extension}

get the language information for a specific language found by the extension, returns a 404 status if the language couldn't be found.

returns the same object as getting the language by name.