Finders
GET /api/finders
Description: Retrieves a list of all finders.
Parameters: None
Example Request:
GET /api/findersResponse:
200 OK: Returns an array of finder objects.
4XX/5XX: Returns an error message if the request fails.
GET /api/finders/{id}
Description: Retrieves details of a specific finder by ID.
Parameters:
id(integer): ID of the finder.
Example Request:
GET /api/finders/1Response:
200 OK: Returns the finder object.
404 Not Found: If the finder with the specified ID does not exist.
4XX/5XX: Returns an error message if the request fails.
POST /api/finders
Description: Creates a new finder.
Parameters: None (Data is sent in the request body)
Request Body:
Example Request:
Response:
201 Created: Returns the created finder object.
4XX/5XX: Returns an error message if the request fails.
PUT /api/finders/{id}
Description: Updates an existing finder by ID.
Parameters:
id(integer): ID of the finder.
Request Body:
Example Request:
Response:
200 OK: Returns the updated finder object.
404 Not Found: If the finder with the specified ID does not exist.
4XX/5XX: Returns an error message if the request fails.
DELETE /api/finders/{id}
Description: Deletes a finder by ID.
Parameters:
id(integer): ID of the finder.
Example Request:
Response:
200 OK: Confirmation of deletion.
404 Not Found: If the finder with the specified ID does not exist.
4XX/5XX: Returns an error message if the request fails.
Last updated