[ 
https://issues.apache.org/jira/browse/GEODE-7409?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Gang Yan updated GEODE-7409:
----------------------------
    Description: 
### WHY
 1. need to show the latest PDX configuration to customer for check and 
validation
 1. need to know the latest PDX configuration, as an input for next updates

### WHAT
1.  endpoint: `management/v1/configurations/pdx`

### Acceptance Criteria
 - Scenario: show default config,  configuration equals to runtimeInfo
 - Scenario:  show latest config,  configuration does **NOT** equal to 
runtimeInfo

```gherkin
Scenario: show default config,  configuration equals to runtimeInfo
Given REST API for Management is turned on on a cluster
AND A&A
AND a customer has permission of `CLUSTER:READ`
When the customer run [get] `management/v1/configurations/pdx`
Then he can find the latest configuration
```

```gherkin
Scenario:  show latest config,  configuration does **NOT** equal to runtimeInfo
Given REST API for Management is turned on on a cluster
AND A&A
AND a customer has permission of `CLUSTER:READ`
When the customer run [get] `management/v1/configurations/pdx`
Then he can find the latest configuration, even it does not equals to 
runtimeInfo
```

**Notes:**
1. response body:
```JSON
{
    "statusCode": "OK",
    "result": [
        {
            "configuration": {
                "diskStoreName": "name1",
                "ignoreUnreadFields": true,
                "pdxSerializer": "fullpath.className1",
                "persistent": true,
                "readSerialized": true
            },
            "runtimeInfo": {
                "diskStoreName": "name2",
                "ignoreUnreadFields": true,
                "pdxSerializer": "fullpath.className2",
                "persistent": true,
                "readSerialized": true
            },
            "links": {
                "self": "http://127.0.0.1:7070/management/v1/configurations/pdx";
            }
        }
    ]
}
```

  was:
### WHY
 1. need to show the latest PDX configuration to customer for check and 
validation
 1. need to know the latest PDX configuration, as an input for next updates

### WHAT
1.  endpoint: `management/v1/configurations/pdx`

### Acceptance Criteria

```gherkin
Scenario: show latest config,  configuration equals to runtimeInfo
Given
When
Then
```

```gherkin
Scenario:  show latest config,  configuration does **NOT** equal to runtimeInfo
Given a cluster is
When the customer run [get] `management/v1/configurations/pdx`
Then he can find the latest configuration, even it does not equals to 
runtimeInfo
```

**Notes:**
1. response body:
```JSON
{
    "statusCode": "OK",
    "result": [
        {
            "configuration": {
                "diskStoreName": "name1",
                "ignoreUnreadFields": true,
                "pdxSerializer": "fullpath.className1",
                "persistent": true,
                "readSerialized": true
            },
            "runtimeInfo": {
                "diskStoreName": "name2",
                "ignoreUnreadFields": true,
                "pdxSerializer": "fullpath.className2",
                "persistent": true,
                "readSerialized": true
            },
            "links": {
                "self": "http://127.0.0.1:7070/management/v1/configurations/pdx";
            }
        }
    ]
}
```


> Ability:  get latest PDX configuration of cluster in REST API for Management
> ----------------------------------------------------------------------------
>
>                 Key: GEODE-7409
>                 URL: https://issues.apache.org/jira/browse/GEODE-7409
>             Project: Geode
>          Issue Type: New Feature
>          Components: management, rest (admin)
>            Reporter: Gang Yan
>            Priority: Major
>
> ### WHY
>  1. need to show the latest PDX configuration to customer for check and 
> validation
>  1. need to know the latest PDX configuration, as an input for next updates
> ### WHAT
> 1.  endpoint: `management/v1/configurations/pdx`
> ### Acceptance Criteria
>  - Scenario: show default config,  configuration equals to runtimeInfo
>  - Scenario:  show latest config,  configuration does **NOT** equal to 
> runtimeInfo
> ```gherkin
> Scenario: show default config,  configuration equals to runtimeInfo
> Given REST API for Management is turned on on a cluster
> AND A&A
> AND a customer has permission of `CLUSTER:READ`
> When the customer run [get] `management/v1/configurations/pdx`
> Then he can find the latest configuration
> ```
> ```gherkin
> Scenario:  show latest config,  configuration does **NOT** equal to 
> runtimeInfo
> Given REST API for Management is turned on on a cluster
> AND A&A
> AND a customer has permission of `CLUSTER:READ`
> When the customer run [get] `management/v1/configurations/pdx`
> Then he can find the latest configuration, even it does not equals to 
> runtimeInfo
> ```
> **Notes:**
> 1. response body:
> ```JSON
> {
>     "statusCode": "OK",
>     "result": [
>         {
>             "configuration": {
>                 "diskStoreName": "name1",
>                 "ignoreUnreadFields": true,
>                 "pdxSerializer": "fullpath.className1",
>                 "persistent": true,
>                 "readSerialized": true
>             },
>             "runtimeInfo": {
>                 "diskStoreName": "name2",
>                 "ignoreUnreadFields": true,
>                 "pdxSerializer": "fullpath.className2",
>                 "persistent": true,
>                 "readSerialized": true
>             },
>             "links": {
>                 "self": 
> "http://127.0.0.1:7070/management/v1/configurations/pdx";
>             }
>         }
>     ]
> }
> ```



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to