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 .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

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

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

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