Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
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
500 changes: 290 additions & 210 deletions README.md

Large diffs are not rendered by default.

Binary file not shown.
461 changes: 461 additions & 0 deletions analysis_export.json

Large diffs are not rendered by default.

461 changes: 461 additions & 0 deletions complete_analysis_export.json

Large diffs are not rendered by default.

111 changes: 111 additions & 0 deletions complete_api_documentation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
# Spring Boot API Documentation

## Summary
- **Total Endpoints:** 3
- **Total Models:** 2
- **Endpoints by Method:** {'GET': 1, 'PUT': 1, 'DELETE': 1}

## API Endpoints

### GET /api/users/{id}
- **Controller:** UserController
- **Method:** getUserById
- **Response Type:** ResponseEntity<UserDTO>

**CURL Command:**
```bash
curl -X GET \
"http://localhost:8080/api/users/{id}"
```

### PUT /api/users/{id}
- **Controller:** UserController
- **Method:** updateUser
- **Response Type:** ResponseEntity<UserDTO>

**CURL Command:**
```bash
curl -X PUT \
"http://localhost:8080/api/users/{id}"
```

### DELETE /api/users/{id}
- **Controller:** UserController
- **Method:** deleteUser
- **Response Type:** ResponseEntity<Void>

**CURL Command:**
```bash
curl -X DELETE \
"http://localhost:8080/api/users/{id}"
```

## Data Models

### UserDTO
- **Package:** com.example.demo.dto
- **Fields:**
- `id`: Long
- `username`: String - Validations: @Size
- `email`: String - Validations: @Email
- `firstName`: String (Mandatory) - Validations: @NotBlank
- `lastName`: String (Mandatory) - Validations: @NotBlank
- `department`: String
- `birthDate`: LocalDateTime - Validations: @Past
- `phoneNumber`: String - Validations: @Pattern
- `active`: boolean
- `createdAt`: LocalDateTime
- `updatedAt`: LocalDateTime
- `id`: return
- `username`: return
- `email`: return
- `firstName`: return
- `lastName`: return
- `department`: return
- `birthDate`: return
- `phoneNumber`: return
- `active`: return
- `createdAt`: return
- `updatedAt`: return

### CreateUserRequest
- **Package:** com.example.demo.dto
- **Fields:**
- `username`: String - Validations: @Size
- `email`: String - Validations: @Email
- `firstName`: String - Validations: @Size
- `lastName`: String - Validations: @Size
- `password`: String - Validations: @Size
- `department`: String
- `birthDate`: LocalDateTime - Validations: @Past
- `phoneNumber`: String - Validations: @Pattern
- `username`: return
- `email`: return
- `firstName`: return
- `lastName`: return
- `password`: return
- `department`: return
- `birthDate`: return
- `phoneNumber`: return

## CURL Commands

Ready-to-use CURL commands for all endpoints:

### GET /api/users/{id}
```bash
curl -X GET \
"http://localhost:8080/api/users/{id}"
```

### PUT /api/users/{id}
```bash
curl -X PUT \
"http://localhost:8080/api/users/{id}"
```

### DELETE /api/users/{id}
```bash
curl -X DELETE \
"http://localhost:8080/api/users/{id}"
```
Loading