From 13dd28f51a99d6afdfc6afbe613a2eb648d9389d Mon Sep 17 00:00:00 2001 From: Patrik Oldsberg Date: Mon, 3 Feb 2020 15:47:14 +0100 Subject: [PATCH] protos: initial inventory service proto --- protos/inventory.proto | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 protos/inventory.proto diff --git a/protos/inventory.proto b/protos/inventory.proto new file mode 100644 index 0000000000..10eeea4ea5 --- /dev/null +++ b/protos/inventory.proto @@ -0,0 +1,27 @@ +syntax = "proto3"; + +package spotify.backstage.inventory.v1alpha1; + +service Inventory { + rpc GetEntity(GetEntityRequest) returns (GetEntityReply); +} + +message GetEntityRequest { + Entity entity = 1; + repeated string include_facts = 2; +} + +message GetEntityReply { + Entity entity = 1; + repeated Fact facts = 2; +} + +message Entity { + string kind = 1; + string id = 2; +} + +message Fact { + string name = 1; + string value = 2; +}