Skip to content

Instantly share code, notes, and snippets.

@ntakouris
Created July 18, 2019 08:30
Show Gist options
  • Save ntakouris/0e52498c9f81e8cd976b404d06b778d2 to your computer and use it in GitHub Desktop.
Save ntakouris/0e52498c9f81e8cd976b404d06b778d2 to your computer and use it in GitHub Desktop.
namespace Tweetbook.Contracts.V1
{
public static class ApiRoutes
{
public const string Root = "api";
public const string Version = "v1";
public const string Base = Root + "/" + Version;
public static class Posts
{
public const string GetAll = Base + "/posts";
public const string Update = Base + "/posts/{postId}";
public const string Delete = Base + "/posts/{postId}";
public const string Get = Base + "/posts/{postId}";
public const string Create = Base + "/posts";
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment