V1 API Osuny : Posts, Events, Organizations (#2488)
* fix websites * websites api * handle json responses on errors * websites index api ok * websites show * adjustments websites * wip posts: index & show * wip post creation * post creation via API * updates post * allow multiple examples for same response code based on description * post deletion * no_content for deletion * wip * fix locale * add vcr * upload image * change "options" to "default" for numbers * add options to layout component * add templates api * handle category param in templates index * wip blocks * wip schemas * websites with schema * wip posts * website localization in object * posts index * show post * post creation (ugly controller) * post crud * wip blocks * add schemas for all block templates * fix * oneOf block templates * add format uuid when needed * fix file component schema * spec * add todo * with_open_api trait * remove blocks/templates controller * wip * wip crud with blocks * wip upsert * wip upsert * note upsert as wip * upsert * remove [WIP] * openapi * wip refactor * wip events * event (+ l10n) openapi schemas * api events: index, show, :create * api events: update, destroy * api events: upsert + fix from_hour and to_hour * fix * organization migration identifier * remove slug from organizations * organization openapi schemas * api organizations --------- Co-authored-by:Arnaud Levy <contact@arnaudlevy.com> Co-authored-by:
Arnaud Levy <arnaud.levy@noesya.coop>
Showing
- Gemfile 1 addition, 0 deletionsGemfile
- Gemfile.lock 2 additions, 0 deletionsGemfile.lock
- app/controllers/api/osuny/application_controller.rb 12 additions, 1 deletionapp/controllers/api/osuny/application_controller.rb
- app/controllers/api/osuny/application_controller/with_resource_params.rb 54 additions, 0 deletions.../api/osuny/application_controller/with_resource_params.rb
- app/controllers/api/osuny/communication/websites/agenda/events_controller.rb 134 additions, 0 deletions.../osuny/communication/websites/agenda/events_controller.rb
- app/controllers/api/osuny/communication/websites/application_controller.rb 4 additions, 3 deletions...pi/osuny/communication/websites/application_controller.rb
- app/controllers/api/osuny/communication/websites/events_controller.rb 0 additions, 11 deletions...ers/api/osuny/communication/websites/events_controller.rb
- app/controllers/api/osuny/communication/websites/posts_controller.rb 104 additions, 28 deletions...lers/api/osuny/communication/websites/posts_controller.rb
- app/controllers/api/osuny/communication/websites_controller.rb 3 additions, 3 deletions...ontrollers/api/osuny/communication/websites_controller.rb
- app/controllers/api/osuny/university/organizations_controller.rb 131 additions, 0 deletions...trollers/api/osuny/university/organizations_controller.rb
- app/controllers/application_controller/with_errors.rb 15 additions, 2 deletionsapp/controllers/application_controller/with_errors.rb
- app/models/communication/block.rb 1 addition, 37 deletionsapp/models/communication/block.rb
- app/models/communication/block/component/agenda_category.rb 1 addition, 1 deletionapp/models/communication/block/component/agenda_category.rb
- app/models/communication/block/component/array.rb 8 additions, 0 deletionsapp/models/communication/block/component/array.rb
- app/models/communication/block/component/base.rb 12 additions, 0 deletionsapp/models/communication/block/component/base.rb
- app/models/communication/block/component/base_reference.rb 7 additions, 0 deletionsapp/models/communication/block/component/base_reference.rb
- app/models/communication/block/component/boolean.rb 5 additions, 1 deletionapp/models/communication/block/component/boolean.rb
- app/models/communication/block/component/file.rb 14 additions, 0 deletionsapp/models/communication/block/component/file.rb
- app/models/communication/block/component/location.rb 1 addition, 1 deletionapp/models/communication/block/component/location.rb
- app/models/communication/block/component/number.rb 5 additions, 1 deletionapp/models/communication/block/component/number.rb
Loading
Please register or sign in to comment