Global Teach - Services

<back to all web services

SaveLessonRating

The following routes are available for this service:
All Verbs/svc/saveLessonRating
All Verbs/svc/SaveLessonRating
All Verbs/svc/saveLessonRating/{Id}/{Rating}
POST/svc/lessonRatings/{Id}/{Rating}
All Verbs/svc/SaveLessonRating/{Id}

To override the Content-type in your clients HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /jsv/reply/SaveLessonRating HTTP/1.1 
Host: www.magentatelekom-academy.at 
Content-Type: text/jsv
Content-Length: length

{
	id: 0,
	userId: 0,
	rating: 0,
	comment: String,
	title: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	average: 0,
	mine: 0,
	count: 0
}