22 lines
553 B
Protocol Buffer
22 lines
553 B
Protocol Buffer
syntax="proto3";
|
|
|
|
option csharp_namespace="VizhTalk.Grpc.Learning.Course";
|
|
|
|
package greet;
|
|
|
|
import "Proto/Courses/DTOs.proto";
|
|
import "Proto/Courses/Queries.proto";
|
|
import "Proto/Courses/Commands.proto";
|
|
import "Proto/Shared.proto";
|
|
|
|
|
|
|
|
|
|
|
|
service CourseGrpc {
|
|
rpc Create (CreateCourseCommand) returns (CourseDTO);
|
|
rpc Update (UpdateCourseCommand) returns (CourseDTO);
|
|
rpc GetAll (GetAllCourseQuery) returns (GetAllCourseDTO);
|
|
rpc GetByTitle (GetCourseByTitleQuery) returns (CourseDTO);
|
|
rpc GetById (GetCourseByIdQuery) returns (CourseDTO);
|
|
} |