Submitting, reviewing, and improving message phrasing with built-in spellcheck.
This part of the API is protected by the following authentication mechanisms:
- Basic Authentication
- JSON Web Tokens (JWTs)
Clients must supply the following data
One of the following:
- Cookies automatically set by browsers, plus a header
- A JWT Token signed with this server's key
- author_id
- Values: 1, 2, 3, ...
- Description: Filter alternatives by ID of their author
-
Status code 200
-
Headers: []
-
Supported content types are:
application/json;charset=utf-8
application/json
-
Example (
application/json;charset=utf-8
,application/json
):
["/api/alternatives/301","/api/alternatives/305","/api/alternatives/323"]
This part of the API is protected by the following authentication mechanisms:
- Basic Authentication
- JSON Web Tokens (JWTs)
Clients must supply the following data
One of the following:
- Cookies automatically set by browsers, plus a header
- A JWT Token signed with this server's key
- alternativeId: The ID of the alternative
-
Status code 200
-
Headers: []
-
Supported content types are:
application/json;charset=utf-8
application/json
-
Example (
application/json;charset=utf-8
,application/json
):
{"id":301,"author_id":3,"phrase_id":24,"text":"This is an altrnative to a frase.","created_at":"2023-05-15T12:45:00Z","spell_check":[{"code":1,"col":11,"len":10,"pos":11,"row":0,"s":["alternative"],"word":"altrnative"},{"code":1,"col":27,"len":5,"pos":27,"row":0,"s":["phrase","place","praise","price"],"word":"prase"}]}
This part of the API is protected by the following authentication mechanisms:
- Basic Authentication
- JSON Web Tokens (JWTs)
Clients must supply the following data
One of the following:
- Cookies automatically set by browsers, plus a header
- A JWT Token signed with this server's key
- alternativeId: The ID of the alternative
-
Status code 200
-
Headers: []
-
Supported content types are:
application/json;charset=utf-8
application/json
-
A uri leading to a user with ID equal to 3 (
application/json;charset=utf-8
,application/json
):
"/api/users/3"
- A uri leading to a phrase with ID equal to 24 (
application/json;charset=utf-8
,application/json
):
"/api/phrases/24"
- A uri leading to an alternative with ID equal to 301 (
application/json;charset=utf-8
):
"/api/alternatives/301"
This part of the API is protected by the following authentication mechanisms:
- Basic Authentication
- JSON Web Tokens (JWTs)
Clients must supply the following data
One of the following:
- Cookies automatically set by browsers, plus a header
- A JWT Token signed with this server's key
- open
- Values: **
- Description: Filter by open phrases (for which no alternative has been chosen)
- This parameter is a flag. This means no value is expected to be associated to this parameter.
-
Status code 200
-
Headers: []
-
Supported content types are:
application/json;charset=utf-8
application/json
-
Example (
application/json;charset=utf-8
,application/json
):
["/api/alternatives/301","/api/alternatives/305","/api/alternatives/323"]
This part of the API is protected by the following authentication mechanisms:
- Basic Authentication
- JSON Web Tokens (JWTs)
Clients must supply the following data
One of the following:
- Cookies automatically set by browsers, plus a header
- A JWT Token signed with this server's key
-
Supported content types are:
application/json;charset=utf-8
application/json
-
Example (
application/json;charset=utf-8
,application/json
):
{"text":"This is a new phrase."}
-
Status code 201
-
Headers: []
-
Supported content types are:
application/json;charset=utf-8
application/json
-
A uri leading to a user with ID equal to 3 (
application/json;charset=utf-8
,application/json
):
"/api/users/3"
- A uri leading to a phrase with ID equal to 24 (
application/json;charset=utf-8
,application/json
):
"/api/phrases/24"
- A uri leading to an alternative with ID equal to 301 (
application/json;charset=utf-8
):
"/api/alternatives/301"
This part of the API is protected by the following authentication mechanisms:
- Basic Authentication
- JSON Web Tokens (JWTs)
Clients must supply the following data
One of the following:
- Cookies automatically set by browsers, plus a header
- A JWT Token signed with this server's key
- phrase_id: The ID of the phrase
-
Status code 200
-
Headers: []
-
Supported content types are:
application/json;charset=utf-8
application/json
-
An open phrase (
application/json;charset=utf-8
,application/json
):
{"id":1,"author_id":123,"text":"This is a sample phrase.","created_at":"2022-08-10T18:00:00Z","is_open":true,"chosen_alt_id":null,"num_alts":1,"spell_check":[]}
- A closed phrase (
application/json;charset=utf-8
,application/json
):
{"id":2,"author_id":123,"text":"Phrase with a speling error","created_at":"2023-10-01T18:00:10Z","is_open":false,"chosen_alt_id":1012,"num_alts":3,"spell_check":[{"code":1,"col":14,"len":7,"pos":14,"row":0,"s":["spelling"],"word":"speling"}]}
This part of the API is protected by the following authentication mechanisms:
- Basic Authentication
- JSON Web Tokens (JWTs)
Clients must supply the following data
One of the following:
- Cookies automatically set by browsers, plus a header
- A JWT Token signed with this server's key
- phrase_id: The ID of the phrase
-
Status code 200
-
Headers: []
-
Supported content types are:
application/json;charset=utf-8
application/json
-
Example (
application/json;charset=utf-8
,application/json
):
["/api/alternatives/301","/api/alternatives/305","/api/alternatives/323"]
This part of the API is protected by the following authentication mechanisms:
- Basic Authentication
- JSON Web Tokens (JWTs)
Clients must supply the following data
One of the following:
- Cookies automatically set by browsers, plus a header
- A JWT Token signed with this server's key
- phrase_id: The ID of the phrase
-
Supported content types are:
application/json;charset=utf-8
application/json
-
Example (
application/json;charset=utf-8
,application/json
):
{"text":"This is a new alternative."}
-
Status code 201
-
Headers: []
-
Supported content types are:
application/json;charset=utf-8
application/json
-
A uri leading to a user with ID equal to 3 (
application/json;charset=utf-8
,application/json
):
"/api/users/3"
- A uri leading to a phrase with ID equal to 24 (
application/json;charset=utf-8
,application/json
):
"/api/phrases/24"
- A uri leading to an alternative with ID equal to 301 (
application/json;charset=utf-8
):
"/api/alternatives/301"
This part of the API is protected by the following authentication mechanisms:
- Basic Authentication
- JSON Web Tokens (JWTs)
Clients must supply the following data
One of the following:
- Cookies automatically set by browsers, plus a header
- A JWT Token signed with this server's key
-
Status code 200
-
Headers: []
-
Supported content types are:
application/json;charset=utf-8
application/json
-
Example (
application/json;charset=utf-8
,application/json
):
["/api/alternatives/301","/api/alternatives/305","/api/alternatives/323"]
-
Supported content types are:
application/json;charset=utf-8
application/json
-
Example (
application/json;charset=utf-8
,application/json
):
{"user_name":"New User","password":"s3cur3P@ssw0rd!"}
-
Status code 201
-
Headers: []
-
Supported content types are:
application/json;charset=utf-8
application/json
-
A uri leading to a user with ID equal to 3 (
application/json;charset=utf-8
,application/json
):
"/api/users/3"
- A uri leading to a phrase with ID equal to 24 (
application/json;charset=utf-8
,application/json
):
"/api/phrases/24"
- A uri leading to an alternative with ID equal to 301 (
application/json;charset=utf-8
):
"/api/alternatives/301"
This part of the API is protected by the following authentication mechanisms:
- Basic Authentication
- JSON Web Tokens (JWTs)
Clients must supply the following data
One of the following:
- Cookies automatically set by browsers, plus a header
- A JWT Token signed with this server's key
- user_id: The ID of the user
-
Status code 200
-
Headers: []
-
Supported content types are:
application/json;charset=utf-8
application/json
-
Example (
application/json;charset=utf-8
,application/json
):
{"id":3,"user_name":"John Doe","created_at":"2021-01-01T14:30:00Z"}
This part of the API is protected by the following authentication mechanisms:
- Basic Authentication
- JSON Web Tokens (JWTs)
Clients must supply the following data
One of the following:
- Cookies automatically set by browsers, plus a header
- A JWT Token signed with this server's key
- user_id: The ID of the user
- open
- Values: **
- Description: Filter by open phrases (for which no alternative has been chosen)
- This parameter is a flag. This means no value is expected to be associated to this parameter.
-
Status code 200
-
Headers: []
-
Supported content types are:
application/json;charset=utf-8
application/json
-
Example (
application/json;charset=utf-8
,application/json
):
["/api/alternatives/301","/api/alternatives/305","/api/alternatives/323"]