December 2017
Intermediate to advanced
316 pages
6h 58m
English
With the concepts we have built upto now, let us write our first basic REST service. This service takes the number range (1-10) from the client and returns its Roman string. Very primitive, but better than Hello World.
Design:
Our REST API should take an integer number from the client and serve back the Roman equivalent.
The block of the API design document may look like this:
| HTTP Verb | PATH | Action | Resource |
| GET | /roman_number/2 | show | roman_number |
Implementation:
Now we are going to implement the preceding simple API step-by-step.
As we previously discussed, you should set the GOPATH first. Let us assume ...