Examples of writing a more advanced REST API

agolangf · · 489 次点击    
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
<p>Excuse the basic question, I&#39;m a bit of a newbie with Golang. I have started writing a restful api in go and have found lots of videos and articles on creating a rather simple api.</p> <p>So far I have broken out the api into controllers and models for specific items like Users or Articles, and retrieving or adding data to the database based on the endpoints and returning json.</p> <p>I am struggling to find any useful examples that go beyond creating basic crud endpoints. Does anyone have any good links that go into writing a more advanced api?</p> <hr/>**评论:**<br/><br/>Tikiatua: <pre><p>Hi there,</p> <p>You could take a look at our scratch repository on <a href="https://github.com/dkfbasel/scratch" rel="nofollow">https://github.com/dkfbasel/scratch</a>. It provides a base repository structure and code to start medium sized golang projects. </p></pre>softwaregav: <pre><p><a href="https://github.com/marcusolsson/goddd" rel="nofollow">Marcus Olsson</a> has a pretty nice example using domain driven design. He also has some nice talks about it that can be found on YouTube.</p></pre>

入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889

489 次点击  
加入收藏 微博
0 回复
暂无回复
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传