Showing results for 
Search instead for 
Did you mean: 
Welcome to the September Hub-bub

We are inviting you to join our exciting online event where you can learn a lot of useful information, share your knowledge and have fun. Each week, we will reward the best posters with free gift cards .

Just pick any topic you like in the SwaggerHub Community, or create your own to dive into the wonderful September Hub-bub.

Event duration: September 2-27. More information.

This Week Top Contributors:

We will decide the winners next Monday

Swagger create a new method

New Contributor

Swagger create a new method

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 !


Community Manager

Re: Swagger create a new method

Hi @Soufiane23,


From my understanding, Swagger helps you document your API. It doesn't allow developing API.

Please watch the 101 training video describing the basics of SwaggerHub:


Tanya Gorbunova
SmartBear Community Manager

Join the September Hub-bub to show off, learn and win
New Here?
Join us and watch the welcome video:
Join the September Hub-bub to show off, learn and win