03_DesignAPIs Flashcards

1
Q

What is spec driven development?

A

A developement process that is built in 2 distinct phases (design phase and development phase). Design phase - creation of the spec. Development phase - build code to match the spec.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the design phase?

A

Create the spec.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the development phase?

A

Build the code to match the spec.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What does RAML stand for?

A

Restful API Modelling Language.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Name some approaches to API design.

A

Hard coding, API Blueprint, OpenAPI Spec, RAML

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is RAML?

A

A simple, structured and succinct way og describing RESTful APIs.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What languages is RAML based on?

A

YAML and JSON

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How is the data structure hierarchy established when using RAML?

A

Indentation (Not additional markup characters).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is a resource?

A

The objects identified by the web service URL that you want to act upon using the HTTP method used for the request.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the notation for stating a resource within a RAML file?

A

All resources begin with a slash (/).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

How do you state a nested resource?

A

Indentation and the resource will be enclosed by a scope bracket. e.g. /{nestedResource}.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Where will you find all the methods and parameters that belong to a specific resource?

A

They will all be nested under the resource.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Why would you want to mock an API before it is implemented?

A

Useful to get early feedback from developers and others.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly