Join Troy Miles for an in-depth discussion in this video Creating an endpoint, part of Web Servers and APIs using C++.
- [Instructor] Even though it isn't explicitly stated,…the routes in crow only handle…the GET method by default.…This makes sense since it is the most-used method.…It is the one issued by the browser…when you type in a URL.…If you wish to write a RESTful API,…you'll need to know how to write route handlers…for the other HTTP methods.…In order to test the code in this section,…you will need software which can issue requests…using other HTTP methods.…I am going to use the free…Restlet Client Chrome extension.…
But there are others available and many are also free.…Adding support for other…HTTP methods is relatively straightforward,…but remember one important thing.…There can only be one handler for each route period.…So if you want to handle more than one method…on a single route, they will have to share it.…Let's see how this is done.…Let's go back into Atom.…Just ahead of our route route,…we're gonna create a new route.…
We're gonna say CROW_ROUTE.…We're gonna say app.…The name of this route is gonna be /rest_test.…
- Working with Crow, the C++ micro web framework
- Deploying containers to Heroku
- Building websites and webpages
- Accessing data from a database
- Accessing data via RESTful APIs
- Creating API endpoints
- Running WebSockets on Heroku
Skill Level Intermediate
1. Installing Our Tools
2. Deploying to Heroku
Installing the Heroku CLI1m 17s
3. Building Websites
4. Data Access
5. RESTful APIs
6. WebSockets and Crow
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.