#1 Re: mORMot 2 » Http request does not work » 2025-09-26 08:37:35

1. mORMot2\ex\ThirdPartyDemos\martin-doyle\02-HttpClientServerORM

2. mORMot2\ex\ThirdPartyDemos\martin-doyle\04-InterfacedBasedService
When creating an object, JSON is not passed in the HTTP request.
http://localhost:11111/root/Example/Add

#2 mORMot 2 » Http request does not work » 2025-09-25 21:20:13

alexkam75
Replies: 3

Hi!
In the examples mORMot2\ex\ThirdPartyDemos\martin-doyle, the request:
http://localhost:11111/root/sample does not work. It returns the following result:
{
    "errorCode": 404,
    "errorText": "Not Found"
}

Previously, the result of the request was a list of sample object IDs.
Is this a bug?

In the example:
mORMot2\ex\ThirdPartyDemos\martin-doyle\04-InterfacedBasedServices,
when making a POST request to:
http://localhost:11111/root/Example/Add
with the header "Content-Type: application/json" and sending the object:
{"Name": "Name 1", "Question": "Question 1"}

The database inserts empty values instead, as shown below:
insert into Sample (Name, Question, Time) values (:(''):,:(''):,:(135932236896):)

What should be done to resolve this issue?

#4 mORMot 2 » Error compiling example mORMot2\ex\mvc-blog » 2024-10-01 09:39:00

alexkam75
Replies: 2

Error compiling example mORMot2\ex\mvc-blog.
MVCServerFirebirdZeos.dpr(35,16) Error: Identifier not found "TSqlDBZeosConnectionProperties"

How to run the example correctly?

#6 Re: mORMot 1 » Implementing OAuth2 » 2024-01-31 09:49:04

https://gist.github.com/jbendixsen/392e … cation-pas
The link is not working. Can someone send a OAuth2 (or JWT) implementation to mORMot?

Board footer

Powered by FluxBB