NetTalk Central

Author Topic: NetWebServiceMethod as REST - HOW?  (Read 78 times)

Niels Larsen

  • Sr. Member
  • ****
  • Posts: 448
    • View Profile
    • Email
NetWebServiceMethod as REST - HOW?
« on: May 02, 2025, 02:00:10 AM »
Hi

I have a swagger that describes how to create my endpoint.
But I can't quite figure out how to receive values ​​as REST, for example like this:

http://127.0.0.1/WasteInvoice/InvoiceOverview/account/{accountId}/customer/{customerId}

Both variables are marked as "ID parameter for REST"

Regards Niels

Jane

  • Sr. Member
  • ****
  • Posts: 395
  • Expert on nothing with opinions on everything.
    • View Profile
    • Email
Re: NetWebServiceMethod as REST - HOW?
« Reply #1 on: Today at 12:03:39 PM »
You can do a REST API without relying on a single REST ID to call it, Niels.

There are plenty of REST APIs I call with multiple parameters, such as
api.whatever.com/v2/appointments/booked?showpatientdetail=false&patientid=1&showcancelled=true&providerid=162