Adding initial API docs
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
# API Metrics
|
||||
|
||||
**_Work In Progress_**
|
||||
|
||||
## `/metrics`
|
||||
|
||||
Interact with metrics
|
||||
|
||||
Example URL: `http://status.cachethq.io/api/metrics`
|
||||
|
||||
* `GET`: returns a list of the current metrics
|
||||
- success: 200:
|
||||
|
||||
~~~json
|
||||
To be confirmed
|
||||
~~~
|
||||
|
||||
* `POST`: Create an metric
|
||||
- payload
|
||||
|
||||
~~~json
|
||||
To be confirmed
|
||||
~~~
|
||||
|
||||
|
||||
|
||||
## `/metrics/:id`
|
||||
|
||||
Show a single metric
|
||||
|
||||
Example URL: `http://status.cachethq.io/api/metrics/1`
|
||||
|
||||
* `GET`: Return a single metric
|
||||
- success: 200:
|
||||
|
||||
~~~json
|
||||
To be confirmed
|
||||
~~~
|
||||
|
||||
## `/metrics/points`
|
||||
|
||||
To be confirmed
|
||||
|
||||
|
||||
Reference in New Issue
Block a user