Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
RavenDB 2.x Beginner's Guide

You're reading from  RavenDB 2.x Beginner's Guide

Product type Book
Published in Sep 2013
Publisher Packt
ISBN-13 9781783283798
Pages 356 pages
Edition 1st Edition
Languages
Author (1):
Khaled Tannir Khaled Tannir
Profile icon Khaled Tannir

Table of Contents (21) Chapters

RavenDB 2.x Beginner's Guide
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Getting Started with RavenDB RavenDB Management Studio RavenDB.NET Client API RavenDB Indexes and Queries Advanced RavenDB Indexes and Queries Advanced RavenDB Document Capabilities RavenDB Administration Deploying RavenDB Scaling-out RavenDB RavenDB Profiling RavenDB HTTP API Putting It All Together Pop Quiz Answers Index

Time for action – performing a GET request


You will learn to create a GET request using the RESTClient tool we have downloaded in the previous section to retrieve the document with the ID = Orders/A655302 from the Orders database and view it. (We created the Orders database in Chapter 2, RavenDB Management Studio.)

  1. If it is not already open, double-click on the RESTClient tool's JAR file in order to launch it.

  2. Click on the Method tab and select the GET HTTP method.

  3. In the HTTP Request section, enter this URL: http://localhost:8080/databases/orders/docs/orders/a655302.

    Note

    To perform this GET request, we don't need to change any of the Header or the Body, or other parameters.

  4. Click on the green Go! button to send your first request to the server.

What just happened?

You just created your first GET request to retrieve the order document with the ID Orders/A655302 from the Orders database directly by using the RavenDB HTTP API.

Let's have a look at the server response and analyze it. The first thing...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}