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 a client class for performing all CRUDN operations #7

Open
6 of 7 tasks
NZSmartie opened this issue Sep 9, 2017 · 1 comment
Open
6 of 7 tasks

Create a client class for performing all CRUDN operations #7

NZSmartie opened this issue Sep 9, 2017 · 1 comment

Comments

@NZSmartie
Copy link
Owner

NZSmartie commented Sep 9, 2017

This task is bottlenecked until I can get a virtual environment set up (hopefully through #5 and #6) in Windows for easy testing

Operations that need to be supported

  • Create (POST/PUT)
    • POST: An existing URI to a resource responsible for the creation
    • PUT: A new URI for the resource
  • Retreive (GET)
  • Update (POST)
  • Delete (DELETE)
  • Notify (OBSERVE)

This class already supports automatic deserialisation to OIC resources based on the resource's rt property (related #1)

@NZSmartie NZSmartie self-assigned this Sep 9, 2017
@NZSmartie
Copy link
Owner Author

Currently I have a IOicResource which all resources implement. It's decorated with JSON attributes to correctly (de)serialise JSON objects.

  • Local Resources can be manipulated without needing to invoke any CRUD operations. but should be accessible via a local resource repository?
  • Remote Resources need to go through CRUD operations. When in a resource repository can automatically invoke remote operations?

Looks like a Resource Repository using the Repository Pattern is the way to go,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant