{"action":"closed","issue":{"url":"https://api.github.com/repos/stanstempdev/eat_api/issues/1","repository_url":"https://api.github.com/repos/stanstempdev/eat_api","labels_url":"https://api.github.com/repos/stanstempdev/eat_api/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/stanstempdev/eat_api/issues/1/comments","events_url":"https://api.github.com/repos/stanstempdev/eat_api/issues/1/events","html_url":"https://github.com/stanstempdev/eat_api/issues/1","id":383903796,"node_id":"MDU6SXNzdWUzODM5MDM3OTY=","number":1,"title":"Question 1: Where to retrieve Set fields from?","user":{"login":"leonardoauer","id":5270444,"node_id":"MDQ6VXNlcjUyNzA0NDQ=","avatar_url":"https://avatars0.githubusercontent.com/u/5270444?v=4","gravatar_id":"","url":"https://api.github.com/users/leonardoauer","html_url":"https://github.com/leonardoauer","followers_url":"https://api.github.com/users/leonardoauer/followers","following_url":"https://api.github.com/users/leonardoauer/following{/other_user}","gists_url":"https://api.github.com/users/leonardoauer/gists{/gist_id}","starred_url":"https://api.github.com/users/leonardoauer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leonardoauer/subscriptions","organizations_url":"https://api.github.com/users/leonardoauer/orgs","repos_url":"https://api.github.com/users/leonardoauer/repos","events_url":"https://api.github.com/users/leonardoauer/events{/privacy}","received_events_url":"https://api.github.com/users/leonardoauer/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2018-11-23T18:22:50Z","updated_at":"2018-12-12T00:31:20Z","closed_at":"2018-12-12T00:31:20Z","author_association":"NONE","body":"The GET request for **\\sets** should retrieve all these fields:\r\n```\r\n  {\r\n    \"the set's id\": {\r\n      \"setName\": \"a string representing the user generated name of the set\",\r\n      \"id\": 123456,\r\n      \"setBelongsTo\": \"either 'user' or 'team' to identify to the client which group the set is in\",\r\n      \"type\": \"a string value that confoms to one of the setTypes passed in /config\",\r\n      \"filter\": \"a filter string used by the FilterBuilder representing the last filter applied by this user\",\r\n      \"sort\": [\r\n        \"a sort array used by the SortControler representing the last sort applied by this user\"\r\n      ],\r\n      \"groupByFields\" : [ \"An array of strings representing the Enum values\"],\r\n      \"inGroup\": \"string representing the group this set belongs to or null if it's not in a group\",\r\n      \"history\": [\r\n        {\r\n          \"action\": \"an action taken by the user\",\r\n          \"actor\": \"The username associated with the action\",\r\n          \"date\": \"a Date string in the format: June 17, 2018 21:12:32\"\r\n        }\r\n      ],\r\n      \"stats\": {\r\n        \"count\": 12345 // the number of items in the set,\r\n        \"createdOn\": \"a Date string in the format: December 24, 2017 00:24:00\",\r\n        \"createdBy\": \"A user name\",\r\n        \"lastViewed\": \"a Date string in the format: June 17, 2018 21:12:32\",\r\n        \"lastViewedBy\": \"A user name\"\r\n      }\r\n    }\r\n  }\r\n```\r\n\r\nbut the POST request for **\\sets** does not store many of these fields as you can see here:\r\n```javascript\r\n  {\r\n    \"operation\": \"A string representing the operation to construct the set. Will always be one of: 'join', 'intersect','difference', or 'filter'\",\r\n    \"setName\": \"a string representing the user generated name for the set\",\r\n    \"sets\": [ \r\n      {\r\n        \"id\": 12345,\r\n        \"negate\": true,\r\n        \"random\": 1345 \r\n      }\r\n    ]   \r\n  }\r\n```\r\nSo the questions is, where to retrieve this fields from and how they are related to Set document. \r\nThanks."}}
{"actor":{"display_login":"leonardoauer"}}