Issue #1931 Fixed Repository Items REST Service
Change-Id: I8876b708b7f6f08b08bc550099ae1bef47751f97 Former-commit-id:5450a58ca6
[formerly2c147fe159
] [formerly1e413c68f6
] [formerlya226f225fd
[formerly1e413c68f6
[formerly b2764126282aab128cc1465905c11686894ab1f7]]] Former-commit-id:a226f225fd
Former-commit-id: 747180ba600bf97794019a0d0a919d238456940e [formerly3b3ae2add0
] Former-commit-id:97a9a6279b
This commit is contained in:
parent
fe1a709d42
commit
396102ea5d
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