What are RESTful Services (RESTful APIs)?

[ad_1]
To get my upcoming Node course with up to 90% discount, join my mailing list now. I’ll NOT spam you and you can unsubscribe at any time. When I publish my Node course, I’ll send you an email with a coupon to get the course with a big discount:


Posted

in

by

Tags:

Comments

5 responses to “What are RESTful Services (RESTful APIs)?”

  1. Martin Stephenson Avatar

    One thing that confuses me when designing REST APIs is searching.

    In the legacy RPC world I'm used to finding a person would have a method FindPerson(Forename, Surname, DOB) just like calling a local method. The parameters are obvious, they're in the method call.
    The response would be a List<Person>, or a List<PersonSearchResult> if you just want brief Person details to display in a search results grid without sending the full Person classes.

    In REST is it best to have a GET on /person with query params ?Forename=xxxx&Surname=xxxx&DOB=xxxxx

    or

    A POST to a /person/search. Posting a findPerson object with properties of Forename, Surname,DOB and returning List<Person> or List<PersonSearchResult> if you wanted the cut down details for grid display.

  2. Vraios Charmandre Avatar

    ty for nice explanation!

  3. Muyiwa Ishola Avatar

    Hello Mosh, Great.
    sent u a message but ye t to receive a response. Thanks.

  4. Adrian - Avatar

    Mosh will this course be published on Udemy?

Leave a Reply

Your email address will not be published. Required fields are marked *