ManagerApi.md 2.87 KB
Newer Older
1
2
3
4
5
6
# ManagerApi

All URIs are relative to *https://glistest.planttreaty.org*

Method | HTTP request | Description
------------- | ------------- | -------------
Matija Obreza's avatar
Matija Obreza committed
7
8
[**registerPGRFA**](ManagerApi.md#registerPGRFA) | **POST** /glis/xml/register | Register PGRFA in GLIS and (potentially) obtain GLIS-minted DOI
[**updatePGRFA**](ManagerApi.md#updatePGRFA) | **POST** /glis/xml/update | Update PGRFA in GLIS
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100


<a name="registerPGRFA"></a>
# **registerPGRFA**
> RegistrationResponse registerPGRFA(pgrfa)

Register PGRFA in GLIS and (potentially) obtain GLIS-minted DOI

The purpose of this transaction is to obtain a DOI associated to the PGRFA by providing a set of descriptors in the registration request. However, if a DOI obtained through a service other than GLIS is already associated to the PGRFA, it must be provided in the request so that GLIS will not assign a new DOI but just adopt the one provided.

### Example
```java
// Import classes:
//import org.genesys.glis.v1.invoker.ApiException;
//import org.genesys.glis.v1.api.ManagerApi;


ManagerApi apiInstance = new ManagerApi();
Registration pgrfa = new Registration(); // Registration | Register PGRFA in GLIS and obtain GLIS DOI.
try {
    RegistrationResponse result = apiInstance.registerPGRFA(pgrfa);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling ManagerApi#registerPGRFA");
    e.printStackTrace();
}
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **pgrfa** | [**Registration**](Registration.md)| Register PGRFA in GLIS and obtain GLIS DOI. | [optional]

### Return type

[**RegistrationResponse**](RegistrationResponse.md)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: application/xml
 - **Accept**: application/xml

<a name="updatePGRFA"></a>
# **updatePGRFA**
> RegistrationResponse updatePGRFA(pgrfa)

Update PGRFA in GLIS

Update information on PGRFA already registered in GLIS.

### Example
```java
// Import classes:
//import org.genesys.glis.v1.invoker.ApiException;
//import org.genesys.glis.v1.api.ManagerApi;


ManagerApi apiInstance = new ManagerApi();
GLISUpdate pgrfa = new GLISUpdate(); // GLISUpdate | Update PGRFA in GLIS by DOI.
try {
    RegistrationResponse result = apiInstance.updatePGRFA(pgrfa);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling ManagerApi#updatePGRFA");
    e.printStackTrace();
}
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **pgrfa** | [**GLISUpdate**](GLISUpdate.md)| Update PGRFA in GLIS by DOI. | [optional]

### Return type

[**RegistrationResponse**](RegistrationResponse.md)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: application/xml
 - **Accept**: application/xml