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

Add new collection endpoints + new properties in versions endpoint #573

Merged
merged 6 commits into from
Aug 5, 2019

Conversation

eduardoboucas
Copy link
Contributor

@eduardoboucas eduardoboucas commented Aug 1, 2019

This PR:

  • Changes the endpoints for managing collections to:
    • GET /api/collections: list collections
    • GET /api/collections/:property/:collection: view collection
    • POST /api/collections: create new collection
    • POST /api/collections/:property/:collection/fields: adds a field to a collection
    • PUT /api/collections/:property/:collection/fields/:field: updates a field's schema
    • DELETE /api/collections/:property/:collection/fields/:field: deletes a field
    • PUT /api/collections/:property/:collection/settings: updates a collection's settings
  • Adds support for a fields URL parameter on the /api/collections endpoint, allowing consumers to apply a Mongo-style fields projection to the response
  • Adds the fields _author and _date to the /versions endpoint, indicating the ID of the client that generated the change and the timestamp, respectively.

@eduardoboucas eduardoboucas changed the title Add new collection endpoints Add new collection endpoints + new properties in versions endpoint Aug 2, 2019
@eduardoboucas eduardoboucas marked this pull request as ready for review August 2, 2019 08:09
@eduardoboucas eduardoboucas merged commit 7c78897 into develop Aug 5, 2019
@eduardoboucas eduardoboucas deleted the feature/collection-endpoint-changes branch August 12, 2019 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant