Add auctions endpoint to REPP

This commit is contained in:
Maciej Szlosarczyk 2020-05-21 14:12:37 +03:00
parent 82109c506c
commit fda3d346b3
No known key found for this signature in database
GPG key ID: 41D62D42D3B0D765
5 changed files with 88 additions and 1 deletions

39
doc/repp/v1/auctions.md Normal file
View file

@ -0,0 +1,39 @@
## GET /repp/v1/auctions
Return a list of auctions currently in progress. The list of domains changes
every day.
In contrast with other endpoints in REPP, this one is publicly available for
anyone without authentication.
#### Request
```
GET /repp/v1/auctions HTTP/1.1
Host: registry.test
User-Agent: curl/7.64.1
Accept: */*
```
#### Response
```
HTTP/1.1 200 OK
Date: Thu, 21 May 2020 10:39:45 GMT
Content-Type: application/json; charset=utf-8
ETag: W/"217bd9ee4dfbb332172a1baf80ee0ba9"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: a26b6801-bf3f-4922-b0db-3b081bacb130
X-Runtime: 1.481174
Transfer-Encoding: chunked
{
"count":1,
"auctions": [
{
"domain_name": "auctionäöüõ.test",
"punycode_domain_name": "xn--auction-cxa7mj0e.test"
}
]
}
```