HippoCMS RESTFUL API - hippocms

http://www.onehippo.org/7_8/library/concepts/rest/restful-api-support---content-context-aware-jax-rs-services.html
Can anyone explain more detail than the link?
I have hippo project import to the eclipse.
and i know the first step is setting up our own REST service is to create an HST mount.
but I don't know where do I configure the following code?
<sv:node sv:name="restapi">
<sv:property sv:name="jcr:primaryType" sv:type="Name">
<sv:value>hst:mount</sv:value>
</sv:property>
<sv:property sv:name="hst:alias" sv:type="String">
<sv:value>restapi</sv:value>
</sv:property>
<sv:property sv:name="hst:isSite" sv:type="Boolean">
<sv:value>false</sv:value>
</sv:property>
<sv:property sv:name="hst:namedpipeline" sv:type="String">
<sv:value>JaxrsRestContentPipeline</sv:value>
</sv:property>
</sv:node>

it is configured somewhere at
/hst:hst/hst:hosts/dev-internal/127.0.0.1/hst:root
(you may have more site nodes in here)

You can configure your endpoint using the essential tools:
http://localhost:8080/essentials/#/tools/restServices
The site's node is generated by rebuilding the project.
It is usually found in the repository at this location:
/hst:hst/hst:hosts/dev-localhost/localhost/hst:root
I hope it helps.

Related

Typo3 10.4.1 Extension Builder: No tables created for new extension

I have a TYPO3 10.4.1 installation (composer mode) on ubuntu 20.04 with php 7.4 and a mariadb database and installed the extension "Extension Builder" (v10-compatibility). When I create a new extension with domain model using the Extension Builder and save it there appears no errors, also when I add it to the composer.json and run the composer require command. However, there are no tables created in the database.
Does anyone has an idea where to start looking for the problem?
Thanks a lot in advance!
You can add the extension "typo3_console" (composer req helhum/typo3-console) and then add this section in your composer.json :
"scripts": {
"install-updateschema": [
"typo3cms database:updateschema"
]
}
This will automatically update database schema with a composer install/update.
More information here : https://docs.typo3.org/typo3cms/extensions/typo3_console/5.6.0/CommandReference/Index.html

Href migration from 1.x to 2.x?

I have the following href with php tag. It works on 1.x, i need to migrate to 2.x version.
test
how to change to work on 2.x version?
You should just be able to do this:
<a :href="'/report/message/compose/' + student.StudentID">test</a>
Can do it in this way.
<a v-bind:href=" '<?=base_url('report/message/compose/')?>' + student.StudentID">test</a>

I can't find my addons path (odoo 8)

I developed a new module and I want to add it to my odoo on the server but when I access to my files I don't find addons file in order to put the module. I tried a lot of paths but I didn't find it even my opt file is empty any suggestions or ideas please ? odoo is installed on ubuntu 14.0
I used to find my addons on opt/odoo/odoo
This code I added it just to be able to publish my question because I could not publish it without code
<record id="view_order_product_graph" model="ir.ui.view">
<field name="name">sale.report.graph</field>
<field name="model">sale.report</field>
<field name="arch" type="xml">
<graph string="Sales Analysis" type="pivot" stacked="True">
<field name="section_id" type="row"/>
<field name="date" interval="month" type="col"/>
<field name="price_total" type="measure"/>
</graph>
</field>
</record>
You can put your modules on the system where ever you want. What you have to know is, where to find the server config file. If you've installed Odoo by package installer, it should be in /etc/odoo/*.conf.
In this file you can add paths to the line addons_path=.... Save the config and restart the Odoo instance. Reload the Modules in Odoo and you will find the custom modules.
You can use Python interpreter:
>>> import openerp
>>> openerp.addons.__path__
['/usr/lib/python2.7/dist-packages/openerp/addons']
>>>

error in plugin JUCMNav eclipse

I am trying to add jUCMNav to eclipse, and I am getting this error:
Cannot complete the install because one or more required items could not be found.
Software being installed: jUCMNav: URN Editor (UCM and GRL) 6.0.0 (seg.jUCMNav.feature.group 6.0.0)
Missing requirement: jUCMNav 6.0.0 (seg.jUCMNav 6.0.0) requires 'bundle org.eclipse.e4.core.contexts 1.3.1' but it could not be found
Cannot satisfy dependency:
From: jUCMNav: URN Editor (UCM and GRL) 6.0.0 (seg.jUCMNav.feature.group 6.0.0)
To: seg.jUCMNav [6.0.0]
what should I do to complete the installation ? any help is much appreciated
PS: the link that I added for the installation is :
http://jucmnav.softwareengineering.ca/jucmnav/updatesite/
I had the same problem when i was using eclipse Indigo.
I took the latest version of eclipse and it worked fine.

What are the official mirrors of the Maven Central Repository?

Does anyone know if a list of known (and working) Maven Central Repository (http://repo1.maven.org/maven2) mirrors?
If not, what mirrors do you use when the central repository is down?
This is taken from #rvxnet's answer and an example of why link-only answer are not desirable. I've taken this from the 2015-05-20 WaybackMachine version of their link:
Official, but not browseable:
https://repo1.maven.org/maven2
Others:
https://maven.antelink.com/content/repositories/central/
Also, there are official instructions for configuring to use mirrors. Essentially, you add to you settings.xml the something like the following:
<mirrors>
<mirror>
<id>planetmirror.com</id>
<name>PlanetMirror Australia</name>
<url>http://downloads.planetmirror.com/pub/maven2</url>
<mirrorOf>central</mirrorOf>
</mirror>
</mirrors>
I just found this:
<mirrors>
<mirror>
<id>google-maven-central</id>
<name>Google Maven Central</name>
<url>https://maven-central.storage.googleapis.com/maven2/</url>
<mirrorOf>central</mirrorOf>
</mirror>
</mirrors>
That worked great for me
credit: Failed to get the server archetype by maven
From Using Mirrors for Repositories:
The official Maven 2 repository is at:
http://repo.maven.apache.org/maven2 hosted in the US, or
http://uk.maven.org/maven2 hosted in the UK.
A list of known mirrors is available in the Repository Metadata. These mirrors may not have the same contents and we don't support them in any way.
Also:
The size of the central repository is increasing steadily. To save us bandwidth and you time, mirroring the entire central repository is not allowed (doing so will get you automatically banned). Instead, we suggest you setup a repository manager as a proxy.
Here https://repo.maven.apache.org/maven2/.meta/repository-metadata.xml you can see the following list:
<mirrors>
<!--mirror>
<id>cica.es</id>
<url>http://ftp.cica.es/mirrors/maven2</url>
</mirror-->
<mirror>
<id>repo.exist.com</id>
<url>http://repo.exist.com/maven2</url>
</mirror>
<mirror>
<id>ibiblio.org</id>
<url>http://mirrors.ibiblio.org/pub/mirrors/maven2</url>
</mirror>
<mirror>
<id>ibiblio.net</id>
<url>http://www.ibiblio.net/pub/packages/maven2</url>
</mirror>
<!--mirror>
<id>mirror.netcologne.de</id>
<url>http://mirror.netcologne.de/maven2</url>
</mirror -->
<mirror>
<id>uk.maven.org</id>
<url>http://uk.maven.org/maven2</url>
</mirror>
</mirrors>
This worked for me!
<mirror>
<id>central-secure</id>
<url>https://repo.maven.apache.org/maven2/</url>
<mirrorOf>central</mirrorOf>
</mirror>