Request to SPACE API

Good morning
I ran into a problem. When I try to make a request
https://threesome.jetbrains.space/api/http/absences?viewMode=All
through Postman, I get this response: 
{
    "next": "",
    "totalCount": 0,
    "data": []
}
Status 200


But I expect to receive (such a response comes from the HTTP Playground API):

{
  "next": "2",
  "totalCount": null,
  "data": [
    {
      "id": "GgvQk15Pq1E",
      "archived": false,
      "member": {
        "id": "3mEEo14HWII8"
      },
      "icon": "sick-leave",
      "reason": {
        "id": "24IbL61c9WRK"
      },
      "description": "I'm tired of everything,"
      "since": {
        "iso": "2020-02-05",
        "year": 2020,
        "month": 2,
        "day": 5
      },
      "till": {
        "iso": "2020-02-05",
        "year": 2020,
        "month": 2,
        "day": 5
      },
      "location": null,
      "available": false,
      "approval": null,
      "customFields": []
    },
    {
      "id": "3sRCVa2tWTws",
      "archived": false,
      "member": {
        "id": "3mEEo14HWII8"
      },
      "icon": "home",
      "reason": {
        "id": "3NaxK048YXnS"
      },
      "description": "Remote Work",
      "since": {
        "iso": "2020-02-03",
        "year": 2020,
        "month": 2,
        "day": 3
      },
      "till": {
        "iso": "2020-02-03",
        "year": 2020,
        "month": 2,
        "day": 3
      },
      "location": {
        "id": "3WseaQ49NpVf"
      },
      "available": true,
      "approval": null,
      "customFields": []
    }
  ]
}
Status 200

With what it can be connected?

0
2 comments

Hi,

I tried sending a similar request to a server on Space Cloud via Postman and couldn't reproduce it. Could you please check that there is still an issue? There might have been a fix deployed already.

Thanks!

1

Hello,
I have already dealt with this problem. As I understand it, this is due to user rights. Empty json returned at Auth 2.0(Application Integration), when I used basic auth through users with the rights of the system administrator, then everything is ok.
Thank you for your concern!

0

Please sign in to leave a comment.