From 61c59349cd2e3ef84769840aa5fb073a3132b7fa Mon Sep 17 00:00:00 2001 From: Sylvain Date: Thu, 5 Oct 2017 11:31:50 +0200 Subject: [PATCH] updated OpenAPI documentation --- config/initializers/apipie.rb | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/config/initializers/apipie.rb b/config/initializers/apipie.rb index 0440bf304..60c09d189 100644 --- a/config/initializers/apipie.rb +++ b/config/initializers/apipie.rb @@ -11,9 +11,14 @@ Apipie.configure do |config| Pagination is done using headers. Following RFC-5988 standard for web linking. It uses headers *Link*, *Total* and *Per-Page*. - = Authentification + = Authentication --- - Authentification is done using *Authorization* header. + Authentication is done using *Authorization* header. You just have to set header *Authorization* to Token token=YOUR_TOKEN for every request. + + = Json + --- + Depending on your client, you may have to set header Accept: application/json for every request, + otherwise some clients may request *html* by default which will result in error. EOS end