Skip to content

Instantly share code, notes, and snippets.

@nncl
Created December 26, 2017 18:32
Show Gist options
  • Save nncl/2a01c989c6d92b42606b0a2489e740bf to your computer and use it in GitHub Desktop.
Save nncl/2a01c989c6d92b42606b0a2489e740bf to your computer and use it in GitHub Desktop.
Ratings

Rating

Rating info.

Ratings' Collection

{
	"value" : 5 // 1 a 5
	, "product" : 32123 // ID AVON
	, "created_at" : "2017-12-26T18:25:43.746Z"
	, "updated_at" : "2017-12-26T18:25:43.746Z"
}

Routes

Routes from this resource.

Upsert rating

  • Route: POST /ratings
  • Body:
{
	"value" : 5
	, "product" : 32123
}

TODOs

  • Upsert rating - above
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment