Skip to content

Commit bb4fda9

Browse files
committed
remove opExample
1 parent 1300a9b commit bb4fda9

18 files changed

+0
-153
lines changed

typespec/http-api/services/commentsService.tsp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,9 @@ interface CommentService {
3131

3232
@useAuth(BearerAuth)
3333
@patch
34-
@opExample(
35-
#{ parameters: #{ id: "238593a0-b8d4-4bf6-beda-48ce6ba093bc" } }
36-
)
3734
op update(@path id: string, ...EditCommentDto): Comment;
3835

3936
@useAuth(BearerAuth)
4037
@delete
41-
@opExample(
42-
#{ parameters: #{ id: "238593a0-b8d4-4bf6-beda-48ce6ba093bc" } }
43-
)
4438
op delete(@path id: string): void;
4539
}

typespec/http-api/services/coursesService.tsp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@ interface CourseService {
2020
): Courses;
2121

2222
@get
23-
@opExample(
24-
#{ parameters: #{ id: "some-id" } }
25-
)
2623
op get(
2724
@path id: string,
2825
@query select?: string
@@ -32,14 +29,8 @@ interface CourseService {
3229
op create(...NewCourseDto): Course;
3330

3431
@patch
35-
@opExample(
36-
#{ parameters: #{ id: "some-id" } }
37-
)
3832
op update(@path id: string, ...EditCourseDto): Course;
3933

4034
@delete
41-
@opExample(
42-
#{ parameters: #{ id: "some-id" } }
43-
)
4435
op delete(@path id: string): void;
4536
}

typespec/http-api/services/postsService.tsp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@ interface PostService {
1919
): Posts;
2020

2121
@get
22-
@opExample(
23-
#{ parameters: #{ id: "fb5e19a3-ab33-423b-9cec-8ee4ef211c61" } }
24-
)
2522
op get(
2623
@path id: string,
2724
@query select?: string
@@ -33,16 +30,10 @@ interface PostService {
3330

3431
@useAuth(BearerAuth)
3532
@patch
36-
@opExample(
37-
#{ parameters: #{ id: "fb5e19a3-ab33-423b-9cec-8ee4ef211c61" } }
38-
)
3933
op update(@path id: string, ...EditPostDto): Post;
4034

4135
@useAuth(BearerAuth)
4236
@delete
43-
@opExample(
44-
#{ parameters: #{ id: "fb5e19a3-ab33-423b-9cec-8ee4ef211c61" } }
45-
)
4637
op delete(@path id: string): void;
4738

4839
@route("/{postId}/comments")

typespec/http-api/services/tasksService.tsp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@ interface TaskService {
1919
): Tasks;
2020

2121
@get
22-
@opExample(
23-
#{ parameters: #{ id: "some-id" } }
24-
)
2522
op get(
2623
@path id: string,
2724
@query select?: string
@@ -31,14 +28,8 @@ interface TaskService {
3128
op create(...NewTaskDto): Task;
3229

3330
@patch
34-
@opExample(
35-
#{ parameters: #{ id: "some-id" } }
36-
)
3731
op update(@path id: string, ...EditTaskDto): Task;
3832

3933
@delete
40-
@opExample(
41-
#{ parameters: #{ id: "some-id" } }
42-
)
4334
op delete(@path id: string): void;
4435
}

typespec/http-api/services/usersService.tsp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@ interface UserService {
2222
): Users;
2323

2424
@get
25-
@opExample(
26-
#{ parameters: #{ id: "a788f3fc-0d47-4d55-b18b-09bae52dac7b" } }
27-
)
2825
op get(
2926
@path id: string,
3027
@query select?: string
@@ -35,16 +32,10 @@ interface UserService {
3532

3633
@useAuth(BearerAuth)
3734
@patch
38-
@opExample(
39-
#{ parameters: #{ id: "a788f3fc-0d47-4d55-b18b-09bae52dac7b" } }
40-
)
4135
op update(@path id: string, ...EditUserDto): User;
4236

4337
@useAuth(BearerAuth)
4438
@delete
45-
@opExample(
46-
#{ parameters: #{ id: "a788f3fc-0d47-4d55-b18b-09bae52dac7b" } }
47-
)
4839
op delete(@path id: string): void;
4940

5041
@route("/{authorId}/posts")

typespec/http-protocol/services/commentsService.tsp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,9 @@ interface CommentService {
3131

3232
@useAuth(BearerAuth)
3333
@patch
34-
@opExample(
35-
#{ parameters: #{ id: "238593a0-b8d4-4bf6-beda-48ce6ba093bc" } }
36-
)
3734
op update(@path id: string, ...EditCommentDto): Comment;
3835

3936
@useAuth(BearerAuth)
4037
@delete
41-
@opExample(
42-
#{ parameters: #{ id: "238593a0-b8d4-4bf6-beda-48ce6ba093bc" } }
43-
)
4438
op delete(@path id: string): void;
4539
}

typespec/http-protocol/services/coursesService.tsp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@ interface CourseService {
2020
): Courses;
2121

2222
@get
23-
@opExample(
24-
#{ parameters: #{ id: "some-id" } }
25-
)
2623
op get(
2724
@path id: string,
2825
@query select?: string
@@ -32,14 +29,8 @@ interface CourseService {
3229
op create(...NewCourseDto): Course;
3330

3431
@patch
35-
@opExample(
36-
#{ parameters: #{ id: "some-id" } }
37-
)
3832
op update(@path id: string, ...EditCourseDto): Course;
3933

4034
@delete
41-
@opExample(
42-
#{ parameters: #{ id: "some-id" } }
43-
)
4435
op delete(@path id: string): void;
4536
}

typespec/http-protocol/services/postsService.tsp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@ interface PostService {
1919
): Posts;
2020

2121
@get
22-
@opExample(
23-
#{ parameters: #{ id: "fb5e19a3-ab33-423b-9cec-8ee4ef211c61" } }
24-
)
2522
op get(
2623
@path id: string,
2724
@query select?: string
@@ -33,16 +30,10 @@ interface PostService {
3330

3431
@useAuth(BearerAuth)
3532
@patch
36-
@opExample(
37-
#{ parameters: #{ id: "fb5e19a3-ab33-423b-9cec-8ee4ef211c61" } }
38-
)
3933
op update(@path id: string, ...EditPostDto): Post;
4034

4135
@useAuth(BearerAuth)
4236
@delete
43-
@opExample(
44-
#{ parameters: #{ id: "fb5e19a3-ab33-423b-9cec-8ee4ef211c61" } }
45-
)
4637
op delete(@path id: string): void;
4738

4839
@route("/{postId}/comments")

typespec/http-protocol/services/tasksService.tsp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@ interface TaskService {
1919
): Tasks;
2020

2121
@get
22-
@opExample(
23-
#{ parameters: #{ id: "some-id" } }
24-
)
2522
op get(
2623
@path id: string,
2724
@query select?: string
@@ -31,14 +28,8 @@ interface TaskService {
3128
op create(...NewTaskDto): Task;
3229

3330
@patch
34-
@opExample(
35-
#{ parameters: #{ id: "some-id" } }
36-
)
3731
op update(@path id: string, ...EditTaskDto): Task;
3832

3933
@delete
40-
@opExample(
41-
#{ parameters: #{ id: "some-id" } }
42-
)
4334
op delete(@path id: string): void;
4435
}

typespec/http-protocol/services/usersService.tsp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@ interface UserService {
2222
): Users;
2323

2424
@get
25-
@opExample(
26-
#{ parameters: #{ id: "a788f3fc-0d47-4d55-b18b-09bae52dac7b" } }
27-
)
2825
op get(
2926
@path id: string,
3027
@query select?: string
@@ -35,16 +32,10 @@ interface UserService {
3532

3633
@useAuth(BearerAuth)
3734
@patch
38-
@opExample(
39-
#{ parameters: #{ id: "a788f3fc-0d47-4d55-b18b-09bae52dac7b" } }
40-
)
4135
op update(@path id: string, ...EditUserDto): User;
4236

4337
@useAuth(BearerAuth)
4438
@delete
45-
@opExample(
46-
#{ parameters: #{ id: "a788f3fc-0d47-4d55-b18b-09bae52dac7b" } }
47-
)
4839
op delete(@path id: string): void;
4940

5041
@route("/{authorId}/posts")

0 commit comments

Comments
 (0)