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

Create resources in API v2, part 1 #999

Merged
merged 16 commits into from
Oct 4, 2018
Merged

Conversation

benjamingeer
Copy link

@benjamingeer benjamingeer commented Sep 25, 2018

  • Create a new resource with values (no file values yet).
  • Fix the property knora-api:textValueHasMapping so its object is a JSON-LD object containing @id (also needs to be fixed in Knora-ui)
  • Add tests.
    • Change resources route R2R test to an E2E test.
  • Add docs.

For future PRs:

  • Create resources with file values (depends on Create/update file values in API v2 #998).
  • Update resource metadata.
  • Mark resources as deleted.
  • Implement API v2 bulk import (the design here tries to allow for this in a less complicated way than in v1).

@flavens
Copy link
Contributor

flavens commented Oct 3, 2018

Fixes have been done in Knora-ui - PR #87
Review requested before merging.

@benjamingeer benjamingeer requested a review from subotic October 3, 2018 15:42
@benjamingeer benjamingeer added enhancement improve existing code or new feature ready-for-review labels Oct 3, 2018
@benjamingeer benjamingeer mentioned this pull request Oct 3, 2018
Copy link
Collaborator

@subotic subotic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks, LGTM :-)

@ref:[complex API schema](introduction.md#api-schema), specifying the resource's IRI, type,
and `rdfs:label`, along with its Knora resource properties and their values. The representation of the
resource is the same as when it is returned in a `GET` request, except that its IRI and
`knora-api:attachedToUser`, and those of its values, are not given. The format of the values submitted
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

, and those of its values,

unnecessary?

@benjamingeer
Copy link
Author

@subotic Thank you!

@benjamingeer benjamingeer merged commit d019b6c into develop Oct 4, 2018
@benjamingeer benjamingeer deleted the wip/v2-create-resources-1 branch October 4, 2018 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API/V2 enhancement improve existing code or new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants