Skip to content

Commit ed912e4

Browse files
committed
Move 'sample requests' into 'getting started'
1 parent 8d7b138 commit ed912e4

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

todo-web-api-use-oracle-db/README.md

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,27 @@ The application will automatically:
6767
3. Insert sample data using the data.sql file (via Spring Boot's automatic data initialization)
6868
4. Start the web server on port 8080
6969

70+
### 4. Access Sample Requests
71+
72+
### Get All Todos
73+
74+
```bash
75+
curl -X GET http://localhost:8080/api/todos
76+
```
77+
78+
### Create a Todo Item
79+
80+
```bash
81+
curl -X POST http://localhost:8080/api/todos \
82+
-H "Content-Type: application/json" \
83+
-d '{
84+
"title": "Learn Oracle Database",
85+
"description": "Study Oracle-specific features and SQL syntax",
86+
"priority": 7,
87+
"dueDate": "2023-12-31T23:59:59"
88+
}'
89+
```
90+
7091
## API Endpoints
7192

7293
| Method | URL | Description |
@@ -86,27 +107,6 @@ The application will automatically:
86107
| GET | /api/todos/oracle-demo | Demonstrate Oracle-specific query features |
87108
| POST | /api/todos/run-oracle-operations | Run Oracle-specific database operations |
88109

89-
## Sample Requests
90-
91-
### Create a Todo Item
92-
93-
```bash
94-
curl -X POST http://localhost:8080/api/todos \
95-
-H "Content-Type: application/json" \
96-
-d '{
97-
"title": "Learn Oracle Database",
98-
"description": "Study Oracle-specific features and SQL syntax",
99-
"priority": 7,
100-
"dueDate": "2023-12-31T23:59:59"
101-
}'
102-
```
103-
104-
### Get All Todos
105-
106-
```bash
107-
curl -X GET http://localhost:8080/api/todos
108-
```
109-
110110
## Oracle-Specific Features
111111

112112
This sample demonstrates several Oracle-specific features:

0 commit comments

Comments
 (0)