6/7/2023 0 Comments Intime user guideThe database should contain 2 documents, /xml/one.xml and /json/two.json. Optionally, use Query Console to explore the database.Execute the following command to load two.json into the database with the URI /json/two.json: $ curl -anyauth -user user:password -X PUT \.If the request succeeds, the service returns status 201 (Document Created). ' The URL tells the /documents service to create an XML document with database URI /xml/one.xml ( uri=.) from the contents in the request body. Execute the following command to load one.xml into the database with the URI /xml/one.xml: $ curl -anyauth -user user:password -X PUT \.Navigate to the directory containing the sample documents you created in Preparation.To load the sample documents into the database: The / documents service allows you to create, read, update and delete documents in the database. This procedure loads sample content into the database associated with your REST API instance using the / documents service. You can configure whether errors are returned to your application as XML or JSON. For details, see Administering REST Client API Instances. You can create and configure a REST API instance via a REST request or interactively. Each REST API instance is intended to service a single content database and client application. REST API client applications interact with MarkLogic Server through a REST API instance, a specially configured HTTP App Server. ![]() ![]() In most cases, your application can use either XML or JSON to exchange non-document data such as queries and search results with MarkLogic Server. You can use the REST Client API to work with XML, JSON, text, and binary documents.
0 Comments
Leave a Reply. |