Skip to content

Improve READMEs #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 17, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
# Library API

This is a specification for the [Library API](https://cloud.sylabs.io/library) that was originally implemented
This is a specification for the Library API that was originally implemented
by Sylabs in the [singularity](https://github.com/sylabs/singularity) project,
and now is present in the following container registry implementations:

- [Singularity Registry Server](https://github.com/singularityhub/sregistry)
- [Hinkskalle Registry](https://github.com/csf-ngs/hinkskalle)
- [Sylabs Cloud Library](https://cloud.sylabs.io/library)
- [Singularity Enterprise](https://sylabs.io/singularity-enterprise/)

The specification here is a community effort to document and maintain this application
programming interface.
programming interface. To support this effort, Sylabs has contributed the
[OpenAPI specification](https://github.com/sylabs/scs-library-client/blob/master/api/server/openapi.yml)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Question: Is there a way to render this link in a more human-friendly form?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

100%! Actually I do this with a bunch of pages for US-RSE - we can basically make a web request that retrieves and renders the spec, so we can keep it in one repository and render in another. Where should we put it - at the top of the current spec page rendered as yaml?

Let me know - I'm going to merge the charter and I can do a follow up PR with this.

Copy link

@dtrudg dtrudg Dec 17, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that there are a bunch of online sites that will render a nice view of an OpenAPI spec for you, e.g.

https://mrin9.github.io/OpenAPI-Viewer/

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right but isn't the idea to have it rendered in the same place as this repo (and not another site?)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or are you suggesting to take whatever libraries they use, and use them here?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's fine to just use that hyperlink, it doesn't have to be rendered here.

on which their services are based.

⭐️ [Read the Documentation](https://singularityhub.github.io/library-api/) or [Jump to the current specification](https://singularityhub.github.io/library-api/#/spec/main) ⭐️
20 changes: 14 additions & 6 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
# Library API

This is a specification for the [Library API](https://cloud.sylabs.io/library) that was originally implemented
This is a specification for the Library API that was originally implemented
by Sylabs in the [singularity](https://github.com/sylabs/singularity) project,
and now is present in the following non-commercial container registry implementations:
and now is present in the following container registry implementations:

- [Singularity Registry Server](https://github.com/singularityhub/sregistry)
- [Hinkskalle Registry](https://github.com/csf-ngs/hinkskalle)
- [Sylabs Cloud Library](https://cloud.sylabs.io/library)
- [Singularity Enterprise](https://sylabs.io/singularity-enterprise/)

The specification here is a community effort to document and maintain this application
programming interface.
programming interface. To support this effort, Sylabs has contributed the
[OpenAPI specification](https://github.com/sylabs/scs-library-client/blob/master/api/server/openapi.yml)
on which their services are based.

## Who is this intended for?

Expand All @@ -31,15 +35,19 @@ The following non-commercial implementations of the spec exist:

- [Singularity Registry Server](https://github.com/singularityhub/sregistry) and [documentation for the client interaction](https://singularityhub.github.io/sregistry/docs/client)
- [Hinkskalle Registry](https://github.com/csf-ngs/hinkskalle)
- [Sylabs Cloud Library](https://cloud.sylabs.io/library)

The following commercial implementations exist:

- [Sylabs Cloud Library](https://cloud.sylabs.io/library)
- [Singularity Enterprise](https://sylabs.io/singularity-enterprise/)

### Clients

As the `library://` endpoint was developed for the open source Singularity software,
the primary clients are the two versions of the original Singularity software:
An open source Go client is available, which an be used to interact with `library://` endpoints:

- [scs-library-client](https://pkg.go.dev/github.com/sylabs/scs-library-client/client)

The `scs-library-client` module is used in both versions of the original Singularity software:

- [sylabs/singularity](https://github.com/sylabs/singularity)
- [apptainer/singularity](https://github.com/apptainer/singularity)
Expand Down