This will be the main API used in our TeenHack Project CORS access is not enabled by default. If you want to use this API for a website, you should install the following Chrome extension: Allow CORS Access Control Extension.
To Run It:
-
First, clone the repository.
-
Open the
API.slnfile located in theAPIfolder. -
Press the start button.
- Your browser will open, and you'll see Swagger. Swagger is a tool where you can test the API.
- Click on the call.
- Press "Try it out."
- Then click "Execute."
- It will provide you with the URL that is being used and show you the response.
What does it do?
It returns an exercise object every time, and it will always be the same because it is hardcoded.
Here is how the object looks: