This is a very basic example of how to start developing a Rest API on the Alfresco Platform.
It uses:
- Typed :
mvn archetype:generate -DarchetypeCatalog=https://artifacts.alfresco.com/nexus/content/groups/public/archetype-catalog.xml -Dfilter=org.alfresco.maven.archetype:
(Make sure you include the trailing colon) - Answered to the archetype questions:
- 1
- 3
- org.alfresco.labs
- quickrest
- Y
- Git init and added exclusions
- Imported as a Maven Project into Eclipse
- Added README.md
- Deleted unused files, see commit
- Updated the pom.xml, changed the Alfresco version, eclipse quickfix, see commit
- Updated the pom.xml, Updated the compiler to jdk 1.7, added an work around for a spring-context issue, see commit
- Updated the pom.xml, Made sure alfresco.client.war.version matches the Alfresco version, see commit
- Updated the logging and basic spring context, see commit
- Updated the pom.xml, Added alfresco-remote-api as a "provided" dependency, see commit
- Ran
mvn integration-test -Pamp-to-war
See Maven Amp Commands - In a browser : http:localhost:8080/quickrest/ Alfresco is up and running :)
Copyright (C) 2013 Alfresco Software Limited
This file is part of an unsupported extension to Alfresco.
Alfresco Software Limited licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.