From b18408116711aa8ac50aa251241d910c0757dfa9 Mon Sep 17 00:00:00 2001 From: Jakob Voss Date: Wed, 10 Apr 2013 10:47:29 +0200 Subject: [PATCH] fixes wrong examples, closes #18 --- paia.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/paia.md b/paia.md index 853b429..d291984 100644 --- a/paia.md +++ b/paia.md @@ -168,8 +168,8 @@ either as URL query parameter or in a HTTP header. For instance the following requests both get information about patron `123` with access token `vF9dft4qmT`: - curl -H "Authorization: Bearer vF9dft4qmT" https://example.org/core/patron/123 - curl -H https://example.org/core/patron/123?access_token=vF9dft4qmT + curl -H "Authorization: Bearer vF9dft4qmT" https://example.org/core/123 + curl -H https://example.org/core/123?access_token=vF9dft4qmT An access token is valid for a limited set of actions, referred to as **scope**. The following scopes are possible for PAIA core: @@ -418,7 +418,7 @@ Additional field such as address may be added in a later revision. **Example** ~~~ -GET /core/patron/123 HTTP/1.1 +GET /core/123 HTTP/1.1 Host: example.org Accept: application/json Authorization: Bearer a0dedc54bbfae4b