silverstripe-restfulapi icon indicating copy to clipboard operation
silverstripe-restfulapi copied to clipboard

SilverStripe RESTful API with a default JSON serializer.

Results 36 silverstripe-restfulapi issues
Sort by recently updated
recently updated
newest added

A populated relation might look like this when serialized: ``` "myRelation": [1, 5, 6] ``` If that relation contains no children, the "myRelation" key is entirely missing from the serialized...

Relations with no records should still show up in the serialized data, just as an empty array. Added tests to check serialization behavior. Looks like a big change, but most...

The `login` method itself already checks `canLogIn`, deeply covered in `MemberAuthenticator::authenticate`, so only `authenticate` had to be fixed. Added a test to `RESTfulAPI_TokenAuthenticator_Test` that checks both authentication methods (`login` &...

`Member::canLogIn` should be checked before logging in a user. This will prevent that locked out users can login in any form.

Hi I am trying to handle images via your API. I can read the API fine and get a URL to the image but trying to create a new image...

question

I created a pull request that enables auto-refreshing tokens (#38). While this addition adds convenience, it worsens the application security. Having a token that expires within a reasonable amount of...

Implemented API methods to refresh a token. Updated the way tokens are validated. Added tests. This replaces PR #40. It was flawed because it would not run correctly on MsSQL...

Subclasses currently inherit API access from parent class. Make api_access uninherited. See https://github.com/colymba/silverstripe-restfulapi/issues/41

Ember Data supports polymorphic relations. Here's a [presentation](http://blog.unspace.ca/post/107228551852/luke-galea-on-ember-data-polymorphic-associations) ([slides](http://lukegalea.github.io/ember_data_polymorphic_presentation/)) that explains some of the concepts (some of the issues discussed there are resolved nowadays). To properly support polymorphic relations, the...

I admit that it's an edge case, but with the current implementation, the uniqueness of an API token can't be guaranteed. There are two scenarios where this could be a...