diff --git a/doc/registrant-api/v1/authentication.md b/doc/registrant-api/v1/authentication.md index 558bb1880..20ad6edd6 100644 --- a/doc/registrant-api/v1/authentication.md +++ b/doc/registrant-api/v1/authentication.md @@ -7,7 +7,7 @@ authentication. API client should perform authentication with eID according to the approriate documentation, and then pass on values from the webserver's certificate to the API server. -## POST /repp/v1/registrant/auth/eid +## POST /api/v1/registrant/auth/eid Returns a bearer token to be used for further API requests. Tokens are valid for 2 hours since their creation. @@ -24,7 +24,7 @@ Values in brackets represent values that come from the id card certificate. #### Request ``` -POST /repp/v1/auth/token HTTP/1.1 +POST /api/v1/auth/token HTTP/1.1 Accept: application/json Content-type: application/json @@ -48,7 +48,7 @@ Content-Type: application.json } ``` -## POST /repp/v1/auth/username -- NOT IMPLEMENTED +## POST /api/v1/auth/username -- NOT IMPLEMENTED #### Paramaters @@ -62,7 +62,7 @@ Values in brackets represent values that come from the id card certificate #### Request ``` -POST /repp/v1/auth/token HTTP/1.1 +POST /api/v1/auth/token HTTP/1.1 Accept: application/json Content-type: application/json ``` diff --git a/doc/registrant-api/v1/contact.md b/doc/registrant-api/v1/contact.md index ea28294d0..4e1c12bec 100644 --- a/doc/registrant-api/v1/contact.md +++ b/doc/registrant-api/v1/contact.md @@ -1,4 +1,4 @@ -## GET /repp/v1/registrant/contacts +## GET /api/v1/registrant/contacts Returns contacts of the current registrar. @@ -11,7 +11,7 @@ Returns contacts of the current registrar. #### Request ``` -GET /repp/v1/registrant/contacts?limit=1 HTTP/1.1 +GET /api/v1/registrant/contacts?limit=1 HTTP/1.1 Accept: application/json Authorization: Bearer Z2l0bGFiOmdoeXQ5ZTRmdQ== Content-Type: application/json @@ -59,13 +59,13 @@ Content-Type: application/json } ``` -## GET /repp/v1/registrant/contacts/$UUID +## GET /api/v1/registrant/contacts/$UUID Returns contacts of the current registrar. #### Request ``` -GET /repp/v1/registrant/contacts/84c62f3d-e56f-40fa-9ca4-dc0137778949 HTTP/1.1 +GET /api/v1/registrant/contacts/84c62f3d-e56f-40fa-9ca4-dc0137778949 HTTP/1.1 Accept: application/json Authorization: Bearer Z2l0bGFiOmdoeXQ5ZTRmdQ== Content-Type: application/json @@ -107,7 +107,7 @@ Content-Type: application/json } ``` -## PUT/PATCH /repp/v1/registrant/contacts/$UUID +## PATCH /api/v1/registrant/contacts/$UUID Update contact details for a contact. @@ -127,7 +127,7 @@ Update contact details for a contact. #### Request ``` -PUT /repp/v1/registrant/contacts/84c62f3d-e56f-40fa-9ca4-dc0137778949 HTTP/1.1 +PATCH /api/v1/registrant/contacts/84c62f3d-e56f-40fa-9ca4-dc0137778949 HTTP/1.1 Authorization: Bearer Z2l0bGFiOmdoeXQ5ZTRmdQ== Accept: application/json Content-type: application/json diff --git a/doc/registrant-api/v1/domain.md b/doc/registrant-api/v1/domain.md index 2e249423c..09495220d 100644 --- a/doc/registrant-api/v1/domain.md +++ b/doc/registrant-api/v1/domain.md @@ -1,6 +1,6 @@ # Domain related actions -## GET /repp/v1/registrant/domains +## GET /api/v1/registrant/domains Returns domains of the current registrant. @@ -15,7 +15,7 @@ Returns domains of the current registrant. #### Request ``` -GET repp/v1/registrant/domains?limit=1&details=true HTTP/1.1 +GET api/v1/registrant/domains?limit=1&details=true HTTP/1.1 Accept: application/json Authorization: Bearer Z2l0bGFiOmdoeXQ5ZTRmdQ== Content-Type: application/json @@ -70,14 +70,14 @@ Content-Type: application/json } ``` -## GET repp/v1/registrant/domains +## GET api/v1/registrant/domains Returns domain names with offset. #### Request ``` -GET repp/v1/registrant/domains?offset=1 HTTP/1.1 +GET api/v1/registrant/domains?offset=1 HTTP/1.1 Accept: application/json Authorization: Bearer Z2l0bGFiOmdoeXQ5ZTRmdQ== Content-Type: application/json @@ -96,14 +96,14 @@ Content-Type: application/json } ``` -## GET repp/v1/registrant/domains/$UUID +## GET api/v1/registrant/domains/$UUID Returns a single domain object. #### Request ``` -GET repp/v1/registrant/domains/98d1083a-8863-4153-93e4-caee4a013535 HTTP/1.1 +GET api/v1/registrant/domains/98d1083a-8863-4153-93e4-caee4a013535 HTTP/1.1 Accept: application/json Authorization: Bearer Z2l0bGFiOmdoeXQ5ZTRmdQ== Content-Type: application/json diff --git a/doc/registrant-api/v1/domain_lock.md b/doc/registrant-api/v1/domain_lock.md index 0237a11cb..5f275edb4 100644 --- a/doc/registrant-api/v1/domain_lock.md +++ b/doc/registrant-api/v1/domain_lock.md @@ -1,12 +1,12 @@ # Domain locks -## POST repp/v1/registrant/domains/$UUID/registry_lock +## POST api/v1/registrant/domains/$UUID/registry_lock Set a registry lock on a domain. #### Request ``` -POST repp/v1/registrant/domains/98d1083a-8863-4153-93e4-caee4a013535/registry_lock HTTP/1.1 +POST api/v1/registrant/domains/98d1083a-8863-4153-93e4-caee4a013535/registry_lock HTTP/1.1 Accept: application/json Authorization: Bearer Z2l0bGFiOmdoeXQ5ZTRmdQ== Content-Type: application/json @@ -82,13 +82,13 @@ Content-Type: application/json ``` -## DELETE repp/v1/registrant/domains/$UUID/registry_lock +## DELETE api/v1/registrant/domains/$UUID/registry_lock Remove a registry lock. #### Request ``` -DELETE repp/v1/registrant/domains/98d1083a-8863-4153-93e4-caee4a013535/registry_lock HTTP/1.1 +DELETE api/v1/registrant/domains/98d1083a-8863-4153-93e4-caee4a013535/registry_lock HTTP/1.1 Accept: application/json Authorization: Bearer Z2l0bGFiOmdoeXQ5ZTRmdQ== Content-Type: application/json