From 48d62518365133d7a4fef855a47e9834acb40afe Mon Sep 17 00:00:00 2001 From: pg9182 <96569817+pg9182@users.noreply.github.com> Date: Sun, 2 Oct 2022 13:52:28 -0400 Subject: pkg/api/api0: Initial stub --- pkg/api/api0/api.go | 2 ++ pkg/api/api0/clientserver.go | 32 ++++++++++++++++++++++++++++++++ pkg/api/api0/playerinfo.go | 12 ++++++++++++ pkg/api/api0/web.go | 8 ++++++++ 4 files changed, 54 insertions(+) create mode 100644 pkg/api/api0/api.go create mode 100644 pkg/api/api0/clientserver.go create mode 100644 pkg/api/api0/playerinfo.go create mode 100644 pkg/api/api0/web.go (limited to 'pkg/api') diff --git a/pkg/api/api0/api.go b/pkg/api/api0/api.go new file mode 100644 index 0000000..cf5a37e --- /dev/null +++ b/pkg/api/api0/api.go @@ -0,0 +1,2 @@ +// Package api0 implements the original master server API. +package api0 diff --git a/pkg/api/api0/clientserver.go b/pkg/api/api0/clientserver.go new file mode 100644 index 0000000..858e8aa --- /dev/null +++ b/pkg/api/api0/clientserver.go @@ -0,0 +1,32 @@ +package api0 + +/* + /accounts/write_persistence: + POST: + + /accounts/lookup_uid: + GET: + /accounts/get_username: + GET: + + /client/mainmenupromos: + GET: + + /client/origin_auth: + GET: + /client/auth_with_server: + POST: + /client/auth_with_self: + POST: + + /client/servers: + POST: + /server/add_server: + POST: + /server/heartbeat: + POST: + /server/update_values: + POST: + /server/remove_server: + DELETE: +*/ diff --git a/pkg/api/api0/playerinfo.go b/pkg/api/api0/playerinfo.go new file mode 100644 index 0000000..be62ce3 --- /dev/null +++ b/pkg/api/api0/playerinfo.go @@ -0,0 +1,12 @@ +package api0 + +/* + /player/pdata: + GET: + /player/info: + GET: + /player/stats: + GET: + /player/loadout: + GET: +*/ diff --git a/pkg/api/api0/web.go b/pkg/api/api0/web.go new file mode 100644 index 0000000..477f1ab --- /dev/null +++ b/pkg/api/api0/web.go @@ -0,0 +1,8 @@ +package api0 + +/* + /github: https://github.com/R2Northstar + /discord: https://discord.gg/northstar + /wiki: https://r2northstar.gitbook.io/ + /thunderstore: https://northstar.thunderstore.io +*/ -- cgit v1.2.3