Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove site key property from reference representation #113

Closed
jimmyca15 opened this issue Jul 21, 2017 · 2 comments
Closed

Remove site key property from reference representation #113

jimmyca15 opened this issue Jul 21, 2017 · 2 comments
Assignees
Labels

Comments

@jimmyca15
Copy link
Member

The reference representation of an object is the abbreviated version that appears when the resource is embedded into another resource. Only select fields are displayed to make the resource human recognizable. The site key was added to the website reference representation and it should be removed to prevent bloating of this abbreviated view.

in 2.0.0 the website reference representation appears as thus

"website": {
    "name": "Default Web Site",
    "id": "o06wRhVwLlRQKMtJ876dLQ",
    "key": "1",
    "status": "started",
    "_links": {
        "self": {
            "href": "/api/webserver/websites/o06wRhVwLlRQKMtJ876dLQ"
        }
    }
}

it should be

"website": {
    "name": "Default Web Site",
    "id": "o06wRhVwLlRQKMtJ876dLQ",
    "status": "started",
    "_links": {
        "self": {
            "href": "/api/webserver/websites/o06wRhVwLlRQKMtJ876dLQ"
        }
    }
}
@jimmyca15 jimmyca15 added the bug label Jul 21, 2017
@jimmyca15
Copy link
Member Author

jimmyca15 commented Jul 21, 2017

The site key can still be retrieved when using the web sites API through the use of the fields query string parameter

ex: GET /api/webserver/websites?fields=name,status,key

@jimmyca15
Copy link
Member Author

Fixed in #121

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant