All URIs are relative to http://localhost/service/rest
| Method | HTTP request | Description |
|---|---|---|
| get1 | GET /v1/formats/{format}/upload-specs | Get upload field requirements for the desired format |
| get2 | GET /v1/formats/upload-specs | Get upload field requirements for each supported format |
UploadDefinitionXO get1(format)
Get upload field requirements for the desired format
from __future__ import print_function
import time
import nexus_api_python_client
from nexus_api_python_client.rest import ApiException
from pprint import pprint
# Enter a context with an instance of the API client
with nexus_api_python_client.ApiClient() as api_client:
# Create an instance of the API class
api_instance = nexus_api_python_client.FormatsApi(api_client)
format = 'format_example' # str | The desired repository format
try:
# Get upload field requirements for the desired format
api_response = api_instance.get1(format)
pprint(api_response)
except ApiException as e:
print("Exception when calling FormatsApi->get1: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| format | str | The desired repository format |
No authorization required
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | successful operation | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[UploadDefinitionXO] get2()
Get upload field requirements for each supported format
from __future__ import print_function
import time
import nexus_api_python_client
from nexus_api_python_client.rest import ApiException
from pprint import pprint
# Enter a context with an instance of the API client
with nexus_api_python_client.ApiClient() as api_client:
# Create an instance of the API class
api_instance = nexus_api_python_client.FormatsApi(api_client)
try:
# Get upload field requirements for each supported format
api_response = api_instance.get2()
pprint(api_response)
except ApiException as e:
print("Exception when calling FormatsApi->get2: %s\n" % e)This endpoint does not need any parameter.
No authorization required
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | successful operation | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]