Skip to content

Conversation

ddrechse
Copy link
Member

@ddrechse ddrechse commented Jul 3, 2025

Customer API Documentation

API Summary

HTTP Method Endpoint Description Request Body Response Status Codes
GET /api/v1/customer Get all customers None List of customers (JSON) 200 OK, 500 Error
GET /api/v1/customer/{id} Get customer by ID None Customer object (JSON) 200 OK, 404 Not Found, 500 Error
GET /api/v1/customer/name/{customerName} Search customers by name (contains) None List of customers (JSON) 200 OK, 500 Error
GET /api/v1/customer/byemail/{email} Search customers by email (contains) None List of customers (JSON) 200 OK, 500 Error
POST /api/v1/customer Create new customer Customer object (JSON) Location header 201 Created, 409 Conflict, 500 Error
PUT /api/v1/customer/{id} Update existing customer Customer object (JSON) Updated customer (JSON) 200 OK, 404 Not Found, 500 Error
DELETE /api/v1/customer/{customerId} Delete customer by ID None None 204 No Content, 404 Not Found, 500 Error
POST /api/v1/customer/applyLoan/{amount} Apply for loan (placeholder) None None 418 I'm a Teapot, 500 Error

Notes

  • All endpoints use /api/v1/customer as the base path
  • Search operations are case-sensitive and use partial matching (LIKE %term%)
  • The loan application endpoint is a placeholder that always returns 418 I'm a Teapot
  • Customer IDs are strings and must be unique
  • Date fields are automatically set by the system using @CreationTimestamp

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Jul 3, 2025
Copy link

sonarqubecloud bot commented Jul 3, 2025

@markxnelson markxnelson merged commit 110b73e into oracle:mark/1.4.0 Jul 3, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants