POST /api/bookmarks/
Create a new bookmark. Expects a JSON body with url (required) and title (required).
Create a new bookmark. This endpoint allows users to add a new bookmark by providing its URL and an optional title.
Endpoint
POST /api/bookmarks/
Request Body
| Field | Type | Description |
|---|---|---|
| url | string | The URL of the bookmark to be created. This field is required. |
| title | string | The title of the bookmark. This field is required. |
Response
| Status | Description |
|---|---|
| 201 | Bookmark created successfully. Returns application/json. |
| 400 | Invalid input data provided, such as missing required fields or an invalid URL. Returns application/json. |