7. TRAITS - API.RML
traits:
- paged: !include traits/paged.raml
/institutions:
is: [paged]
displayName: Institutions
get:
description: Get the institutions that match your search.
8. RESOURCETYPES - BASE.RAML
get?:
responses:
200:
description: Returned if the the request invalid.
400?:
description: Returned if the the request is invalid.
404?:
description: Returned if the object is not found.
500?:
description: Returned if an error occurs while retrieving.
9. RESOURCETYPES - API.RAML
/institutions:
type: base
displayName: Institutions
get:
description: |
Get the institutions that match your search.
This service doesn't need that user is logged in.
18. MÉTODO DELETE
/experiences:
/{id}:
delete:
description: |
Delete an experience from Postulant. For this service is necessary that the
postulant is logged in.
responses:
200:
body:
schema: postulantExperienceDeleteResponse
example: !include ./examples/experiences/postulant.experience.delete.response.json
19. EXTRA
▸ Documentacion http://raml.org/
▸ Fake api: raml-mockup
▸ Api design: Atom + Api-workbench
▸ Example to Schema http://jsonschema.net/#/
▸ Generate html https://github.com/raml2html/raml2html
▸ Testing https://github.com/cybertk/abao
$ abao api.raml --server http://localhost:8080