Skip to content

Instantly share code, notes, and snippets.

@GeradeDev
Created July 3, 2019 14:22
Show Gist options
  • Save GeradeDev/d80f27c4279448ad674fcc2aaeca0a9d to your computer and use it in GitHub Desktop.
Save GeradeDev/d80f27c4279448ad674fcc2aaeca0a9d to your computer and use it in GitHub Desktop.
using MedPark.API.Gateway.Messages.Commands;
using MedPark.API.Gateway.Models;
using Microsoft.AspNetCore.Mvc;
using RestEase;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace MedPark.API.Gateway.Services
{
[SerializationMethods(Query = QuerySerializationMethod.Serialized)]
public interface ICustomerService
{
[Get("/customers/{id}")]
Task<Customer> GetCustomer([Path] Guid id);
[Get("/address/{id}")]
Task<List<Address>> GetAddreses([Path] Guid id);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment