cancel
Showing results for 
Search instead for 
Did you mean: 

Create a new method in Swagger

Highlighted
New Contributor

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 !

New Here?
Join us and watch the welcome video:
Top Kudoed Authors