<?xml version="1.0" encoding="UTF-8"?>
-<archetype-descriptor xsi:schemaLocation="http://maven.apache.org/plugins/maven-archetype-plugin/archetype-descriptor/1.0.0 http://maven.apache.org/xsd/archetype-descriptor-1.0.0.xsd" name="device"
+<archetype-descriptor xsi:schemaLocation="http://maven.apache.org/plugins/maven-archetype-plugin/archetype-descriptor/1.0.0 http://maven.apache.org/xsd/archetype-descriptor-1.0.0.xsd" name="simple"
xmlns="http://maven.apache.org/plugins/maven-archetype-plugin/archetype-descriptor/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<fileSets>
</includes>
</fileSet>
</fileSets>
+ <requiredProperties>
+ <requiredProperty key="REST-Resource-Name"/>
+ </requiredProperties>
</archetype-descriptor>
* Example:
*
* Request URL:
- * http://localhost:8080/app/northbound/api
+ * http://localhost:8080/app/northbound/${REST-Resource-Name}
*
* Response body in XML:
* <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
* Sample Northbound API
* </pre>
*/
- @Path("/simple")
+ @Path("/${REST-Resource-Name}")
@GET
@Produces({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML })
@StatusCodes()
return new ArrayList<SimpleData>();
}
- @Path("/simple/{uuid}")
+ @Path("/${REST-Resource-Name}/{uuid}")
@GET
@Produces({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML })
@TypeHint(SimpleData.class)
* Example:
*
* Request URL:
- * http://localhost:8080/app/northbound/api
+ * http://localhost:8080/app/northbound/${REST-Resource-Name}
*
* Response body in XML:
* <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
* Sample Northbound API
* </pre>
*/
- @Path("/simple")
+ @Path("/${REST-Resource-Name}")
@POST
@StatusCodes({ @ResponseCode(code = 201, condition = "Data Inserted successfully"),
@ResponseCode(code = 401, condition = "User not authorized to perform this operation"),
* Example:
*
* Request URL:
- * http://localhost:8080/app/northbound/api/{uuid}
+ * http://localhost:8080/app/northbound/${REST-Resource-Name}/{uuid}
*
* Response body in XML:
* <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
* Sample Northbound API
* </pre>
*/
- @Path("/simple/{uuid}")
+ @Path("/${REST-Resource-Name}/{uuid}")
@PUT
@StatusCodes({ @ResponseCode(code = 200, condition = "Data Updated successfully"),
@ResponseCode(code = 401, condition = "User not authorized to perform this operation"),
* Example:
*
* Request URL:
- * http://localhost:8080/app/northbound/api/{uuid}
+ * http://localhost:8080/app/northbound/${REST-Resource-Name}/{uuid}
*
* Response body in XML:
* <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
* Sample Northbound API
* </pre>
*/
- @Path("/simple/{uuid}")
+ @Path("/${REST-Resource-Name}/{uuid}")
@DELETE
@StatusCodes({ @ResponseCode(code = 200, condition = "Data Deleted successfully"),
@ResponseCode(code = 401, condition = "User not authorized to perform this operation"),