mirror of
https://github.com/grafana/grafana.git
synced 2025-08-02 10:57:19 +08:00
Docs: Moves http api docs to the developer docs (#49255)
* updates relrefs after move Co-authored-by: Chris Moyer <chris.moyer@grafana.com> * applies weights Co-authored-by: Chris Moyer <chris.moyer@grafana.com> Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * updates developer _index page * make prettier Signed-off-by: Jack Baldry <jack.baldry@grafana.com> Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
This commit is contained in:

committed by
GitHub

parent
3d5d8c785b
commit
ee9ea64834
22
docs/sources/developers/http_api/curl-examples.md
Normal file
22
docs/sources/developers/http_api/curl-examples.md
Normal file
@ -0,0 +1,22 @@
|
||||
+++
|
||||
aliases = ["/docs/grafana/latest/http_api/curl-examples/"]
|
||||
description = "cURL examples"
|
||||
keywords = ["grafana", "http", "documentation", "api", "curl"]
|
||||
title = "cURL examples"
|
||||
+++
|
||||
|
||||
# cURL examples
|
||||
|
||||
This page provides examples of calls to the Grafana API using cURL.
|
||||
|
||||
The most basic example for a dashboard for which there is no authentication. You can test the following on your local machine, assuming a default installation and anonymous access enabled, required:
|
||||
|
||||
```
|
||||
curl http://localhost:3000/api/search
|
||||
```
|
||||
|
||||
Here’s a cURL command that works for getting the home dashboard when you are running Grafana locally with [basic authentication]({{< relref "../../auth#basic-auth" >}}) enabled using the default admin credentials:
|
||||
|
||||
```
|
||||
curl http://admin:admin@localhost:3000/api/search
|
||||
```
|
Reference in New Issue
Block a user