Skip to content
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

(web) service revision - add ServiceLinkPattern schema? #522

Open
apdavison opened this issue Nov 19, 2024 · 2 comments
Open

(web) service revision - add ServiceLinkPattern schema? #522

apdavison opened this issue Nov 19, 2024 · 2 comments
Labels
request any request or update for schemas

Comments

@apdavison
Copy link
Member

This would support auto-generating service links.

cf ContentTypePattern, FilePathPattern, FileRepositoryStructure

@lzehl
Copy link
Member

lzehl commented Jan 15, 2025

@apdavison not a bad idea. those would need to be attached to the (web) service version. should be optional (in case services do not have a proper pattern)

@lzehl lzehl added the request any request or update for schemas label Jan 15, 2025
@lzehl lzehl changed the title Add ServiceLinkPattern schema? (web) service revision - add ServiceLinkPattern schema? Jan 20, 2025
@lzehl
Copy link
Member

lzehl commented Jan 20, 2025

To make this more concrete for a discussion:

Option A: A ServiceLinkPattern schema could have the following properties, if it would be linked from a FileRepository under the property "serviceLinkPattern":

  • sourceFileNamePattern (regex for the URL (?) of the file/file bundle that can be opened in the service)
  • linkPattern (regex for the URL that shows the connected file/file bundle in the service)
  • service (link to the WebServiceVersion)

I'm not sure though if it is smart to link it to the data repository.

Option B: A ServiceLinkPattern schema could have the following properties, if it would be linked from a WebServiceVersion under the property "serviceLinkPattern":

  • sourceFileRepository (URL to the source file repo or link to the FileRepository)
  • sourceFileNamePattern (regex for the URL (?) of the file/file bundle that can be opened in the service)
  • linkPattern (regex for the URL that shows the connected file/file bundle in the service)

Note that a WebServiceVersion could have 1-N ServiceLinkPattern (as many as there are file repos)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
request any request or update for schemas
Projects
None yet
Development

No branches or pull requests

2 participants