Tutorial 3 - CoreLookup
Tutorial 3 - CoreLookup
Introduction
In this tutorial, you will inspect an Email resource that uses core commands to obtain e-mail information from the Elastic Path Core.
Warning: Before you begin
Make sure your development environment has been properly set up as described in Setting up your Developer Environment.
Source files
The files created in this tutorial may be found in the tutorials zip under /Rest-Tutorials/rest-resource-corelookup directory.
rest-resource-corelookup has the following directory structure:
- <artifact_id>
- src
- main
- java
-
- com.extension.rest
-
- core
-
- command
-
- dto
-
- assembler
- EmailDto.java
- user
- resources
-
- corelookup
-
- EmailMutator.java
- command
-
- impl
-
- LinkToEmailStrategy.java
- ReadEmailCommandBuilder.java
- ReadProfileStrategy.java
- impl
-
- EmailResourceOperatorImpl.java
- rel
-
- EmailResourceRels.java
- schema
-
- representation
-
- EmailRepresentation.java
- resources
-
- OSGI-INF
-
- blueprint
-
- email-blueprint
- springCtx-import
- config
- permission.properties
- spring
-
- applicationContext-corelookup-resource.xml
- test
- java
- main
- target
- pom.xml
- src