Skip to content

Instantly share code, notes, and snippets.

View luccasmf's full-sized avatar

Luccas M. Fonseca luccasmf

View GitHub Profile
@luccasmf
luccasmf / Startup.cs
Last active September 28, 2021 15:10
Refit/Startup.cs
using Refit;
//shortened for brevity
public void ConfigureServices(IServiceCollection services)
{
...
services.AddRefitClient<IMusicRequestsInterface>()
.ConfigureHttpClient(httpClient =>
@luccasmf
luccasmf / Program.cs
Created September 28, 2021 14:39
Refit/Program.cs
using MusicApp.Interfaces;
using MusicApp.Models;
using Refit;
using System;
using System.Threading.Tasks;
namespace MusicApp
{
class Program
{
@luccasmf
luccasmf / IMusicRequestsInterface.cs
Last active September 28, 2021 14:40
IMusicRequestsInterface.cs
using MusicApp.Models;
using Refit;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace MusicApp.Interfaces
{
public interface IMusicRequestsInterface
{
[Get("/api/v1/music/all")]
@luccasmf
luccasmf / keybase.md
Last active September 30, 2016 13:53

Keybase proof

I hereby claim:

  • I am luccasmf on github.
  • I am luccasmf (https://keybase.io/luccasmf) on keybase.
  • I have a public key whose fingerprint is BC01 9CDE 165E 2D2D A6BF 1342 829C 597D 92D8 2A10

To claim this, I am signing this object: