Skip to content

What would be the most elegant way to mix RESTful API and some HTML rendering views? #67

@oleksandr

Description

@oleksandr

Posting it here as I don't see much activity in the chat or stackoverflow around goweb.
The pain of integration with certain payment providers requires a couple of HTML pages to be rendered by the backend, where the user can perform some minimal interaction.

What would be the good practice here when the whole backend is build with goweb?
Options:

  1. Implement with goweb and expose via /html or similar (while the API is exposed via /api)
  2. Implement with pure go net/http package as part of the SAME server and expose via something like /html (while the API is exposed via /api)
  3. Implement with whatever you feel comfortable but run as a separate server.
  4. Other options?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions