Forum Discussion

Soufiane23's avatar
New Contributor
6 years ago

Create a new method in Swagger

Hello !

I started using swagger yesterday and i want to create an API with activitiies, resources and courses as paths.

I made a class diagram for what i want to do but i have one problem. I should create a method "search" (for example /course/search ? query = "test") that will give me all the courses available that have the name  "test" or their id. 

And with this id, i want to have a list of all the activities available for this course.

I'm really struggling with it cause i'm used to java or c++ and i hope someone will help me solve it.

Thank you for reading !

No RepliesBe the first to reply