1
0
mirror of https://gitlab.com/2-chainz/2-chainz-rest.git synced 2025-08-02 19:41:24 +00:00

updated urls

This commit is contained in:
2021-08-10 03:33:36 -07:00
parent 4f84d4eb05
commit 5cd01b888d

View File

@@ -1,6 +1,6 @@
# 2 Chainz Rest
API for 2 Chainz quotes an aliases built using Python and Azure Functions. More project info at [2.chainz.rest](https://2.chainz.rest).
API for 2 Chainz quotes an aliases built using Python and Azure Functions. More project info at [2.chainz.rest](https://2chainz.ansonbiggs.com).
## Endpoints
@@ -8,7 +8,7 @@ API for 2 Chainz quotes an aliases built using Python and Azure Functions. More
Returns a random 2 Chainz Quote in `json` format like the following example:
send a `get` request to `https://api.chainz.rest/quote`
send a `get` request to `https://chainz-rest.azurewebsites.net/quote`
```json
{
@@ -18,7 +18,7 @@ send a `get` request to `https://api.chainz.rest/quote`
#### Parameters
This endpoint also supports an optional `batch` parameter to get more than one quote per request. Maximum quotes that the endpoint will return is the amount of quotes in [quotes.py](quote/quotes.py) and is subject to change. An example return from [https://api.chainz.rest/quote?batch=2](https://api.chainz.rest/quote?batch=2):
This endpoint also supports an optional `batch` parameter to get more than one quote per request. Maximum quotes that the endpoint will return is the amount of quotes in [quotes.py](quote/quotes.py) and is subject to change. An example return from [https://chainz-rest.azurewebsites.net/quote?batch=2](https://chainz-rest.azurewebsites.net/quote?batch=2):
```json
{
@@ -35,7 +35,7 @@ This endpoint also supports an optional `batch` parameter to get more than one q
Returns a random 2 Chainz alias in `json` format. The return values are weighted and a full list can be seen in [aliases.py](alias/aliases.py).
send a `get` request to `https://api.chainz.rest/alias`
send a `get` request to `https://chainz-rest.azurewebsites.net/alias`
```json
{