Artifacts
Get artifact
Get an artifact by ID with inline contents or database preview.
GET
/
api
/
artifacts
/
{id}
cURL
curl http://localhost:18080/api/artifacts/art-123const options = {method: 'GET'};
fetch('http://localhost:18080/api/artifacts/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "http://localhost:18080/api/artifacts/{id}"
response = requests.get(url)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://localhost:18080/api/artifacts/{id}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"artifact": {
"id": "<string>",
"name": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"revision": 123
},
"contents": "<string>"
}⌘I
cURL
curl http://localhost:18080/api/artifacts/art-123const options = {method: 'GET'};
fetch('http://localhost:18080/api/artifacts/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "http://localhost:18080/api/artifacts/{id}"
response = requests.get(url)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://localhost:18080/api/artifacts/{id}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"artifact": {
"id": "<string>",
"name": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"revision": 123
},
"contents": "<string>"
}
