Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nextcloud/external
π Embed external sites in your Nextcloud
https://github.com/nextcloud/external
nextcloud
Last synced: 3 days ago
JSON representation
π Embed external sites in your Nextcloud
- Host: GitHub
- URL: https://github.com/nextcloud/external
- Owner: nextcloud
- License: agpl-3.0
- Created: 2017-03-09T13:29:13.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2024-12-26T14:25:59.000Z (13 days ago)
- Last Synced: 2024-12-29T16:15:11.410Z (10 days ago)
- Topics: nextcloud
- Language: JavaScript
- Homepage: https://apps.nextcloud.com/apps/external
- Size: 5.73 MB
- Stars: 114
- Watchers: 19
- Forks: 32
- Open Issues: 36
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: .github/contributing.md
- License: COPYING
Awesome Lists containing this project
README
# External sites
[![REUSE status](https://api.reuse.software/badge/github.com/nextcloud/external)](https://api.reuse.software/info/github.com/nextcloud/external)
This application allows an admin to add a link in the Nextcloud web interface
Apps menu that points to an external website. By simply entering the URL and
the name for the external site, an icon appears. When this icon is clicked by a
user, the external website appears in the Nextcloud frame. For the user, this
external site appears as if it is part of Nextcloud but, in fact, this can be
any external URL.## **π State of maintenance**
While there are many things that could be done to further improve this app, the app is currently maintained with **limited effort**. This means:
- The main functionality works for the majority of the use cases
- We will ensure that the app will continue to work like this for future releases and we will fix bugs that we classify as 'critical'
- We will not invest further development resources ourselves in advancing the app with new features
- We do review and enthusiastically welcome community PR'sWe would be more than excited if you would like to collaborate with us. We will merge pull requests for new features and fixes. We also would love to welcome co-maintainers.
## OCS API
It is also possible to get the sites via an OCS endpoint. The request must be authenticated.
Only sites for the userΒ΄s language are returned:
```bash
curl -H "OCS-APIRequest: true" \
https://admin:admin@localhost/ocs/v2.php/apps/external/api/v1
```### Response
```xml
ok
200
OK
23
Homepage
https://localhost/index.php
link
0
https://localhost/external.svg
```
#### Explanation
| Field | Type | Description |
| ----- | ------ | ---------------------------------------- |
| id | int | Numeric identifier of the site |
| name | string | Name of the site, ready to use |
| url | string | URL that should be framed/linked to |
| redirect | int | Whether the link should be opened inline or in a new window |
| type | string | Can be one of `link`, `settings` or `quota`; see [this issue](https://github.com/nextcloud/external/issues/7) for details |
| icon | string | Full URL of the icon that should be shown next to the name of the link |### ETag / If-None-Match
The API provides an ETag for the sites array. In case the ETag matches the given value, a `304 Not Modified` is delivered together with an empty response body.
### Capability
The app registers a capability, so clients can check that before making the actual OCS request:
```xml...
...
sites
device
groups
redirect
...
```