All URIs are relative to http://cor.esipfed.org/ont/api/v0
Method | HTTP request | Description |
---|---|---|
add_user | POST /user | Registers a user |
delete_user | DELETE /user/{userName} | Unregisters a user |
update_user | PUT /user/{userName} | Updates information about a registered user |
user_get | GET /user | Gets information about registered users |
user_user_name_get | GET /user/{userName} | Gets basic information of a particular user |
add_user(body=body)
Registers a user
This operation allows to register a new user in the system. NOTE: This operation cannot be completed here if the endpoint is configured to required a ReCAPTCHA code, which is currently not captured in this interface. Please use the ORR Portal interface associated with the endpoint to register the new user.
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.UserApi()
body = swagger_client.PostUser() # PostUser | User object that needs to be registered (optional)
try:
# Registers a user
api_instance.add_user(body=body)
except ApiException as e:
print("Exception when calling UserApi->add_user: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
body | PostUser | User object that needs to be registered | [optional] |
void (empty response body)
No authorization required
- Content-Type: application/json, multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
delete_user(user_name)
Unregisters a user
Only users with administrative privilege can perform this operation.
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
configuration = swagger_client.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = swagger_client.UserApi(swagger_client.ApiClient(configuration))
user_name = 'user_name_example' # str | Identifier of the user
try:
# Unregisters a user
api_instance.delete_user(user_name)
except ApiException as e:
print("Exception when calling UserApi->delete_user: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
user_name | str | Identifier of the user |
void (empty response body)
- Content-Type: application/json, multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
update_user(user_name, body=body)
Updates information about a registered user
Only the same user and users with administrative privilege can perform this operation.
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
configuration = swagger_client.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = swagger_client.UserApi(swagger_client.ApiClient(configuration))
user_name = 'user_name_example' # str | The identifier of the user to be updated.
body = swagger_client.PutUser() # PutUser | Object with information for the user to be updated. (optional)
try:
# Updates information about a registered user
api_instance.update_user(user_name, body=body)
except ApiException as e:
print("Exception when calling UserApi->update_user: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
user_name | str | The identifier of the user to be updated. | |
body | PutUser | Object with information for the user to be updated. | [optional] |
void (empty response body)
- Content-Type: application/json, multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[User] user_get()
Gets information about registered users
Gets information about registered users. This will include additional information depending on privileges of requesting user.
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.UserApi()
try:
# Gets information about registered users
api_response = api_instance.user_get()
pprint(api_response)
except ApiException as e:
print("Exception when calling UserApi->user_get: %s\n" % e)
This endpoint does not need any parameter.
No authorization required
- Content-Type: application/json, multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
User user_user_name_get(user_name)
Gets basic information of a particular user
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.UserApi()
user_name = 'user_name_example' # str | The login (short name) of the user.
try:
# Gets basic information of a particular user
api_response = api_instance.user_user_name_get(user_name)
pprint(api_response)
except ApiException as e:
print("Exception when calling UserApi->user_user_name_get: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
user_name | str | The login (short name) of the user. |
No authorization required
- Content-Type: application/json, multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]