Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jefferya authored Aug 24, 2017
1 parent 299a0a0 commit ab8dbe6
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,9 @@ Accept: application/json

#### Response: 201 Created
##### Content-Type: application/json
Returns the same response as a [GET Annotation](#response-200-ok) request.

```
{"pid":"namespace:UUID"}
```

## Update An Existing Entity

Expand All @@ -264,13 +265,15 @@ Accept: application/json

#### Response: 200
##### Content-Type: application/json
Returns the same response as a [GET Annotation](#response-200-ok) request.
```
{"pid":"namespace:UUID"}
```


## Get An Existing Annotation
## Get An Existing Entity

#### URL syntax
islandora/cwrc_entities/v1/{type}/{URI}
islandora/cwrc_entities/v1/{type}/{PID}

#### HTTP Method
GET
Expand All @@ -283,15 +286,16 @@ none

#### Response: 200
##### Content-Type: application/json
Returns the same response as a [GET Annotation](#response-200-ok) request.

```
xml
```



## Delete An Existing Entity

#### URL syntax
islandora/cwrc_entities/v1/{type}/{URI}
islandora/cwrc_entities/v1/{type}/{PID}

#### HTTP Method
DELETE
Expand All @@ -304,7 +308,6 @@ none

#### Response: 200
##### Content-Type: application/json
Returns the same response as a [GET Annotation](#response-200-ok) request.



Expand All @@ -316,7 +319,7 @@ Returns the same response as a [GET Annotation](#response-200-ok) request.



### Common Responses
# Common API Responses
Unless otherwise specified each end-point can return the following responses.

#### Response: 401 Unauthorized
Expand Down

0 comments on commit ab8dbe6

Please sign in to comment.