grafana/docs/sources/http_api
Pete Davids 65940c7726
Dashboard: Allow shortlink generation (#27409)
* intial frontend resolution/redirection logic

* backend scaffolding

* enough of the frontend to actually test end to end

* bugfixes

* add tests

* cleanup

* explore too hard for now

* fix build

* Docs: add docs

* FE test

* redirect directly from backend

* validate incoming uids

* add last_seen_at

* format documentation

* more documentation feedback

* very shaky migration of get route to middleware

* persist unix timestamps

* add id, orgId to table

* fixes for orgId scoping

* whoops forgot the middleware

* only redirect to absolute URLs under the AppUrl domain

* move lookup route to /goto/:uid, stop manually setting 404 response code

* renaming things according to PR feedback

* tricky deletion

* sneaky readd

* fix test

* more BE renaming

* FE updates -- no more @ts-ignore hacking :) and accounting for subpath

* Simplify code

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>

* Short URLs: Drop usage of bus

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>

* ShortURLService: Make injectable

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>

* Rename file

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>

* Add handling of url parsing and creating of full shortURL to backend

* Update test, remove unused imports

* Update pkg/api/short_urls.go

Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>

* Add correct import

* Pass context to short url service

* Remove not needed error log

* Rename dto and field to denote URL rather than path

* Update api docs based on feedback/suggestion

* Rename files to singular

* Revert to send relative path to backend

* Fixes after review

* Return dto when creating short URL that includes the full url

Use full url to provide shorten URL to the user

* Fix after review

* Fix relative url path when creating new short url

Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
Co-authored-by: Ivana <ivana.huckova@gmail.com>
Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>
2020-10-14 12:48:48 +02:00
..
_index.md Docs: Refactor inconsistent unordered lists (#27826) 2020-10-02 11:02:11 -07:00
admin.md Docs: Update configuration.md (#25707) 2020-06-23 09:56:44 -07:00
alerting_notification_channels.md Docs: Update alerting_notification_channels.md (#21245) 2019-12-31 07:30:53 -08:00
alerting.md Docs: Fix aliases/redirects (#21241) 2019-12-30 08:17:03 +01:00
annotations.md Docs: Fix aliases/redirects (#21241) 2019-12-30 08:17:03 +01:00
auth.md API: return resource ID for auth key creation, folder permissions update and user invite complete endpoints (#27419) 2020-09-07 17:06:11 +02:00
create-api-tokens-for-org.md Docs: Fixed lazy numbering in all documentation files (#27975) 2020-10-01 12:45:05 -04:00
curl-examples.md Docs: Put curl examples into separate topic (#26530) 2020-07-22 09:48:10 -07:00
dashboard_permissions.md Docs: Fix aliases/redirects (#21241) 2019-12-30 08:17:03 +01:00
dashboard_versions.md Docs: Fix aliases/redirects (#21241) 2019-12-30 08:17:03 +01:00
dashboard.md Dashboard: Use same min refresh interval fallback in the API as in provisioning (#25926) 2020-08-17 12:00:10 -07:00
data_source.md API: Enrich endpoints with ID (#26691) 2020-07-31 08:22:09 +02:00
datasource_permissions.md Docs: Fix aliases/redirects (#21241) 2019-12-30 08:17:03 +01:00
external_group_sync.md Docs: Fix aliases/redirects (#21241) 2019-12-30 08:17:03 +01:00
folder_dashboard_search.md Docs: Put curl examples into separate topic (#26530) 2020-07-22 09:48:10 -07:00
folder_permissions.md API: return resource ID for auth key creation, folder permissions update and user invite complete endpoints (#27419) 2020-09-07 17:06:11 +02:00
folder.md API: Enrich endpoints with ID (#26691) 2020-07-31 08:22:09 +02:00
org.md Org API: enrich add user to org endpoints with user ID in the response (#27551) 2020-09-14 08:58:23 +02:00
other.md Docs: Fix aliases/redirects (#21241) 2019-12-30 08:17:03 +01:00
playlist.md docs: spelling (#24383) 2020-06-30 14:42:50 -07:00
preferences.md Docs: Fix aliases/redirects (#21241) 2019-12-30 08:17:03 +01:00
reporting.md Reporting: Update docs (#23993) 2020-05-06 09:28:33 +02:00
short_url.md Dashboard: Allow shortlink generation (#27409) 2020-10-14 12:48:48 +02:00
snapshot.md Docs: Fix aliases/redirects (#21241) 2019-12-30 08:17:03 +01:00
team.md Update team.md (#25277) 2020-06-05 07:42:53 +02:00
user.md Docs: update users API (#23570) 2020-04-16 16:45:22 +03:00