Issue #1931 Fixed Repository Items REST Service
Change-Id: I8876b708b7f6f08b08bc550099ae1bef47751f97 Former-commit-id:9826727395
[formerly5450a58ca6
] [formerly2c147fe159
] [formerly2c147fe159
[formerly1e413c68f6
]] [formerlya226f225fd
[formerly2c147fe159
[formerly1e413c68f6
] [formerlya226f225fd
[formerly b2764126282aab128cc1465905c11686894ab1f7]]]] Former-commit-id:a226f225fd
Former-commit-id: 375fa3b0973ff0e82a06bd2a858ed9acf0bd9099 [formerly 747180ba600bf97794019a0d0a919d238456940e] [formerly97a9a6279b
[formerly3b3ae2add0
]] Former-commit-id:97a9a6279b
Former-commit-id:396102ea5d
This commit is contained in:
parent
2d97f1ae5c
commit
35be9e2b20
1 changed files with 3 additions and 1 deletions
|
@ -21,6 +21,7 @@ package com.raytheon.uf.edex.registry.ebxml.services.rest;
|
|||
|
||||
import javax.ws.rs.GET;
|
||||
import javax.ws.rs.Path;
|
||||
import javax.ws.rs.PathParam;
|
||||
import javax.ws.rs.Produces;
|
||||
import javax.ws.rs.WebApplicationException;
|
||||
|
||||
|
@ -70,7 +71,8 @@ public class RepositoryItemsRestService implements IRepositoryItemsRestService {
|
|||
*/
|
||||
@GET
|
||||
@Produces("application/octet-stream")
|
||||
public byte[] getRepositoryItem(String repositoryItemId) {
|
||||
public byte[] getRepositoryItem(
|
||||
@PathParam("repositoryItemId") String repositoryItemId) {
|
||||
ExtrinsicObjectType obj = extrinsicObjectDao.getById(repositoryItemId);
|
||||
if (obj == null) {
|
||||
throw new WebApplicationException(404);
|
||||
|
|
Loading…
Add table
Reference in a new issue