Alberto González Palomo 30fb81c71e Use issue number/index instead of id for API URL. (#3298)
Using the API calls, the issue objects retrieved by
/repos/{owner}/{repo}/issues
contains the wrong value in the "url" field:
it uses the "id" value instead of the "number" value.

For instance, in a new repo in try.gitea.io with just one issue:
[{
  "id": 896,
  "url": "https://try.gitea.io/api/v1/repos/AlbertoGP/uno/issues/896",
  "number": 1,
   ...
}]

The given URL does not work, but if you replace the "896" by "1" it
does.
2018-01-03 19:41:33 -06:00
..
2017-05-26 09:38:18 +08:00
2017-05-04 13:54:56 +08:00
2017-06-12 10:01:09 -05:00
2017-01-03 10:52:09 +08:00
2014-04-13 03:14:43 -04:00
2017-03-22 22:30:40 +08:00
2017-10-27 09:10:54 +03:00
2017-09-12 09:48:13 +03:00
2017-12-30 19:10:48 -06:00
2017-12-24 02:33:34 +02:00
2017-11-28 17:43:51 +08:00