Giter Site home page Giter Site logo

documents-api's People

Contributors

auvinenak avatar berlotti avatar georgdangl avatar lionelontech avatar pasi-paasiala avatar ykulbak avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

documents-api's Issues

Link Swagger Hub and update it

We're using the swagger.yaml file here in this repository to create the Swagger specification. We should host that directly in Swagger Hub.

@ykulbak knows how to do this😀

Implementation note / recommendation required for upload completion end point

When a large file is uploaded, it may take up to several minutes for upload completion call to finish stitching all parts together and complete the upload. Because of this, idle timeout may be triggered on many load balancers's default configuration.

Examples for LB idle timeouts:

To ensure the upload completion does not timeout on large files, I suggest we add an implementation note / recommendation under Upload Completion for servers to periodically send whitespace characters back to keep the connection from timing out. This is similar to what AWS does for CompleteMultipartUpload.

Indicate breach of polling frequency limit

Currently, it's undefined how a server will behave it receives too many polling requests in a given period. As a result, a client may continue to blindly retry (or worse, stop polling altogether).

Would it be out of the question to codify into the specification that if a server should respond with 429 Too Many Requests[1] if/when it decides that it has received too many polling requests from the client?

That specific response code would allow client implementations to understand what has gone wrong and to take corrective actions to reduce its impact: whether that action would be to go into a slower polling interval, reduce the number of documents that it's attempting to poll for in a single request, or simply notify the end user.

1: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429

Incosistency in visual

Hello there,

Last week we ran into an issue while implementing the OpenCDE API that turned out to be caused by an inconsistency in the documentation.

The chart shown in 3.2.1. Document Download Example of the Documents-API mentions that after the user has selected documents in the UI, the local_callback_url should be called with a URL parameter called selected_url:

image

However, the documentation itself states under 3.2.1.1.3. User Selects Documents in CDE UI that it actually should be selected_documents_url:

image

To avoid further issues, it would be nice if the chart would be updated.

Edit: code format for selected_url

Best regards

State between download documents and upload documents

Hi there,

We are running into an issue that we feel should not be happening. Our system supports aggregating documents from different folders (like search, or creating so-called smart folders that aggregate documents based on a property like file extension).

We think this is great, cause this means that users can open documents across folders in the client application and are not bound to their folder structure. However, that also means that documents with the same name can open simultaneously in the client application. And in the case of having documents with the same name (and if it can happen, you have to take it into account), the issue arises when a user then decides to upload the files.

The only things we identified that are supported to distinguish files are:

for the file: file_name and some randomly generated session_file_id in the client application that does not relate to anything else, both useless in our case to map files to documents in our system

Then there is the option for the server_context, but in our case that also won't work as the state of the smart folder or search can change over the course of the user downloading document to the client application and starting to upload.

Are we missing something obvious in the OpenCDE documents protocol or is this not taken into account? Why doesn't the protocol prescribe using the document_id provided in the document download in the upload flow as well?

Regards

upload_session query param in upload_documents_url

Referring to the documentation at upload_documents_url

It looks like the request and response are both documented in openapi spec, but the upload_session query parameter is not part of it. When generating either server-stub or client, in most frameworks there is no way to shoehorn it in. It would be really nice to use the generated code for these calls instead of manually coding them.

Perhaps there is a good reason for this, but why can't the upload_session be part of the request (json)? I understand this is kind of a private path on the CDE (CDE generating the URL and also consuming it), but still.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.