i know soap -based webservices soap messages, xml in turn, transferred on network, client server. kind of data transferred in case of restful webservice ?
from wikipedia https://en.wikipedia.org/wiki/representational_state_transfer
restful systems typically, not always, communicate on hypertext transfer protocol same http verbs (get, post, put, delete, etc.)
you can try curl or fiddler. example github api nice experiment with.
send fiddler:
get https://api.github.com/users/octocat http/1.1 host: api.github.com user-agent: fiddler
and response:
http/1.1 200 ok server: github.com date: fri, 10 jul 2015 10:23:10 gmt content-type: application/json; charset=utf-8 content-length: 1155 status: 200 ok x-ratelimit-limit: 60 x-ratelimit-remaining: 58 x-ratelimit-reset: 1436527371 cache-control: public, max-age=60, s-maxage=60 last-modified: mon, 06 jul 2015 23:59:25 gmt etag: "d811d5844be3eaf9ab1f60dd36198aa9" vary: accept x-github-media-type: github.v3; format=json x-xss-protection: 1; mode=block x-frame-options: deny content-security-policy: default-src 'none' access-control-allow-credentials: true access-control-expose-headers: etag, link, x-github-otp, x-ratelimit-limit, x-ratelimit-remaining, x-ratelimit-reset, x-oauth-scopes, x-accepted-oauth-scopes, x-poll-interval access-control-allow-origin: * x-github-request-id: 3ead7342:6bf1:e180441:559f9d0d strict-transport-security: max-age=31536000; includesubdomains; preload x-content-type-options: nosniff vary: accept-encoding x-served-by: bd82876e9bf04990f289ba22f246ee9b {"login":"octocat","id":583231,"avatar_url":"https://avatars.githubusercontent.com/u/583231?v=3","gravatar_id":"","url":"https://api.github.com/users/octocat","html_url":"https://github.com/octocat","followers_url":"https://api.github.com/users/octocat/followers","following_url":"https://api.github.com/users/octocat/following{/other_user}","gists_url":"https://api.github.com/users/octocat/gists{/gist_id}","starred_url":"https://api.github.com/users/octocat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/octocat/subscriptions","organizations_url":"https://api.github.com/users/octocat/orgs","repos_url":"https://api.github.com/users/octocat/repos","events_url":"https://api.github.com/users/octocat/events{/privacy}","received_events_url":"https://api.github.com/users/octocat/received_events","type":"user","site_admin":false,"name":"the octocat","company":"github","blog":"http://www.github.com/blog","location":"san francisco","email":"octocat@github.com","hireable":false,"bio":null,"public_repos":5,"public_gists":8,"followers":1054,"following":6,"created_at":"2011-01-25t18:44:36z","updated_at":"2015-07-06t23:59:25z"}
Comments
Post a Comment