metamaps--metamaps/postatoken.txt
2016-03-11 17:16:04 +11:00

8 lines
295 B
Plaintext

$.post('http://localhost:3000/api/v1/tokens', {token: {
description: 'for stuff',
token: '1234',
user_id: 2
}})
curl -X POST -d @postdata.txt http://localhost:3000/api/v1/maps --header "Authorization: Token token=fb5b3db125c94e9fb50f1e42054be856" --header "Content-Type:application/json"