Giter VIP home page Giter VIP logo

specifications's People

Contributors

awagner-mainz avatar balmas avatar dependabot[bot] avatar fbaumgardt avatar hcayless avatar jonathanrobie avatar monotasker avatar mromanello avatar pietroliuzzo avatar ponteineptique avatar

Watchers

 avatar  avatar  avatar

Forkers

ponteineptique

specifications's Issues

Authentication

Assuming that the implementation wants to maintain control over who can create and modify server data, the new token parameter also allows for token-based authentication (as with OAuth 2.0) if desired. It is up to the implementation to decide how such tokens should be generated and processed.

Authentication is orthogonal to updates. Different environments may want to do this in different ways.

Optional extension?

Currently, DTS does not have optional extensions. If we introduce them, how does a client discover which extensions are supported on a given server?

An alternative would be to say that a client can always return a permission error - you aren't allowed to update this resource, but has to support the method.

POST to a collection

The document currently requires a parent parameter for post:

parent
identifier for the collection under which a new collection or document is to be created.

The usual REST idiom is that a POST to a collection URI creates a new item as a child of the target resource.

I don't particularly like this version either:

There are no required query parameters for a POST request to the Collections endpoint. The one optional parameter is parent. This should be the unique identifier of an existing collection. If a parent is supplied, then the new item will be created as a child member of that collection. Otherwise the new item will be created at the top level of the target repository.

I prefer not to rely on query parameters to know where a resource is going to be created. The semantics of POST on a collection URI are generally pretty standard, we should stick to them.

Remove proposed new endpoints for the moment?

It has been suggested that I stick for the moment to proposing the new methods on existing endpoints, rather than proposing new endpoints. I can see the wisdom in that, so I'll probably separate out the possible new endpoints into a separate file.

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.