FORMAT: 1A
The JSON body and JSON Schema for a request or response can be generated from the attributes section MSON data structure. The generated schema can also be overridden by providing an explicit schema, as you can see in the examples below.
-
Parameters
- id: abc123 (required) - Unique identifier for a note
Gets a single note by its unique identifier.
-
Response 200 (application/json)
-
Attributes
- id: abc123
- title: This is a note
- content: This is the note content.
- tags: todo, home (array[string])
-
Modify a note's data using its unique identifier. You can edit the title
, content
, and tags
.
-
Request (application/json)
-
Attributes
- title: This is another note
- content
- tags: todo, work (array[string])
-
Schema
{ "type": "object", "description": "This is a custom schema!", "properties": { "title": { "type": "string" }, "content": { "type": "string" }, "tags": { "type": "array", "items": { "type": "string" } } }, "additionalProperties": false }
-
-
Response 204