Go back to Read chapters

Content marking pattern summary

How to build and run a backend API service and connect a mobile client to it

Content marking pattern chapter summary

How to build, run and connect to a hashtag messaging API

In this chapter we described a social networking pattern called content marking pattern and implemented an API and client for it. We will show you in more details later on how to use the API service and how to extend it.

Hashtag messaging server backend API tutorial with Spring Boot + JPA + H2

  • Download Source code for the application and run as Spring Boot application

Hashtag messaging DevOps Docker tutorial running the backend with Docker container

  • Launch the API inside a Docker container

Hashtag messaging mobile application tutorial with JQuery mobile 

  • Create a mobile application client that connects to the API, requests for messages, parses hashtags and adds a new message

Emoji messaging mobile application tutorial with Angular and Ionic

  • Create a mobile application client that uses API to convert words to emojis with Angular and Ionic

API endpoint actions and a beta test endpoint API

Application interface API can be found at http://api.weall.com/v0.1/messages

Get Fresh messages API

HTTP GET /v0.1/messages

Parameters: none (optional: limit, offset)

Body: none

Curl Test call: curl http://api.weall.com/v0.1/messages

Get messages by hashtag API

HTTP GET /v0.1/messages/hashtags/{hashtagname}

Parameters: hashtagname, find messages that are connected to this hashtag (optional: limit, offset)

Body: none

Curl Test call: curl http://api.weall.com/v0.1/messages/hashtags/weall

Add new message API

HTTP POST /v0.1/messages

Parameters: message, add new message that can include #hashtags

Curl Test call: curl --data "message=hello+#weall" http://api.weall.com/v0.1/messages


What new ideas or thoughts this chapter gave you?