Skip to content

Instantly share code, notes, and snippets.

@aeneasr
Created December 25, 2014 13:55
Show Gist options
  • Save aeneasr/d374ec3041d9d2080118 to your computer and use it in GitHub Desktop.
Save aeneasr/d374ec3041d9d2080118 to your computer and use it in GitHub Desktop.
# i18n Group
The i18n api mock.
## The translation API [/i18n/{id}{?locale}]
+ Parameters
+ locale (required, string, `de_DE`)
+ id (required, int, 1)
### Retrieves a translation [GET]
+ Request Volkswagen
+ Parameters
+ locale: de_DE
+ id: 1
+ Response 200 (application/json)
{ "message": "Volkswagen" }
+ Request Ford
+ Parameters
+ locale: de_DE
+ id: 2
+ Response 200 (application/json)
{ "message": "Ford" }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment