cancel
Showing results for 
Search instead for 
Did you mean: 

Swagger create a new method

Highlighted
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 !

 

1 REPLY 1
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:

https://smartbear.com/academy/

 

---------
Tanya Gorbunova
SmartBear Community Manager

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others.↓↓↓↓↓
New Here?
Join us and watch the welcome video:
Top Kudoed Authors
Top Kudoed Posts