Skip to content

Instantly share code, notes, and snippets.

@Sam-Kruglov
Last active January 11, 2018 11:18
Show Gist options
  • Save Sam-Kruglov/ed8ba6bd714a96d06a9aa884073d73c6 to your computer and use it in GitHub Desktop.
Save Sam-Kruglov/ed8ba6bd714a96d06a9aa884073d73c6 to your computer and use it in GitHub Desktop.
Projection GET localhost:8080/profile/users
{
"alps": {
"version": "1.0",
"descriptors": [
{
"id": "get-users",
"name": "users",
"type": "SAFE",
"rt": "#user-representation",
"descriptors": [
{
"name": "projection",
"doc": {
"value": "The projection that shall be applied when rendering the response. Acceptable values available in nested descriptors.",
"format": "TEXT"
},
"type": "SEMANTIC",
"descriptors": [
{
"name": "username_only",
"type": "SEMANTIC",
"descriptors": [
{
"name": "username",
"type": "SEMANTIC"
}
]
}
]
}
]
},
{
"id": "get-user",
"name": "user",
"type": "SAFE",
"rt": "#user-representation",
"descriptors": [
{
"name": "projection",
"doc": {
"value": "The projection that shall be applied when rendering the response. Acceptable values available in nested descriptors.",
"format": "TEXT"
},
"type": "SEMANTIC",
"descriptors": [
{
"name": "username-only",
"type": "SEMANTIC",
"descriptors": [
{
"name": "username",
"type": "SEMANTIC"
}
]
}
]
}
]
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment