Skip to content

Provides REST Snippets in Jetbrains's HTTP Client format to access the official Alfresco's REST API

License

Notifications You must be signed in to change notification settings

aitseitz/intellij-http-rest-client-for-alfresco-rest-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

devcon2019.png

intellij-http-rest-client-for-alfresco-rest-api

Provides REST Snippets in Jetbrains's HTTP Client format to access the official Alfresco's REST API

This project will cover the Alfresco Public API for Alfresco Content Services (see: Alfresco API Explorer) with the build in HTTP Rest Client from Jetbrains. Similar to tools like Postman, you can use this project to enhance your Alfresco development.

Requirements

How do I use this project?

You can either use this project as a template or just copy specific files to your current Alfresco SDK project. For example you can copy the acs_rest_api folder into the /src/test folder of your Alfresco all-in-one project and modify them to test your custom API.

Or you may just clone this project and use it in addition to your current development workflow.

Configuration

Environment Config

All configuration is stored in the rest-client.env.json file.
Example:

"acs-env-localhost": {
    "protocol": "http://",
    "alfresco-host": "localhost",
    "port": 8080,
    "auth-admin": "Basic YWRtaW46YWRtaW4=",
    "auth-manager": "Basic bWphY2tzb246bWlrZTEyMzQ=",
    "auth-collaborator": "Basic YWJlZWNoZXI6YWxpY2UxMjM0",
    "alfresco-site-id": "swsdp",
    "test-site-id": "testy",
    "audit-application-id" : "alfresco-access"
  },

You can specify as many Alfresco Environments as you wish to access via these REST API calls. Click on the play icon next to the rest call to choose the Alfresco environment where the rest call should be executed:

acs_rest_api_within_jetbrains_ide.png

You can specify additional variables in the settings (rest-client.env.json) and use them in your REST call by using {{variablename}}

Example usage within IntelliJ IDEA: acs_rest_api_example_usage_in_intellj.gif

TestData

In the testdata folder are some example files from the Sample: Web Site Design Project which are used to demonstrate upload and node creation behavior.

Contribution

This is an Alfresco project for the community. If you work with this project please contribute & share your enhancements. Feel free to fork this project and send me pull requests. The goal is to one day cover the full feature list of the Alfresco API within the Jetbrains IDE.

Additional Links


Authors

License

This project is licensed under the MIT License - see the LICENSE file for details


About

Provides REST Snippets in Jetbrains's HTTP Client format to access the official Alfresco's REST API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published