Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions items.md
Original file line number Diff line number Diff line change
Expand Up @@ -605,3 +605,14 @@ Return codes:
* 401 Unauthorized - if you are not authenticated
* 403 Forbidden - if you are not logged in with sufficient permissions
* 404 Not found - if the item doesn't exist (or was already deleted)

### findByCustomURL

**GET /api/core/items/search/findByCustomURL?q=<:custom-url>**

Search an item by the provided custom url. If the provided url is an UUID, a find by item's uuid is performed. The response has the same format of the find by uuid.

Return codes:
* 200 OK - if the operation succeed
* 204 No content - if the operation succeed but no item was found
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AdamF42 : This needs a minor update as we're now returning a proper 404 if the item is not found.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for catching that! I've updated the return code from 204 to 404 to reflect the actual implementation.

* 500 Internal server error - if multiple item was found related to the given url