Publish a Collection
Guide to group several ePocs in a collection that can be imported in the mobile application.
A collection groups several ePocs under a single banner (publisher, logo, licence, etc). Once added to the mobile application, it displays all the ePocs it contains and updates automatically.
How it works
A collection is described by a JSON metadata file: title, description, logo, publisher, contact, licence, keywords and the list of ePocs. This file must be publicly accessible through a fixed URL, which users then add in the application.
Example: the Inria Learning Lab collection
Create the collection file
Start from the data template below (in YAML format, which allows comments) and fill it in
Convert the file to JSON with a converter such as JSON Formatter
Host the JSON file on a publicly accessible service, for example a GitHub Gist or a GitLab snippet, or GitHub / GitLab Pages
The file URL must stay the same over time: it is what allows the application to find the collection.
Data template
Template to fill in (comments explain each field). The ePocs list is completed with the metadata of each ePoc, see ePocs Collection.
Host the JSON file
If you do not have a website, a GitHub Gist or a GitLab snippet is enough to get a public URL.
GitHub Gist
Go to gist.github.com and sign in
Name the file collection.json and paste the JSON content of the collection
Click Create public gist (a secret gist is still accessible to anyone with the link, but is not listed)
Click the Raw button of the file and copy the URL of the resulting page
The URL looks like https://gist.githubusercontent.com/{user}/{id}/raw/{revision}/collection.json. Remove the {revision} part to get a fixed URL that always points to the latest version:
GitLab Snippet
Go to gitlab.com/-/snippets/new and sign in
Choose the Public visibility, name the file collection.json and paste the JSON content of the collection
Click Create snippet
Click Open raw and copy the URL of the resulting page
The URL looks like:
Update the collection
Edit the gist or the snippet to add an ePoc or change some information: the URL does not change and users get the new version the next time the application starts.
The url field of the JSON file must contain this public URL. First create the gist or the snippet, get its link, then edit the file to fill in the url field.
Add the collection in the application
In the application, use Add an ePoc > Collection then import the collection from its link or a QR Code. The procedure is detailed in the import guide.
Once added, the collection is refreshed each time the application starts: any ePoc added or modified in the JSON file automatically appears for users.