Coder Social home page Coder Social logo

hippo-addon-restful-webservices-demo's Introduction

Hippo RESTful Web services demo project

Build Status

This project is a demo project for the Hippo RESTful Web services addon. To run this project you will first need to install the web services add-on into your local maven repository.

Running locally

This project uses the Maven Cargo plugin to run the CMS and site locally in Tomcat. From the project root folder, execute:

  $ mvn clean install
  $ mvn -P cargo.run

Access the CMS at http://localhost:8080/cms, and the site at http://localhost:8080/site Logs are located in target/tomcat7x/logs

Testing the API

The web services addon APIs are documented with Swagger.

Visiting http://localhost:8080/cms/swagger/ after startup shows you the Swagger UI, where you see and test the available service end-points and their documentation. Before you can do so you will need to login with the default username and password .e.g (admin/admin).

Examples of working with the API

$ curl --user admin:admin http://localhost:8080/cms/rest/api/

Which returns:

{
  "clusterid":"",
  "vendor":{
    "name":"Hippo Repository","version":"2.26.09"
    }
}

Performing a search for document within the cms

$ curl --user admin:admin -H "Content-Type: application/json" -XPOST http://localhost:8080/cms/rest/api/_query/ -d '
{
  "statement":"/jcr:root/content/documents//element(*,hippo:document)",
  "language":"xpath",
  "limit":5
}'

hippo-addon-restful-webservices-demo's People

Contributors

jreijn avatar

Watchers

 avatar  avatar  avatar

Forkers

davidsoloman

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.