reportportal / service-api

Report portal. Main API Service

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

API for item do not return number of item

mrsombre opened this issue · comments

For this endpoints:

  • /api/v1/{{project}}/item
  • /api/v1/{{project}}/item/{{suiteID}}

Response returns in form

{
  "id": "8ff2f6ac-a796-4f74-8bb4-558cc6ada8b8",
  "uniqueId": "auto:34d816ceeab86fd0310824b5fe2957b4"
}

While for /api/v1/{{project}}/launch it also return a number, like

{
  "id": "4c81d485-1164-4e1e-aa4e-0cd1efb6a1a9",
  "number": 3
}

which is quite useful to avoid unnecessary request to get actual number, can you add this to API?

Hello @mrsombre
could you please specify your request?
Number for the launch is the number of launch execution. For the test item we don't have the number.
Adding to the item just number of the launch execution seems useless, doesn't it?

i'm sorry, not a number, but an id. so, if v1 api is synchronous, we already know numeric id when api answers on creating launch / suite, but as i can understand, you keep id as actually uuid for backward compatibility. so maybe you could add new field, like key or numericId.
what i want, to know uuid and id when start launch / suite, so i do not need additional request for it.