Extensibility as a headless Hugo CMS

First sorry for my poor question. I will try to clarify with my not very good english.

What I want is pretty simple in my opinion. Just a server to handle some endpoints, take a look at an example:

/Path Method Description
/content/:section GET List content from section :section
/content/:section POST Create a new content into section :section (also create the section if not exists)
/content/:section/:slug GET Get content :slug from section :section
/content/:section/:slug PUT Update content
/content/:section/:slug DELETE Remove content
/content/:section/:slug/attach POST Add resource to content
/content/:section/:slug/:attach GET Get resource

I think is self explanatory.

Now the questions is how difficult could be for someone who know Golang to just extend the library itself to achieve this.

*I am new to golang and I’ve been working with go for last weeks.

For example hugo core handle all of these stuff:

  • parsing various format of files
  • various functions: e.g.: where .Pages "Section" "foo"
  • pagination
  • search
  • related
  • taxonomies
  • and much more

thank you for your time