The magic behind the Postman example described above is API documentation. You just need to press the Send button, and voilà, the request is sent to the IDCS server! In order to do that, simply select “Retrieve the Tenant’s Certificate” (the name of the IDCS API you want to invoke), and you’ll see the actual command appear in the main Postman pane, expressed as " associated with the GET HTTP verb. With Postman, you can (among many other things) import a whole API collection, then select a specific API from that collection and send a request to the API server. For example, if you use the brand new Identity Cloud Service (IDCS) that Oracle recently made available on Oracle Cloud, you can, as a tenant developer, retrieve the tenant’s signing certificate. Fortunately, smart people developed graphical tools that leverage the cURL utility in order to make developers’ life easier. Some cURL commands can easily fill out a whole page and a typing error might be very difficult to detect. Typing cURL commands at a terminal prompt, however, can become very tedious, even for the most patient developer. In this case, cURL allows Oracle or third-party developers to leverage Oracle Cloud APIs directly, without any administrator's intervention. Web APIs (which I covered in a previous LinkedIn post) allow direct access to “endpoints” (or software components) exposed by software vendors.įor example, cURL can be used as an alternative to a graphical administration console to programmatically register resources in Oracle Cloud by specifying details about each resource (e.g., name of the resource identity domain, name of the resource, name of the application implementing the resource, API path of the resource, etc.). For example, runningĬurl from a terminal returns the HTML source code for the page in your terminal window (try it and see the result for yourself.)ĬURL has become very popular with the advent of REST-based architectures where one can invoke a web API by simply making REST/HTTP calls. However, Postman provides some enhanced capabilities which you may not get in Firefox.Simply put, cURL (the origin of the acronym is not clear) is essentially used as a command-line HTTP client. cURL also supports other protocols such as FTP (to upload files) or SMTP (to send email), but I only focus on HTTP in this post.Ī basic use of cURL involves typing “curl" at a command line prompt followed by the URL of the information to retrieve. See the screenshot below.įirefox also provides an option to ‘ Edit and Resend’ the request which can prove to be very useful in case you don’t have Postman on your machine. If you are using Firefox, the process is very similar.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |