metamaps--metamaps/postatoken.txt

8 lines
295 B
Plaintext
Raw Normal View History

$.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"