reportportal / service-api

Report portal. Main API Service
Apache License 2.0
43 stars 65 forks source link

API for item do not return number of item #1919

Open mrsombre opened 5 months ago

mrsombre commented 5 months ago

For this endpoints:

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?

Kozovskaya commented 5 months ago

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?

mrsombre commented 5 months ago

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.