Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagephp
titleView page response
linenumberstrue
collapsetrue
stdClass Object
(
    [self] => http://your-domain.com/course_enrollment?page=1
    [first] => http://your-domain.com/course_enrollment?page=0
    [last] => http://your-domain.com/course_enrollment?page=3
    [prev] => http://your-domain.com/course_enrollment?page=0
    [next] => http://your-domain.com/course_enrollment?page=2
    [list] => Array
        (
            [0] => stdClass Object{ ... }
            [1] => stdClass Object{ ... }
            [2] => stdClass Object{ ... }
			...
        )
)

Create (POST)

Creation, or POST, requests return an array of basic information about the new created entity. The HTTP status code returned will be 201 CREATED for successful requests.

...

Info
iconfalse
See the full request at Creating a user via web service

Update (PUT)

Update, or PUT,  requests do not return any data, other than the HTTP headers, which can be used to verify success. A status code of 200, indicates a successful call.

...