Re: [ERRest] - Manually generating rest URL

2020-04-16 Thread Dev WO via Webobjects-dev
I actually did like ERRest, but directly in my DirectAction public WOActionResults statusAsJsonAction() { //assuming dict exists ERXRestRequestNode restResponseNode = null; ERXRouteResults results = null; try

Re: [ERRest] - Manually generating rest URL

2020-04-16 Thread Jesse Tayler via Webobjects-dev
ually trying to do, it is solved. > I picked up just what was needed to generate the Json response in my > DirectAction class so I could keep what I was using the generate the url. > > Thanks anyway, it gave me some time to look at ERRest:) > > Xavier > > > >

Re: [ERRest] - Manually generating rest URL

2020-04-16 Thread Dev WO via Webobjects-dev
gave me some time to look at ERRest:) Xavier > On 16 Apr 2020, at 20:31, Dev WO via Webobjects-dev > wrote: > > I was just looking at making a DirectAction to get a NSDict as a json output > actually. > > Searching for that it looked like ERRest was the answer, but m

Re: [ERRest] - Manually generating rest URL

2020-04-16 Thread Dev WO via Webobjects-dev
I was just looking at making a DirectAction to get a NSDict as a json output actually. Searching for that it looked like ERRest was the answer, but maybe I should just “borrow” the method that actually generate the son response and stick with the regular DirectAction… Xavier > On 16

Re: [ERRest] - Manually generating rest URL

2020-04-16 Thread Jesse Tayler via Webobjects-dev
=30.0&lat=40.7450127906344&lon=-73.9771424224899 or http://planaby.com/person/1.html Is just a simple ERRest route url translated by apache so it looks shorter in production Maybe that helps > On Apr 16, 2020, at 1:45 PM, Dev WO wrote: > > Hi Jesse, > > Thanks for

Re: [ERRest] - Manually generating rest URL

2020-04-16 Thread Dev WO via Webobjects-dev
, I think you’ll want this API > > String link = ERXRouteUrlUtils.actionUrlForEntity(context, entityName, > entityID, action, format, queryParameters, secure, includeSessionID); > > > >> On Apr 16, 2020, at 12:42 PM, Dev WO via Webobjects-dev >> wrote: >> >> Hi every

Re: [ERRest] - Manually generating rest URL

2020-04-16 Thread Jesse Tayler via Webobjects-dev
gt; > Hi everyone, > > I’m currently trying a few things with ERRest. > In a stateless component, I need to create some urls manually (they will be > used inside a script element). > When I was calling my DirectAction class, I was just doing this: > > context().generateRela

[ERRest] - Manually generating rest URL

2020-04-16 Thread Dev WO via Webobjects-dev
Hi everyone, I’m currently trying a few things with ERRest. In a stateless component, I need to create some urls manually (they will be used inside a script element). When I was calling my DirectAction class, I was just doing this: context().generateRelativeURLs

Re: ERRest and apache Commons Lang

2019-03-27 Thread Johann Werner
Hi Samuel, as it is a direct dependency of json-lib-2.4-jdk15.jar used by ERRest it would probably be the best to add it to ERRest instead of Wonder-wide ERJars. Usage of commons-lang3 instead of the old commons-lang should be encouraged. jw > Am 27.03.2019 um 00:02 schrieb Samuel Pellet

ERRest and apache Commons Lang

2019-03-26 Thread Samuel Pelletier
Hi, The current Wonder ERRest fail to produce json data with a NoClassDefFoundError: org/apache/commons/lang/exception/NestableRuntimeException referenced by JsonConfig, an old json library. I suspect this problem is limited to ant users like me. This class was part of common-lang.jar which

ERRest without EO

2019-02-04 Thread André Rothe
Hi, I have built a simple project, with ERRest. I don't use a database backend at the moment. The data manages a datastore (Singleton with a List). As I understand, ERRest can be used also without EO, so I have set a Delegator class. The Delegator's primaryKeyForObject() will be

Re: ERRest should return own content type

2019-02-01 Thread André Rothe
Hi Samuel, Yes, I have to change it. I try to create a REST service with WebObjects, which should play with an existing client. This client needs special formatted XML and a content-type application/vnd.de.uni-leipzig.zks.TrialService.v1+xml. So my next step would be an own ERXRestFormat. It'

Re: ERRest should return own content type

2019-01-31 Thread Samuel Pelletier
; Hi, > > I'm playing around with ERRest. I have some routes, which return data as XML. > The content-type of the HTTP response is always text/xml, I try to change it > to application/xml, but it seems not to work with setHeader() on the > WOActionResult.generateResponse().

ERRest should return own content type

2019-01-31 Thread André Rothe
Hi, I'm playing around with ERRest. I have some routes, which return data as XML. The content-type of the HTTP response is always text/xml, I try to change it to application/xml, but it seems not to work with setHeader() on the WOActionResult.generateResponse(). How I can set the h

Re: FileUpload with ERRest

2018-03-14 Thread André Rothe
return errorResponse(HTTP_UNSUPPORTED_MEDIA_TYPE); >> } >> >> // TODO: get some form parameters and values, >> // store the file content into the temp folder, >> // process the file >> >> // TODO: maybe I can return the newly created EO i

Re: FileUpload with ERRest

2018-03-13 Thread André Rothe
} > > // TODO: get some form parameters and values, > // store the file content into the temp folder, > // process the file > > // TODO: maybe I can return the newly created EO id? > > return response(WOResponse.HTTP_STATUS_OK); > } > }

Re: FileUpload with ERRest

2018-03-13 Thread André Rothe
ré Rothe wrote: > Hi, > > Is it possible to use ERRest for a file upload with multipart-form-data? > I try to upload a file to the server to create an instance of an EO > (instead of the createAction()). > > Thank you > André > > _

FileUpload with ERRest

2018-03-13 Thread André Rothe
Hi, Is it possible to use ERRest for a file upload with multipart-form-data? I try to upload a file to the server to create an instance of an EO (instead of the createAction()). Thank you André ___ Do not post admin requests to the list. They will be

Re: Options for all routes on ERRest

2017-01-24 Thread Matthew Ness
Hi Luiz, Can you identify what is going on when it is working and what is going on when it is not? Take a look at ERXRouteController and its optionsAction() method. I typically have a default route controller class (extends ERXDefaultRouteController) for all of my controllers in my applicat

Options for all routes on ERRest

2017-01-24 Thread Luiz Alfredo Carrara Bertusso
I`ve been setting the option method for all possible routes on the API I`m working on, but sometimes it works and sometimes it doesn't. Nowadays I have to do this for every route: restRequestHandler.addRoute(new ERXRoute(MyEntity.ENTITY_NAME, "/MyRoute", ERXRoute.Method.O

Re: Custom Fields for ERRest

2017-01-12 Thread Luiz Alfredo Carrara Bertusso
are that your clients are now looking for the 'typeValue' key, > not 'type' and then 'value'. And check for NPE in typeValue(). > > Regards, > > Matt. > > > -- > Matt > http://logicsquad.net > > > > On Thu, Jan 12, 2017, at 02:36 AM,

Re: Custom Fields for ERRest

2017-01-11 Thread Matthew Ness
> > Matt. > > > -- > Matt > http://logicsquad.net > > > > On Thu, Jan 12, 2017, at 02:36 AM, Samuel Pelletier wrote: >> Hi, >> >> The default ERRest behaviour is to uses the model as entity format. I >> do not know a way to uses the

Re: Custom Fields for ERRest

2017-01-11 Thread Matthew Ness
check for NPE in typeValue(). Regards, Matt. -- Matt http://logicsquad.net On Thu, Jan 12, 2017, at 02:36 AM, Samuel Pelletier wrote: > Hi, > > The default ERRest behaviour is to uses the model as entity format. I > do not know a way to uses the built in classes

Re: Custom Fields for ERRest

2017-01-11 Thread Samuel Pelletier
Hi, The default ERRest behaviour is to uses the model as entity format. I do not know a way to uses the built in classes to specify a custom attribute like this. But you can always use NSArray and NSDictionnary to construct your response like this: NSMutableArray> results =

Custom Fields for ERRest

2017-01-11 Thread Luiz Alfredo Carrara Bertusso
Hello, everyone. I've been using ERRrest for developing, I`d like knowing if it's possible to use custom fields instead of the default ones. For example, on my model, there's a relationship named type, actually, I have the following response: phones": [ { "countryCode": "1", "areaCo

Re: ERRest - Proper handling of error conditions

2016-12-23 Thread Gino Pacitti
e.com >> de la part de >> Altera WO Team >> Envoyé : 23 décembre 2016 07:13:45 >> À : WebObjects-Dev Mailing List List >> Objet : ERRest - Proper handling of error conditions >> >> Hi List, >> >> I found myself a lot trying to elegantly han

Re: ERRest - Proper handling of error conditions

2016-12-23 Thread Altera WO Team
uest) with the JSON in the > body. > De : webobjects-dev-bounces+probert=macti...@lists.apple.com > de la part de > Altera WO Team > Envoyé : 23 décembre 2016 07:13:45 > À : WebObjects-Dev Mailing List List > Objet : ERRest - Proper handling of error conditions >

RE: ERRest - Proper handling of error conditions

2016-12-23 Thread Pascal Robert
décembre 2016 07:13:45 À : WebObjects-Dev Mailing List List Objet : ERRest - Proper handling of error conditions Hi List, I found myself a lot trying to elegantly handle EO creation errors when using ERRest as backend for (mostly) iOS applications using JSON. For example, imagine i have an

ERRest - Proper handling of error conditions

2016-12-23 Thread Altera WO Team
Hi List, I found myself a lot trying to elegantly handle EO creation errors when using ERRest as backend for (mostly) iOS applications using JSON. For example, imagine i have an entity called User and for the user the emailAddress field is unique in the DB, so I won't be able to creat

Re: Using ERRest to update object with compound key

2016-08-19 Thread Matthew Ness
g to use ERRest to update an object that has > compound key but I've not found a way to do it, is it possible? > For example a have a contact that has an address ant his address has a > a type named Work with the keys 55 and 2. I`d like to update it, but > due to the compound k

Using ERRest to update object with compound key

2016-08-19 Thread Luiz Alfredo Carrara Bertusso
Hello, I've been trying to use ERRest to update an object that has compound key but I've not found a way to do it, is it possible? For example a have a contact that has an address ant his address has a a type named Work with the keys 55 and 2. I`d like to update it, but due to the compo

Re: Map an Object in ERRest

2016-06-11 Thread Samuel Pelletier
eyFilter.filterWithAllRecursive()); > > This will returns all attributes and relationships of customer, adjust the > filter if required. > > Samuel > > >> Le 8 juin 2016 à 16:22, Rodrigo de Sousa > <mailto:rdsous...@gmail.com>> a écrit : >> >>

Re: Map an Object in ERRest

2016-06-09 Thread Rodrigo de Sousa
rWithAllRecursive()); > > This will returns all attributes and relationships of customer, adjust the > filter if required. > > Samuel > > > Le 8 juin 2016 à 16:22, Rodrigo de Sousa a écrit : > > Hello, > > I am using the ERRest in my project and I am having a pr

Re: Map an Object in ERRest

2016-06-08 Thread Samuel Pelletier
t.customer(), "customer"); return response(result, ERXKeyFilter.filterWithAllRecursive()); This will returns all attributes and relationships of customer, adjust the filter if required. Samuel > Le 8 juin 2016 à 16:22, Rodrigo de Sousa a écrit : > > Hello, > > I am using the E

Map an Object in ERRest

2016-06-08 Thread Rodrigo de Sousa
Hello, I am using the ERRest in my project and I am having a problem. I changed some attributes to a new relationship, but I want to discover if there is a way to not change my old API request. For example: Old request: > { > "customer": { > "e

Re: ERRest

2016-04-20 Thread Luiz Alfredo Carrara Bertusso
yFilter filter = ERXKeyFilter.filterWithAttributes(); > filter.exclude(Class.Nick, other keys); > > return response(objectNSArray, filter); > > Cheers! > > > On 4/15/16 4:10 AM, Luiz Alfredo Carrara Bertusso wrote: > > Hi, I`ve been developing using WebObjects for 2 m

Re: ERRest

2016-04-14 Thread Matthew Ness
ther keys); >> >> return response(objectNSArray, filter); >> >> Cheers! >> >> >> On 4/15/16 4:10 AM, Luiz Alfredo Carrara Bertusso wrote: >>> Hi, I`ve been developing using WebObjects for 2 months and now i˜m >>> working at a Rest API usi

Re: ERRest

2016-04-14 Thread Flavio Donadio
er.exclude(Class.Nick, other keys); > > return response(objectNSArray, filter); > > Cheers! > > On 4/15/16 4:10 AM, Luiz Alfredo Carrara Bertusso wrote: >> Hi, I`ve been developing using WebObjects for 2 months and now i˜m working >> at a Rest API using ERRest framew

Re: ERRest

2016-04-14 Thread Troy Lumasag
i˜m working at a Rest API using ERRest framework. I have a doubt about the possibility of not returning null values when a certain atribute of a class is null. For example, if an atribute is not filled, i`d like hiding it instead of returning null. I`ve taken a look at the properties "nilKey

ERRest

2016-04-14 Thread Luiz Alfredo Carrara Bertusso
Hi, I`ve been developing using WebObjects for 2 months and now i˜m working at a Rest API using ERRest framework. I have a doubt about the possibility of not returning null values when a certain atribute of a class is null. For example, if an atribute is not filled, i`d like hiding it instead of

Re: ERRest response header and encoding

2015-12-23 Thread Altera WO Team
> jw > > >> Am 22.12.2015 um 19:05 schrieb Altera WO Team : >> >> Hello list, >> >> i'm accessing a WOnder application that exposes some stuff via ERRest. >> The requesting application is also a WOnder application and to make the >> requ

Re: ERRest response header and encoding

2015-12-23 Thread Johann Werner
poses some stuff via ERRest. > The requesting application is also a WOnder application and to make the > requests it uses the apache httpclient that is shipped in ERJars. > > I'm requesting data in json format which by specs should be UTF-8 and ERRest > encodes everything in UTF-8

ERRest response header and encoding

2015-12-22 Thread Altera WO Team
Hello list, i'm accessing a WOnder application that exposes some stuff via ERRest. The requesting application is also a WOnder application and to make the requests it uses the apache httpclient that is shipped in ERJars. I'm requesting data in json format which by specs should be

Re: ERRest using Ember

2015-10-13 Thread Michael Kondratov
I did not see an easy and clean way to integrate it into ERRest. Instead we've created a utility class. I will post it to the mailing list. If you find it useful we can submit it to Wonder. Michael Sent from my iPhone > On Oct 13, 2015, at 5:01 AM, Frank Stock wrote: > >

Re: ERRest using Ember

2015-10-13 Thread Michael Kondratov
Why isn't that in ERRest? > What do you do when you use: > public WOActionResults indexAction() { > if (isSchemaRequest()) { > return schemaResponse(showFilter()); > } > ERXRestFetchSpecification fet

Re: ERRest using Ember

2015-10-13 Thread Frank Stock
Thanks Michael, Where do you put the code? Why isn't that in ERRest? What do you do when you use: public WOActionResults indexAction() { if (isSchemaRequest()) { return schemaResponse(showF

Re: ERRest using Ember

2015-10-12 Thread Michael Kondratov
public static JSONObject emptyArray(String entityName) throws JSONException { JSONObject result = new JSONObject(); JSONArray array = new JSONArray(); result.put(pluralEntityName(entityName), array); return result; }

Re: ERRest using Ember

2015-10-12 Thread Michael Kondratov
Frank, We have a quick solution for that. I will post a code snippet. Michael Sent from my iPhone > On Oct 12, 2015, at 5:06 PM, Frank Stock wrote: > > Hi, > > > When using Ember as format, If the indexAction has to return an empty array I > always get: net.sf.json.JSONException: JSON

ERRest using Ember

2015-10-12 Thread Frank Stock
Hi, When using Ember as format, If the indexAction has to return an empty array I always get: net.sf.json.JSONException: JSON keys cannot be null. Is there something I can do to prevent that? When doing a test in the ERRestRouteExample, I get the same error. Thanks in advance, Frank Stock Be

Re: Ponder and ERRest (was "Re: ERGroupware and ERRest")

2015-10-05 Thread Flavio Donadio
s for free! :-) Now I just have to figure out how to use ERUsers and ERAuth with an ERRest app. Once I get that sorted out, I’ll be ready to go. Cheers, Flavio > On 05/10/2015, at 18:32, Ramsey Gurley wrote: > > ERUsers can probably do what you want. You would create a role named Adm

Re: Ponder and ERRest (was "Re: ERGroupware and ERRest")

2015-10-05 Thread Ramsey Gurley
for user management, where the administrative users would be able >> to create/edit/delete users and specify their abilities (which entities a >> user can fetch/create/edit/delete, maybe with roles support). From what I’ve >> seen, ERGroupware is able to do just that. Am I corr

Ponder and ERRest (was "Re: ERGroupware and ERRest")

2015-10-05 Thread Flavio Donadio
s a > user can fetch/create/edit/delete, maybe with roles support). From what I’ve > seen, ERGroupware is able to do just that. Am I correct? > > In my ERRest routes [in the ERRest (main) app], I would check if the user has > the necessary ability and act accordingly. I could als

Re: ERGroupware and ERRest

2015-10-05 Thread Pascal Robert
to calendar, email and contact services, this is not for user management. > In my ERRest routes [in the ERRest (main) app], I would check if the user has > the necessary ability and act accordingly. I could also have some properties > on the client-side app (Cocoa-based) that woul

ERGroupware and ERRest

2015-10-05 Thread Flavio Donadio
abilities (which entities a user can fetch/create/edit/delete, maybe with roles support). From what I’ve seen, ERGroupware is able to do just that. Am I correct? In my ERRest routes [in the ERRest (main) app], I would check if the user has the necessary ability and act accordingly. I could also have

Re: Joda LocalTime attribute in ERRest

2015-09-28 Thread Paul Hoadley
e modified a little bit ERXRestUtils and ERXRestRequestNode: >> https://github.com/Sophiacom/wonder/tree/sophiacom/Frameworks/EOF/ERRest/Sources/er/rest >> >> <https://github.com/Sophiacom/wonder/tree/sophiacom/Frameworks/EOF/ERRest/Sources/er/rest> >> >> Th

Re: Joda LocalTime attribute in ERRest

2015-09-24 Thread Paul Hoadley
he output > - coerceValueToTypeNamed to convert input data > > For example, we wanted to support epoch format for NSTimestamp attributes so > we modified a little bit ERXRestUtils and ERXRestRequestNode: > https://github.com/Sophiacom/wonder/tree/sophiacom/Frameworks/EOF/ERRest/Sour

Re: Joda LocalTime attribute in ERRest

2015-09-23 Thread Philippe Rabier
ERXRestUtils and ERXRestRequestNode: https://github.com/Sophiacom/wonder/tree/sophiacom/Frameworks/EOF/ERRest/Sources/er/rest This part should be refactored because it’s too big. But we moved away from the full ERRest stack so we won’t do it, I think, because we won’t be able to test this modifications

Re: Joda LocalTime attribute in ERRest

2015-09-22 Thread Paul Hoadley
isn’t? Is there > an easy way to add custom types to ERRest? It looks like LocalDate formatting > is handled in ERXRestUtils. Is that the only way to handle formatting a > LocalTime? What are my options for adding a new attribute type (Joda LocalTime) to ERRest? Can this be done at a h

Joda LocalTime attribute in ERRest

2015-09-15 Thread Paul Hoadley
Hello, I have an entity that uses both Joda LocalDate and LocalTime attributes. I’m using ERRest to serialise these EOs. LocalDate works fine under all circumstances. LocalTime seems to be serialising to XML and plist correctly, but causes the JSON serialiser to lose its mind. INFO

RE: ERRest: Multiple entries

2015-08-31 Thread Beatty, Daniel D CIV NAVAIR, 474300D
Hi gang, In my dissertation, I provided a mathematical model/ reverse engineering of the ERRest model. Technically, multiple entries would simply be an array or dictionary of the entries in question. Thus, the multiple entries could entail a façade on the entities representing the entries in

Re: ERRest: Multiple entries

2015-08-28 Thread Mark Wardle
Hi Fred, ERRest is just a set of convenience methods around direct actions. If you step through the code on how an update works, you could duplicate this to support multiple entries as you require. So have a look at ERXRestRequestNode which gives you a format-agnostic tree of the body of the

ERRest: Multiple entries

2015-08-23 Thread Fred Opims
Hello! I'm using ERRest and to create an entry, I'm using the POST HTTP method with JSON format. For example, to create one entity User, I will execute the request with the following post in the body {"name":"Fred"} as shown in the image: [image: Inline imag

ERRest qualifier

2014-12-08 Thread Yoann Canal
Hi list, We are using ERRest for our API and we are trying to use the "qualifier" parameter provided by ERXRestFetchSpecification. Using a NSTimestamp in this qualifier gives a: JDBCAdaptorException: ** Error JDBCColumn for setting date type for 2012-09-08T13:54:31Z- cla

ERREST and swagger.io

2014-12-01 Thread Daniel Bietenbeck
Hi guys, i got a question which occured during my recent validations of documentations for REST services. We are validating dreamfactory for our ecosystem which also uses swagger. Now the question: "Is there some code or an option to generate a swagger compatible json file from my E

Re: How to build ERRest response for NSDictionary?

2014-11-21 Thread Ralf Schuchardt
Hi Jürgen, there ist ERXRouteController.response(ERXRestFormat format, Object value, ERXKeyFilter filter) that should do the trick. Kind regards, Ralf Am 21.11.2014 um 13:12 schrieb Jürgen Simon : > Hi, > > I’m having some trouble implementing a simple function with ERRest.

How to build ERRest response for NSDictionary?

2014-11-21 Thread Jürgen Simon
Hi, I’m having some trouble implementing a simple function with ERRest. I have a method I wish to return a serialized NSDictionary from, not a serialized EOObject. Is that possible? The method could look something like this: @GET @Path(“/somepath/{id:Integer}/dailyReport

ERRest qualify to-many relationship

2014-11-02 Thread Fabian Peters
Hi, Is there a built-in way to filter the objects of a to-many relationship when using ERRest? Say I have two EOs, "Season" and "Show" with a to-many "shows" on "Season". Now I'd like to add a qualifier to the request and return the season with

Re: ERRest skipping my NSDictionary

2014-10-11 Thread Amedeo Mantica
non Plist primitive type seems weird. > Could I maybe just escape it’s JSON representation? > Is there a way to force ERRest to interpret a specific property as an > attribute and not a relationship? > > Thank you, > Riccardo > >> On 10/ott/2014, at 23:58, Amedeo Mantica w

Re: ERRest skipping my NSDictionary

2014-10-11 Thread Philippe Rabier
posted. Philippe On 11 oct. 2014, at 00:22, Riccardo De Menna wrote: > Hi Philippe, > > The filters seem ok to me… I’ve stepped through the ERRest code and it does > match them. (BTW in this particular case the filter explicitly includes that > property). > The thing is that aft

Re: ERRest skipping my NSDictionary

2014-10-10 Thread Riccardo De Menna
Hi Philippe, The filters seem ok to me… I’ve stepped through the ERRest code and it does match them. (BTW in this particular case the filter explicitly includes that property). The thing is that after matching it, it looks for a relationship property or a primitive one. Since the dictionary is

Re: ERRest skipping my NSDictionary

2014-10-10 Thread Riccardo De Menna
Hi Amedeo, Thanks for the answer. How would you pass a dictionary then? I mean what’s the best course of action? Serializing it somehow into a non JSON, non Plist primitive type seems weird. Could I maybe just escape it’s JSON representation? Is there a way to force ERRest to interpret a

Re: ERRest skipping my NSDictionary

2014-10-10 Thread Philippe Rabier
2, Riccardo De Menna wrote: >> >> Hi all, >> >> This is an ERRest specific question. >> >> I have an iOS -> WebObjects/ERRest setup regularly working. >> One of the entities on both sides has an attribute that returns an >> NSDictionary. >> Th

Re: ERRest skipping my NSDictionary

2014-10-10 Thread Amedeo Mantica
Sent from my iPhone > On 10/ott/2014, at 23:45, Riccardo De Menna wrote: > > Anyone on this? > >> On 09/ott/2014, at 15:52, Riccardo De Menna wrote: >> >> Hi all, >> >> This is an ERRest specific question. >> >> I have an iOS ->

Re: ERRest skipping my NSDictionary

2014-10-10 Thread Riccardo De Menna
Anyone on this? On 09/ott/2014, at 15:52, Riccardo De Menna wrote: > Hi all, > > This is an ERRest specific question. > > I have an iOS -> WebObjects/ERRest setup regularly working. > One of the entities on both sides has an attribute that returns an > NSDictionar

ERRest skipping my NSDictionary

2014-10-09 Thread Riccardo De Menna
Hi all, This is an ERRest specific question. I have an iOS -> WebObjects/ERRest setup regularly working. One of the entities on both sides has an attribute that returns an NSDictionary. The problem is that when I try to update this attribute from the iOS side into the WO side, it is silen

Re: ERRest with non-PK attribute

2014-09-28 Thread Fabian Peters
Thanks, Michael and Philippe! Implementing BookingRestDelegate and overriding createObjectOfEntityWithID did the trick. Fabian Am 26.09.2014 um 21:20 schrieb Michael Kondratov : > You could create a custom rest delegate object. > > Michael > www.aspireauctions.com > > Sent from my iPhone >

Re: ERRest with non-PK attribute

2014-09-26 Thread Philippe Rabier
It's very easy. You have to create a REST delegate which returns the value for the ID and fetches the object with the id contained in the route. Look at Pascal's slides on slideshare. One presentation ERRest in depth or something like that explains everything.

Re: ERRest with non-PK attribute

2014-09-26 Thread Paul Yu
You would pass the uuid as a parameter on the index call? Sent from my iPad > On Sep 26, 2014, at 2:37 PM, Fabian Peters wrote: > > I'd know how to do this via a custom action, a qualifier and mod_rewrite, > but: Is there an easy way to get a rest route to retrieve an object by a > different

Re: ERRest with non-PK attribute

2014-09-26 Thread Michael Kondratov
You could create a custom rest delegate object. Michael www.aspireauctions.com Sent from my iPhone > On Sep 26, 2014, at 2:37 PM, Fabian Peters wrote: > > I'd know how to do this via a custom action, a qualifier and mod_rewrite, > but: Is there an easy way to get a rest route to retrieve an o

ERRest with non-PK attribute

2014-09-26 Thread Fabian Peters
I'd know how to do this via a custom action, a qualifier and mod_rewrite, but: Is there an easy way to get a rest route to retrieve an object by a different attribute than the PK? /ra/Booking/a4450596-662b-43ac-cc4f-ecd4d7b37409.json or maybe /ra/Booking/uuid/a4450596-662b-43ac-cc4f-ecd4d7b374

Re: ERRest: Is there a way to create multiple entries in one time

2014-08-26 Thread John Huss
Nope On Tue, Aug 26, 2014 at 6:50 AM, Fred Opims wrote: > Hello! > I'm using ERRest and to create an entry, I'm using the POST HTTP method > with JSON format. > Is there a way to create multiple entries in one time with curl or any > other http client ? > >

Re: ERRest: Is there a way to create multiple entries in one time

2014-08-26 Thread Fred Opims
2014, at 11:07 AM, Michael Kondratov < >> mich...@aspireauctions.com> wrote: >> >> It could be possible by creating a custom Rest parser. >> >> Michael Kondratov >> Aspire Auctions, Inc. >> 216-231-5515 >> >> On Aug 26, 2014, at 7:50 AM,

Re: ERRest: Is there a way to create multiple entries in one time

2014-08-26 Thread Michael Kondratov
What do you mean my multiple entries? Multiple master objects? or > Master->>Detail objects? > > Paul > On Aug 26, 2014, at 11:07 AM, Michael Kondratov <mailto:mich...@aspireauctions.com>> wrote: > >> It could be possible by creating a custom Rest parser

Re: ERRest: Is there a way to create multiple entries in one time

2014-08-26 Thread Fred Opims
> > Paul > On Aug 26, 2014, at 11:07 AM, Michael Kondratov < > mich...@aspireauctions.com> wrote: > > It could be possible by creating a custom Rest parser. > > Michael Kondratov > Aspire Auctions, Inc. > 216-231-5515 > > On Aug 26, 2014, at 7:50 AM, Fred Op

Re: ERRest: Is there a way to create multiple entries in one time

2014-08-26 Thread Paul Yu
-5515 > >> On Aug 26, 2014, at 7:50 AM, Fred Opims wrote: >> >> Hello! >> I'm using ERRest and to create an entry, I'm using the POST HTTP method >> with JSON format. >> Is there a way to create multiple entries in one time with curl or

Re: ERRest: Is there a way to create multiple entries in one time

2014-08-26 Thread Michael Kondratov
It could be possible by creating a custom Rest parser. Michael Kondratov Aspire Auctions, Inc. 216-231-5515 > On Aug 26, 2014, at 7:50 AM, Fred Opims wrote: > > Hello! > I'm using ERRest and to create an entry, I'm using the POST HTTP method > with JSON format. &

ERRest: Is there a way to create multiple entries in one time

2014-08-26 Thread Fred Opims
Hello! I'm using ERRest and to create an entry, I'm using the POST HTTP method with JSON format. Is there a way to create multiple entries in one time with curl or any other http client ? Thank you! Best! Fred ___ Do not post admin reque

ERRest: Is there a way to create multiple entries in one time

2014-08-22 Thread Fred Opims
Hello! I'm using ERRest and to create an entry, I'm using the POST HTTP method with JSON format. Is there a way to create multiple entries in one time with curl or any other http client ? Thank you! Best! ___ Do not post admin requests t

ERRest: Is there a way to create multiple entries in one time

2014-08-21 Thread Fred Opims
Hello! I'm using ERRest and to create an entry, I'm using the POST HTTP method with JSON format. Is there a way to create multiple entries in one time with curl or any other http client ? Thank you! Best! Fred ___ Do not post admin reque

ERRest: Is there a way to create multiple entries in one time

2014-08-20 Thread Fred Opims
Hello! I'm using ERRest and to create an entry, I'm using the POST HTTP method with JSON format. Is there a way to create multiple entries in one time with curl or any other http client ? Thank you! Best! Fred ___ Do not post admin reque

Creating Multiple Objects in ERRest?

2014-07-07 Thread Ted Archibald
Is there a built-in way to create multiple objects with ERRest? Something like this: curl -X POST -d “[{ name:'Andrew Schrag’ },{ name:’Chuck Hill’ }]" http://localhost/App.woa/ra/Persons.json I know I can just parse the data myself and create all the objects, but is there a way that

ERXPartials and ERRest

2014-06-03 Thread Pascal Robert
Hi guys, Anyone have tried to mix ERXPartials with ERRest? I have a "Device" base entity with a "Computer" child that extends from Device. If I simply register Computer in the routes, it registers /devices since the entity name of Computer is "Device". If I hav

ERRest and JSON Dates

2014-05-28 Thread Ted Archibald
Been working on a project where I'm consuming JSON from a web app and encountered a problem with dates back and forth. This is the date format I'm getting from javascript (new Date).toJSON(): 2014-05-28T04:27:49.722Z And this is the date format ERRest seems to want 2014-05-28T04:27:49Z

ERRest date value coercion per key format

2014-02-27 Thread Robert Hanviriyapunt
Is there some way to have control of date string coercion per attribute? ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https:

Re: "ERRest Application" project--still available?

2014-02-24 Thread Raymond NANEON
/dist/features/ Hi Scott,welcome back. You need to use the WOLips37Community edition or just use the shortcut http://wocommunity.org/wolips/3.7/current as update site. Then you should see the ERRest Application template.jwAm 21.02.2014 um 18:52 schrieb Scott M. Neal <s...@automationgarden.com>

Re: "ERRest Application" project--still available?

2014-02-23 Thread Pascal Robert
y.org/wolips/3.7/current as update site. Then you > should see the ERRest Application template. > > jw > > > Am 21.02.2014 um 18:52 schrieb Scott M. Neal : > >> >> Hello everyone, >> >> I'm coming back to WO after a many, many ye

Re: "ERRest Application" project--still available?

2014-02-21 Thread Theodore Petrosky
k. You need to use the WOLips37Community edition or just use the > shortcut http://wocommunity.org/wolips/3.7/current as update site. Then you > should see the ERRest Application template. > > jw > > > Am 21.02.2014 um 18:52 schrieb Scott M. Neal : > >> >>

Re: "ERRest Application" project--still available?

2014-02-21 Thread Johann Werner
Hi Scott, welcome back. You need to use the WOLips37Community edition or just use the shortcut http://wocommunity.org/wolips/3.7/current as update site. Then you should see the ERRest Application template. jw Am 21.02.2014 um 18:52 schrieb Scott M. Neal : > > Hello everyone, > &g

ERRest and EOSharedEditingContext

2014-01-14 Thread Michael Kondratov
Is there an easy way to use Default Shared Editing context with ERRest framework? So far I've overridden createRestContext method to return EOSharedEditingContext.defaultSharedEditingContext() It looks are ERRest is doing locking and unlocking on the context. Do I need to lock shared co

Re: ERRest performance

2013-12-16 Thread Ramsey Gurley
The jvisualvm sampler will tell you what is slow. From there you can determine what areas will receive the most benefit from optimizing. On Dec 13, 2013, at 1:51 PM, Michael Kondratov wrote: > Finally deployed our new version of the auction system. We are using ERRest > extensively.

  1   2   3   4   5   >