Thank you Tim, It really works with wget.
Best regards Evgeni On Tuesday, October 30, 2018 at 6:47:49 PM UTC+2, Tim Donohue wrote: > > Hi Evgeni, > > For the DSpace 7 REST API, the web interface is that "meaningful HTML" > page (HAL Browser) that you see. This HTML page lets you form/test out the > REST API requests from a web browser. > > However, if you want to see the actual JSON responses, then you should use > a tool like "wget". For example: > wget http://localhost:8080/spring-rest/api/core/communities > > For what it's worth, I do see that same 500 Response error on our demo > site if I put in: > https://dspace7.4science.it/dspace-spring-rest/api/core/communities > > However, that same URL works fine via "wget" and also works if I enter > that URL into the HAL Browser: > https://dspace7.4science.it/dspace-spring-rest/#https://dspace7.4science.it/dspace-spring-rest/api/core/communities > > > So, I think this 500 response might be a minor bug in our pre-DSpace 7 > codebase. But, it won't affect the performance as long as you are using the > Angular UI or HAL Browser or wget. > > - Tim > > On Tue, Oct 30, 2018 at 10:55 AM Evgeni Dimitrov <[email protected] > <javascript:>> wrote: > >> Thank you Tim, >> >> It seems the --base-href can be handled in the configuration of webpack >> with BaseHrefWebpackPlugin. Or meanwhile the index.html can be edited >> manually. >> >> But I see a problem with the java side as well. When I enter in the >> browser >> >> http://localhost:8080/spring-rest >> >> I am getting a meaningful html page describing the services. But this is >> not what the client can use. When I enter >> >> http://localhost:8080/spring-rest/api or >> >> http://localhost:8080/spring-rest/api/core/communities >> >> the message is >> >> This page isn’t working localhost is currently unable to handle this >> request. HTTP ERROR 500 >> >> And I don't see anything in the logs ... >> >> >> >> >> On Tuesday, October 30, 2018 at 5:06:18 PM UTC+2, Tim Donohue wrote: >> >>> Hi Evgeni, >>> >>> At this time, our Production mode build process is not fully worked out >>> for the Angular UI. One of the main reasons is that we do not *yet* >>> support the Angular CLI (which provides tools like the "ng build >>> --base-href" concept you are looking for). >>> >>> However, in the next few weeks, we will be upgrading the Angular UI to >>> Angular v6 and Angular CLI....so, that will be coming soon. >>> >>> In the meantime, if you want to try out / test out the early DSpace 7 >>> code, we recommend running the Angular UI in development mode, e.g. >>> >>> yarn start >>> (or yarn run watch) >>> >>> Then, you should be able to access the UI at http://localhost:3000/ >>> >>> For more info, see the README at: >>> https://github.com/DSpace/dspace-angular#quick-start >>> >>> As for running the REST API, it's build process is the same as the >>> DSpace 6 build process. It sounds like you already figured that out >>> though... mvn package , ant fresh_install (or update), and then deploy to >>> Tomcat. >>> >>> Additional info on getting started with DSpace 7 is in the early >>> training resources at >>> https://wiki.duraspace.org/display/DSPACE/DSpace+7+Working+Group#DSpace7WorkingGroup-TrainingResources >>> >>> We also have some early installation notes (constantly being updated) at >>> https://wiki.duraspace.org/display/DSPACE/DSpace+7+-+Angular+UI+Development#DSpace7-AngularUIDevelopment-Howtoinstalllocally >>> >>> >>> Let us know on this list if you are still hitting issues >>> >>> Tim >>> >>> >>> On Tue, Oct 30, 2018 at 5:10 AM Evgeni Dimitrov <[email protected]> >>> wrote: >>> >> I mean - somewhere - for yarn or webpack - it should be possible to set >>>> something similar to >>>> ng build --base-href=/dist >>>> or >>>> ng build --base-href=/angui >>>> >>>> >>>> On Monday, October 29, 2018 at 9:36:50 PM UTC+2, Evgeni Dimitrov wrote: >>>>> >>>>> I want to start it in Tomcat. >>>>> 1. I downloaded DSpace-master.zip and dspace-angular-master.zip from >>>>> github >>>>> 2. I built the dspace part as usual - maven, ant and deployed to >>>>> Tomcat/webapps >>>>> 3. For the angular part I did: >>>>> >>>>> yarn run global >>>>> yarn install >>>>> yarn run build:prod >>>>> >>>>> Before that I changed (perhaps wrongly) in environment.dev.js and >>>>> environment.prod.js >>>>> >>>>> // Angular Universal server settings. >>>>> ui: { >>>>> ssl: false, >>>>> host: 'localhost', >>>>> port: 8080, >>>>> // NOTE: Space is capitalized because 'namespace' is a reserved >>>>> string in TypeScript >>>>> nameSpace: '/dist' >>>>> }, >>>>> // The REST API server settings. >>>>> rest: { >>>>> ssl: true, >>>>> host: 'localhost', >>>>> port: 8080, >>>>> // NOTE: Space is capitalized because 'namespace' is a reserved >>>>> string in TypeScript >>>>> nameSpace: '/spring-rest' >>>>> }, >>>>> >>>>> 4. I started Tomcat and tried http://localhost:8080/dist >>>>> The message was that a file is not found at localhost:8080/<somefile> >>>>> >>>>> Any suggestions what should be done differently? >>>>> >>>>> >>>>> >>>>> >>>>> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=icon> >>>>> Virus-free. >>>>> www.avast.com >>>>> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=link> >>>>> >>>>> <#CACKSJ9P0Kz1hfUu2KjujEsi_CK_3rwjvk3kohMVo1b6-MNzNWg@mail.gmail.com_m_-2086316663435886494_CACKSJ9N1y2Y=kndWS9Dc1BwG2w=LBPqxv2yKr0pMZjpPuKg2fQ@mail.gmail.com_m_-6379266036871596271_m_-7636643062708121379_CAJc2bOyvbN0rjPUa1UBiw68YUY_+JbA92UWq741Og5JvbLQQKA@mail.gmail.com_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> >>>>> >>>> -- >>>> All messages to this mailing list should adhere to the DuraSpace Code >>>> of Conduct: https://duraspace.org/about/policies/code-of-conduct/ >>>> --- >>>> You received this message because you are subscribed to the Google >>>> Groups "DSpace Technical Support" group. >>>> >>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to [email protected]. >>>> To post to this group, send email to [email protected]. >>> >>> >>>> Visit this group at https://groups.google.com/group/dspace-tech. >>>> For more options, visit https://groups.google.com/d/optout. >>>> >>> -- >>> Tim Donohue >>> Technical Lead for DSpace & DSpaceDirect >>> DuraSpace.org | DSpace.org | DSpaceDirect.org >>> >> -- >> All messages to this mailing list should adhere to the DuraSpace Code of >> Conduct: https://duraspace.org/about/policies/code-of-conduct/ >> --- >> You received this message because you are subscribed to the Google Groups >> "DSpace Technical Support" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> To post to this group, send email to [email protected] >> <javascript:>. >> Visit this group at https://groups.google.com/group/dspace-tech. >> For more options, visit https://groups.google.com/d/optout. >> > -- > Tim Donohue > Technical Lead for DSpace & DSpaceDirect > DuraSpace.org | DSpace.org | DSpaceDirect.org > -- All messages to this mailing list should adhere to the DuraSpace Code of Conduct: https://duraspace.org/about/policies/code-of-conduct/ --- You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/dspace-tech. For more options, visit https://groups.google.com/d/optout.
