Re: Implementing REST API

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks Alex! Yes I have done and still doing. :) Swagger generates
code for you and I am not sure whether this is what I want. You
apparently can design, test, and even build (?) your API but how to
deploy it? This is something I don't know yet! I am still
investigating this solution and hope that this would be something for
us, if I will be able to integrate it with Apache.

Regards,

Danesh Daroui

On Mon, Aug 20, 2018 at 9:13 AM Alex K <rightkicktech@xxxxxxxxx> wrote:
>
>
>
> On Mon, Aug 20, 2018, 03:21 Miles Fidelman <mfidelman@xxxxxxxxxxxxxxxx> wrote:
>>
>> On 8/19/18 5:48 PM, Danesh Daroui wrote:
>>
>> > Hello all!
>> >
>> > I hope that I am posing my question to a relevant mailing list!
>> >
>> > I am looking for a solution to implement a RESTful API server. I have
>> > tested and examined a bunch of solution and now I think the best
>> > solution is to use a trustworthy, reliable, and robust implementation
>> > of HTTP protocol such as Apache httpd as HTTP server as base and then
>> > add my API handlers for REST commands. I am still looking at Apache
>> > httpd's source code and doesn't really know what is the best way to
>> > implement a RESTful API that would receive GET/POST/PUT/DELETE, etc.
>> > commands with appropriate parameters and then send the results.
>> >
>> > I am wondering if there is a standard way or similar project that
>> > somebody else has done?
>
> Have you checked https://swagger.io/ ?
>
>> If not, what would be the best way to
>> > implement this? Should I add a new module that handles RESTful APIs or
>> > hack into the code and generate the response base on my API when a
>> > HTTP command is received and send it through httpd?
>> >
>> >
>> Generally, one would vector the URL to a script that would parse the
>> full set of HTTP headers, and act accordingly.  Take a look at the
>> documentation for how Apache's CGI interface works.  You might try
>> looking around for an apache-based implementation of the Atom Publishing
>> Protocol for an example.
>>
>> Miles Fidelman
>>
>> --
>> In theory, there is no difference between theory and practice.
>> In practice, there is.  .... Yogi Berra
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
>> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
>>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux