Publisher endpoints
Main Url : https://api.clearad.io/v1/publisher/
Creating Publisher
url:
- Main Urlmethod:
-POST
-
body:
- JSON{ "name": String, "email": String, "description": String, "avatar": String, "ethAddress": String }
-
response_code:
-200 - register successfull 405 - Invalid input 401 - Unauthorized
Getting Publisher
url:
- Main Urlmethod:
-GET
-
response_code:
-200 - JSON_Object 401 - Unauthorized
-
response_example:
-{ "date": "2000-01-23T00:00:00.000Z", "name": "name", "activate": true, "description": "description", "id": "id", "avatar": "avatar", "ethAddress": "ethAddress" }
Modifying details of publisher
url:
- Main Urlmethod:
-PUT
-
body:
-{ "name": String, "activate": Boolean, "description": String, "avatar": String, "ethAddress": String }
-
response_code:
-200 - successfull updated 400 - Invalid ID supplied 401 - Unauthorized 404 - Publisher not found