[Lazarus] testing demorestbridge without a web server: is that possible?
zeljko
zeljko at holobit.hr
Thu Oct 27 22:42:55 CEST 2022
On 27. 10. 2022. 20:29, duilio foschi wrote:
> Dear Zeljko,
>
>> If this results in error 400-40xx
>
> this is exactly what happens :)
>
> c:\>curl -u Detlef:secret -H "Content-Type: application/json"
> "http://localhost:3000/REST/metadata"
> {
> "error" : {
> "code" : 404,
> "message" : "NOT FOUND"
> }
> }
>
>
>> then you must include connection after
> REST
> eg http://localhost:3000/REST/YOURDEFAULTCONNECTIONNAME/metadata
>
>
> gulp! Which is my default connection name?
check TSQLDBRestDispatcher.Connections, there should be at least one
connection and check that connection name.
zeljko
More information about the lazarus
mailing list