Re: [dspace-tech] REST Interface Sample App on Rails

2016-09-28 Thread Bruno Nocera Zanette
Hey folks,
I'm proud to announce that the interface is complete. Maybe there are some
few tweaks to be made, but overall it implements everything possible
(besides policies CRUD operations).

https://drcgem-sample-interface.herokuapp.com

Updates:
- Added a welcome page that shows an info and the site hierarchy;
- Added CRUD operations for Schemas and MetadataFields
- Fixed some bugs
- Fixed application style

Everything seems to be working very fine with Dspace6 Demo instance
(everything but Schema Creation/update because a REST API bug that have
been already fixed but not applied to demo instance).

This is not meant to be an official DSpace's REST interface but i think
it's a good example of what it can do and a good start point for other
projects, that is for me the greatest advantage of REST API. IMO, depending
on the situation, creating a simple app that implements a custom interface
is a better solution than customizing the whole interface. And to use the
default interface only internally to do admin stuff.

The 'dspace-rest-client' rubygem will be update in the next few days,
because we're still working to make both API verions 5 and 6 to work
alongside each other,  but for now you may use my repository's version (
https://gitlab.c3sl.ufpr.br/bnzanette/dspace-rest-client).

Cheers!


Em qua, 14 de set de 2016 às 20:05, Bruno Nocera Zanette <
brunonzane...@gmail.com> escreveu:

> I've updated the app with several fixes, including Item edit, Table style
> and adding buttons to create an object directly inside some other object.
> The only thing that is still missing is adding/removing metadata fields to
> item's form. For now there are only title and author fields for new items
> and all existing metadata fields for old items. I'll try to implement this
> feature this week.
>
> Besides that, everything else are working. This includes
> Create/Edit/Remove all kinds of objects, objects' table pagination,
> login/logout.
>
> If you find any bug, please let me know.
>
> Em ter, 13 de set de 2016 às 01:18, Bruno Nocera Zanette <
> brunonzane...@gmail.com> escreveu:
>
>> Today i've fixed the authentication problem and i took the oportunity to
>> also implement a login form. It seems to be working fine. I had to make
>> some changes to the Gem and removed some code of Dspace5 auth, but later
>> i'll try to merge them into a single version.
>>
>> Em seg, 12 de set de 2016 às 12:16, Bruno Nocera Zanette <
>> brunonzane...@gmail.com> escreveu:
>>
>>> Thanks, Ilja!
>>> I took a look at the doc before but i didn't notice this change. I've
>>> already updated the bash scripts to the new method and i'll update the Gem
>>> later this week.
>>>
>>> Em qua, 7 de set de 2016 às 02:36, Ilja Sidoroff <ilja.sidor...@uef.fi>
>>> escreveu:
>>>
>>>> The /rest/login api changed a bit in version 6, but now the docs are
>>>> updated: https://wiki.duraspace.org/display/DSDOC6x/REST+API
>>>>
>>>> br,
>>>>
>>>> Ilja Sidoroff
>>>> University of Eastern Finland
>>>> ____________
>>>> From: dspace-tech@googlegroups.com <dspace-tech@googlegroups.com> on
>>>> behalf of Bruno Nocera Zanette <brunonzane...@gmail.com>
>>>> Sent: Tuesday, September 6, 2016 8:12:45 PM
>>>> To: DSpace Technical Support
>>>> Subject: [dspace-tech] REST Interface Sample App on Rails
>>>>
>>>> Hey all!!
>>>>
>>>> I've been writting, on my spare time, a REST interface sample app on
>>>> Ruby on Rails and it finally got to a point where i can show it to you. It
>>>> is fully based on "dspace-rest-client" ruby gem:
>>>>
>>>> The link to the app is:
>>>> https://drcgem-sample-interface.herokuapp.com/
>>>>
>>>> The code can be found here:
>>>> https://gitlab.c3sl.ufpr.br/bnzanette/DspaceRestSample
>>>> (P.s.: I plan to move it to github, but for now this is the only
>>>> source. It's completely safe and hosted by a research group on the
>>>> University where i study.).
>>>>
>>>> I decided to keep it as simple as possible so that other people can use
>>>> it as basis for other apps. Like a "live documentation".
>>>>
>>>> There are somethings that i still have to do to make it more usable,
>>>> like adding links to add collections/items/bitstreams on a
>>>> community/collection/item page, so that you don't need to always choose a
>>>> parent object when creating a new object. 

Re: [dspace-tech] REST Interface Sample App on Rails

2016-09-14 Thread Bruno Nocera Zanette
I've updated the app with several fixes, including Item edit, Table style
and adding buttons to create an object directly inside some other object.
The only thing that is still missing is adding/removing metadata fields to
item's form. For now there are only title and author fields for new items
and all existing metadata fields for old items. I'll try to implement this
feature this week.

Besides that, everything else are working. This includes Create/Edit/Remove
all kinds of objects, objects' table pagination, login/logout.

If you find any bug, please let me know.

Em ter, 13 de set de 2016 às 01:18, Bruno Nocera Zanette <
brunonzane...@gmail.com> escreveu:

> Today i've fixed the authentication problem and i took the oportunity to
> also implement a login form. It seems to be working fine. I had to make
> some changes to the Gem and removed some code of Dspace5 auth, but later
> i'll try to merge them into a single version.
>
> Em seg, 12 de set de 2016 às 12:16, Bruno Nocera Zanette <
> brunonzane...@gmail.com> escreveu:
>
>> Thanks, Ilja!
>> I took a look at the doc before but i didn't notice this change. I've
>> already updated the bash scripts to the new method and i'll update the Gem
>> later this week.
>>
>> Em qua, 7 de set de 2016 às 02:36, Ilja Sidoroff <ilja.sidor...@uef.fi>
>> escreveu:
>>
>>> The /rest/login api changed a bit in version 6, but now the docs are
>>> updated: https://wiki.duraspace.org/display/DSDOC6x/REST+API
>>>
>>> br,
>>>
>>> Ilja Sidoroff
>>> University of Eastern Finland
>>> 
>>> From: dspace-tech@googlegroups.com <dspace-tech@googlegroups.com> on
>>> behalf of Bruno Nocera Zanette <brunonzane...@gmail.com>
>>> Sent: Tuesday, September 6, 2016 8:12:45 PM
>>> To: DSpace Technical Support
>>> Subject: [dspace-tech] REST Interface Sample App on Rails
>>>
>>> Hey all!!
>>>
>>> I've been writting, on my spare time, a REST interface sample app on
>>> Ruby on Rails and it finally got to a point where i can show it to you. It
>>> is fully based on "dspace-rest-client" ruby gem:
>>>
>>> The link to the app is:
>>> https://drcgem-sample-interface.herokuapp.com/
>>>
>>> The code can be found here:
>>> https://gitlab.c3sl.ufpr.br/bnzanette/DspaceRestSample
>>> (P.s.: I plan to move it to github, but for now this is the only source.
>>> It's completely safe and hosted by a research group on the University where
>>> i study.).
>>>
>>> I decided to keep it as simple as possible so that other people can use
>>> it as basis for other apps. Like a "live documentation".
>>>
>>> There are somethings that i still have to do to make it more usable,
>>> like adding links to add collections/items/bitstreams on a
>>> community/collection/item page, so that you don't need to always choose a
>>> parent object when creating a new object. I also need to add a footer and
>>> an "about page" to add "powered by..." infos and stuff like that.
>>>
>>> However, for some reason, Dspace's REST login isn't working on
>>> demo.dspace.org<http://demo.dspace.org>, so the app crashes everytime
>>> the buttons to save/edit are clicked. On my tests on a 5.x version
>>> everything works fine.
>>>
>>> Feel free to do whatever you want with it!! Hope you like it and find
>>> some utility for it.
>>> Cheers!!
>>> --
>>> Bruno Nocera Zanette
>>> +55 41 9992-2508
>>>
>>> --
>>> 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 dspace-tech+unsubscr...@googlegroups.com>> dspace-tech+unsubscr...@googlegroups.com>.
>>> To post to this group, send email to dspace-tech@googlegroups.com
>>> <mailto:dspace-tech@googlegroups.com>.
>>> Visit this group at https://groups.google.com/group/dspace-tech.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
>> Bruno Nocera Zanette
>> +55 41 9992-2508
>>
> --
> Bruno Nocera Zanette
> +55 41 9992-2508
>
-- 
Bruno Nocera Zanette
+55 41 9992-2508

-- 
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 dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.


Re: [dspace-tech] REST Interface Sample App on Rails

2016-09-12 Thread Bruno Nocera Zanette
Today i've fixed the authentication problem and i took the oportunity to
also implement a login form. It seems to be working fine. I had to make
some changes to the Gem and removed some code of Dspace5 auth, but later
i'll try to merge them into a single version.

Em seg, 12 de set de 2016 às 12:16, Bruno Nocera Zanette <
brunonzane...@gmail.com> escreveu:

> Thanks, Ilja!
> I took a look at the doc before but i didn't notice this change. I've
> already updated the bash scripts to the new method and i'll update the Gem
> later this week.
>
> Em qua, 7 de set de 2016 às 02:36, Ilja Sidoroff <ilja.sidor...@uef.fi>
> escreveu:
>
>> The /rest/login api changed a bit in version 6, but now the docs are
>> updated: https://wiki.duraspace.org/display/DSDOC6x/REST+API
>>
>> br,
>>
>> Ilja Sidoroff
>> University of Eastern Finland
>> 
>> From: dspace-tech@googlegroups.com <dspace-tech@googlegroups.com> on
>> behalf of Bruno Nocera Zanette <brunonzane...@gmail.com>
>> Sent: Tuesday, September 6, 2016 8:12:45 PM
>> To: DSpace Technical Support
>> Subject: [dspace-tech] REST Interface Sample App on Rails
>>
>> Hey all!!
>>
>> I've been writting, on my spare time, a REST interface sample app on Ruby
>> on Rails and it finally got to a point where i can show it to you. It is
>> fully based on "dspace-rest-client" ruby gem:
>>
>> The link to the app is:
>> https://drcgem-sample-interface.herokuapp.com/
>>
>> The code can be found here:
>> https://gitlab.c3sl.ufpr.br/bnzanette/DspaceRestSample
>> (P.s.: I plan to move it to github, but for now this is the only source.
>> It's completely safe and hosted by a research group on the University where
>> i study.).
>>
>> I decided to keep it as simple as possible so that other people can use
>> it as basis for other apps. Like a "live documentation".
>>
>> There are somethings that i still have to do to make it more usable, like
>> adding links to add collections/items/bitstreams on a
>> community/collection/item page, so that you don't need to always choose a
>> parent object when creating a new object. I also need to add a footer and
>> an "about page" to add "powered by..." infos and stuff like that.
>>
>> However, for some reason, Dspace's REST login isn't working on
>> demo.dspace.org<http://demo.dspace.org>, so the app crashes everytime
>> the buttons to save/edit are clicked. On my tests on a 5.x version
>> everything works fine.
>>
>> Feel free to do whatever you want with it!! Hope you like it and find
>> some utility for it.
>> Cheers!!
>> --
>> Bruno Nocera Zanette
>> +55 41 9992-2508
>>
>> --
>> 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 dspace-tech+unsubscr...@googlegroups.com> dspace-tech+unsubscr...@googlegroups.com>.
>> To post to this group, send email to dspace-tech@googlegroups.com> dspace-tech@googlegroups.com>.
>> Visit this group at https://groups.google.com/group/dspace-tech.
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> Bruno Nocera Zanette
> +55 41 9992-2508
>
-- 
Bruno Nocera Zanette
+55 41 9992-2508

-- 
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 dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.


Re: [dspace-tech] REST Interface Sample App on Rails

2016-09-12 Thread Bruno Nocera Zanette
Thanks, Ilja!
I took a look at the doc before but i didn't notice this change. I've
already updated the bash scripts to the new method and i'll update the Gem
later this week.

Em qua, 7 de set de 2016 às 02:36, Ilja Sidoroff <ilja.sidor...@uef.fi>
escreveu:

> The /rest/login api changed a bit in version 6, but now the docs are
> updated: https://wiki.duraspace.org/display/DSDOC6x/REST+API
>
> br,
>
> Ilja Sidoroff
> University of Eastern Finland
> 
> From: dspace-tech@googlegroups.com <dspace-tech@googlegroups.com> on
> behalf of Bruno Nocera Zanette <brunonzane...@gmail.com>
> Sent: Tuesday, September 6, 2016 8:12:45 PM
> To: DSpace Technical Support
> Subject: [dspace-tech] REST Interface Sample App on Rails
>
> Hey all!!
>
> I've been writting, on my spare time, a REST interface sample app on Ruby
> on Rails and it finally got to a point where i can show it to you. It is
> fully based on "dspace-rest-client" ruby gem:
>
> The link to the app is:
> https://drcgem-sample-interface.herokuapp.com/
>
> The code can be found here:
> https://gitlab.c3sl.ufpr.br/bnzanette/DspaceRestSample
> (P.s.: I plan to move it to github, but for now this is the only source.
> It's completely safe and hosted by a research group on the University where
> i study.).
>
> I decided to keep it as simple as possible so that other people can use it
> as basis for other apps. Like a "live documentation".
>
> There are somethings that i still have to do to make it more usable, like
> adding links to add collections/items/bitstreams on a
> community/collection/item page, so that you don't need to always choose a
> parent object when creating a new object. I also need to add a footer and
> an "about page" to add "powered by..." infos and stuff like that.
>
> However, for some reason, Dspace's REST login isn't working on
> demo.dspace.org<http://demo.dspace.org>, so the app crashes everytime the
> buttons to save/edit are clicked. On my tests on a 5.x version everything
> works fine.
>
> Feel free to do whatever you want with it!! Hope you like it and find some
> utility for it.
> Cheers!!
> --
> Bruno Nocera Zanette
> +55 41 9992-2508
>
> --
> 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 dspace-tech+unsubscr...@googlegroups.com dspace-tech+unsubscr...@googlegroups.com>.
> To post to this group, send email to dspace-tech@googlegroups.com dspace-tech@googlegroups.com>.
> Visit this group at https://groups.google.com/group/dspace-tech.
> For more options, visit https://groups.google.com/d/optout.
>
-- 
Bruno Nocera Zanette
+55 41 9992-2508

-- 
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 dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.


Re: [dspace-tech] REST Interface Sample App on Rails

2016-09-06 Thread Ilja Sidoroff
The /rest/login api changed a bit in version 6, but now the docs are updated: 
https://wiki.duraspace.org/display/DSDOC6x/REST+API

br,

Ilja Sidoroff
University of Eastern Finland

From: dspace-tech@googlegroups.com <dspace-tech@googlegroups.com> on behalf of 
Bruno Nocera Zanette <brunonzane...@gmail.com>
Sent: Tuesday, September 6, 2016 8:12:45 PM
To: DSpace Technical Support
Subject: [dspace-tech] REST Interface Sample App on Rails

Hey all!!

I've been writting, on my spare time, a REST interface sample app on Ruby on 
Rails and it finally got to a point where i can show it to you. It is fully 
based on "dspace-rest-client" ruby gem:

The link to the app is:
https://drcgem-sample-interface.herokuapp.com/

The code can be found here:
https://gitlab.c3sl.ufpr.br/bnzanette/DspaceRestSample
(P.s.: I plan to move it to github, but for now this is the only source. It's 
completely safe and hosted by a research group on the University where i 
study.).

I decided to keep it as simple as possible so that other people can use it as 
basis for other apps. Like a "live documentation".

There are somethings that i still have to do to make it more usable, like 
adding links to add collections/items/bitstreams on a community/collection/item 
page, so that you don't need to always choose a parent object when creating a 
new object. I also need to add a footer and an "about page" to add "powered 
by..." infos and stuff like that.

However, for some reason, Dspace's REST login isn't working on 
demo.dspace.org<http://demo.dspace.org>, so the app crashes everytime the 
buttons to save/edit are clicked. On my tests on a 5.x version everything works 
fine.

Feel free to do whatever you want with it!! Hope you like it and find some 
utility for it.
Cheers!!
--
Bruno Nocera Zanette
+55 41 9992-2508

--
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 
dspace-tech+unsubscr...@googlegroups.com<mailto:dspace-tech+unsubscr...@googlegroups.com>.
To post to this group, send email to 
dspace-tech@googlegroups.com<mailto:dspace-tech@googlegroups.com>.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.

-- 
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 dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.


[dspace-tech] REST Interface Sample App on Rails

2016-09-06 Thread Bruno Nocera Zanette
Hey all!!

I've been writting, on my spare time, a REST interface sample app on Ruby
on Rails and it finally got to a point where i can show it to you. It is
fully based on "dspace-rest-client" ruby gem:

The link to the app is:
https://drcgem-sample-interface.herokuapp.com/

The code can be found here:
https://gitlab.c3sl.ufpr.br/bnzanette/DspaceRestSample
(P.s.: I plan to move it to github, but for now this is the only source.
It's completely safe and hosted by a research group on the University where
i study.).

I decided to keep it as simple as possible so that other people can use it
as basis for other apps. Like a "live documentation".

There are somethings that i still have to do to make it more usable, like
adding links to add collections/items/bitstreams on a
community/collection/item page, so that you don't need to always choose a
parent object when creating a new object. I also need to add a footer and
an "about page" to add "powered by..." infos and stuff like that.

However, for some reason, Dspace's REST login isn't working on
demo.dspace.org, so the app crashes everytime the buttons to save/edit are
clicked. On my tests on a 5.x version everything works fine.

Feel free to do whatever you want with it!! Hope you like it and find some
utility for it.
Cheers!!
-- 
Bruno Nocera Zanette
+55 41 9992-2508

-- 
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 dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.