Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes: #6
Adds dynamic repository resources, providing the following templates:
Also the file mime type is not provided so we are using a best effort from the file extension, and using that to decide whether to send text or blob data to the consumer.
Another quirk of this, is that if you get a directory, you get the directory listing... I'm not sure if that's correct, but I have no other way to provide discovery, short of requesting all the files and returning them all too - and that seems way to greedy, even if paginated so that might need some thinking if we aren't ok with the folders returning the list of their content, rather than the actual content itself:
Also open to feedback regarding every part of this so far.
resources/templates/list
Request
Response
resources/read
Request Folder
Response Folder
Request File
Response File