Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Updated README
  • Loading branch information
ajs6f committed Jan 23, 2013
1 parent 4016084 commit 289a576
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions README.md
Expand Up @@ -5,11 +5,30 @@ Status](https://travis-ci.org/futures/ff-modeshape-prototype.png?branch=master)]

```bash
$ mvn clean jetty:run
$ curl "http://localhost:8080/describe"
$ curl "http://localhost:8080/rest/fedora/describe"
```
to create an object, try:

```
$ curl "http://localhost:8080/rest/objects/myobject" -X POST
```
and to retrieve it:

```
$ curl "http://localhost:8080/rest/objects/myobject" -H "Accept: text/xml"
```

To import FOXML, try:
```
$ curl "http://localhost:8080/rest/foxml/myobject" --data-ascii @myfoxmlfile.xml
```
and you should see an object appear at:
```
$ curl "http://localhost:8080/rest/objects/myobject"
```

Before creating fedora-like namespaced nodes, you need to register a namespace:

```bash
curl "http://localhost:8080/namespaces/asdf" -X POST
curl "http://localhost:8080/rest/namespaces/asdf" -X POST
```

0 comments on commit 289a576

Please sign in to comment.