I hope you discovered and learned new things during the workshop!
The address to the system you’re talking to, just like addresses to a website.
Example: website: https://www.46elks.com, address to the api: https://api.46elks.com
Authenticating yourself when sending a request. Example: https://username:firstname.lastname@example.org/a1/SMS
Indicates what type of a request you’re making GET - ask for data. POST - enter new data PUT - update data DELETE - remove data
REST - if the api is a RESTful api, you can expect it to work something like this:
– creates a new member. (You need to send in data of course (parameters)). The service will likely reply with an ID, for example “13”.
– asks for details about that member.
– will likely show you a list of all members.
PUT api.someservice.com/member/13 – send in data (parameters) to update member nr 13.
– remove member 13 from database.
Indicates how your request went.
200 - all is well!
404 - couldn’t find it!
40x - you’re making a request in an unexpected way
50x - the system is not behaving as it should.
For specific examples, illustrated with cat pictures, see http cat.
Code examples by 46elks
Many programming languages available, among others:
elixir, java, Node, PHP, python and ruby.
GL HF with your projects! :]
Victoria - 46elks
Jag som skriver här heter Victoria.
Du kan läsa mer om mig på startsidan.