Skip to content

Commit 621d969

Browse files
authored
Merge pull request #5477 from kenjis/fix-docs-api_responses.rst
docs: fix api_responses.rst
2 parents e25da07 + d8b2cdc commit 621d969

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

user_guide_src/source/outgoing/api_responses.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ type of response to return. If no matches are found between what the client requ
104104
format in this array is what will be returned.
105105

106106
Next, you need to define the class that is used to format the array of data. This must be a fully qualified class
107-
name, and the class must implement **CodeIgniter\\Format\\FormatterInterface**. Formatters come out of the box that
107+
name, and the class must implement ``CodeIgniter\Format\FormatterInterface``. Formatters come out of the box that
108108
support both JSON and XML::
109109

110110
public $formatters = [
@@ -113,7 +113,7 @@ support both JSON and XML::
113113
];
114114

115115
So, if your request asks for JSON formatted data in an **Accept** header, the data array you pass any of the
116-
``respond*`` or ``fail*`` methods will be formatted by the **CodeIgniter\\API\\JSONFormatter** class. The resulting
116+
``respond*`` or ``fail*`` methods will be formatted by the ``CodeIgniter\Format\JSONFormatter`` class. The resulting
117117
JSON data will be sent back to the client.
118118

119119
Class Reference
@@ -240,7 +240,7 @@ Class Reference
240240
:param string $message: A custom "reason" message to return.
241241
:returns: The value of the Response object's send() method.
242242

243-
Unlike ``failUnauthorized``, this method should be used when the requested API endpoint is never allowed.
243+
Unlike ``failUnauthorized()``, this method should be used when the requested API endpoint is never allowed.
244244
Unauthorized implies the client is encouraged to try again with different credentials. Forbidden means
245245
the client should not try again because it won't help. Status code is 403.
246246

0 commit comments

Comments
 (0)